Gentoo Archives: gentoo-user

From: Remy Blank <remy.blank@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Making sense of reported ZFS disk usage
Date: Sat, 31 Oct 2015 09:38:13
Message-Id: n1225j$u4l$1@ger.gmane.org
I'm trying to make sense of the disk usage reported by "zfs list".
Here's what I get:

$ zfs list \
-o name,used,avail,refer,usedbydataset,usedbychildren,usedbysnapshots \
-t all

NAME                  USED  AVAIL  REFER  USEDDS  USEDCHILD  USEDSNAP
pool/data            58.0G   718G  46.7G   46.7G          0     11.3G
pool/data@2015-10-03     0      -  46.5G       -          -         -
pool/data@2015-10-04     0      -  46.5G       -          -         -
pool/data@2015-10-05     0      -  46.5G       -          -         -
pool/data@2015-10-06     0      -  46.5G       -          -         -
pool/data@2015-10-07     0      -  46.5G       -          -         -
pool/data@2015-10-08     0      -  46.5G       -          -         -
pool/data@2015-10-09     0      -  46.5G       -          -         -
pool/data@2015-10-10     0      -  46.5G       -          -         -
pool/data@2015-10-11     0      -  46.5G       -          -         -
pool/data@2015-10-12     0      -  46.5G       -          -         -
pool/data@2015-10-13  734M      -  46.7G       -          -         -
pool/data@2015-10-14     0      -  46.7G       -          -         -
pool/data@2015-10-15     0      -  46.7G       -          -         -
pool/data@2015-10-16     0      -  46.7G       -          -         -
pool/data@2015-10-17     0      -  46.7G       -          -         -
pool/data@2015-10-18     0      -  46.7G       -          -         -
pool/data@2015-10-19     0      -  46.7G       -          -         -
pool/data@2015-10-20     0      -  46.7G       -          -         -
pool/data@2015-10-21     0      -  46.7G       -          -         -
pool/data@2015-10-22     0      -  46.7G       -          -         -
pool/data@2015-10-23     0      -  46.7G       -          -         -
pool/data@2015-10-24     0      -  46.7G       -          -         -
pool/data@2015-10-25     0      -  46.7G       -          -         -
pool/data@2015-10-26     0      -  46.7G       -          -         -
pool/data@2015-10-27     0      -  46.7G       -          -         -
pool/data@2015-10-28     0      -  46.7G       -          -         -
pool/data@2015-10-29  755M      -  46.7G       -          -         -
pool/data@2015-10-30  757M      -  46.7G       -          -         -
pool/data@2015-10-31     0      -  46.7G       -          -         -

What I don't understand: I have 29 snapshots, only three of them use
~750M, but in total they take 11.3G. Where do the excess 9.1G come from?

I'm using sys-fs/zfs-0.6.5.3, in case that matters.

-- Remy

Replies

Subject Author
Re: [gentoo-user] Making sense of reported ZFS disk usage Jeremi Piotrowski <jeremi.piotrowski@×××××.com>