Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 2009 20:11:36 -0400
From:      Dillon Kass <lists@loveturtle.net>
To:        freebsd-stable@freebsd.org
Subject:   Re: ZFS MFC heads down
Message-ID:  <4A15EDB8.6070808@loveturtle.net>
In-Reply-To: <3c1674c90905211315y5e59b9e2l94dfb4215f786e69@mail.gmail.com>
References:  <3c1674c90905201643m540c8b1v8a8bd88f071c233d@mail.gmail.com>	<200905211435.01723.kirk@strauser.com>	<200905212008.n4LK81sw002193@lava.sentex.ca> <3c1674c90905211315y5e59b9e2l94dfb4215f786e69@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 5/21/09 4:15 PM, Kip Macy wrote:
> Your snapshots are using two thirds of your used capacity. 'df' only
> knows about the mounted file system.
>
> Cheers,
> Kip
>
>    
On that subject, if anyone isn't aware this version of zfs has nicer 
space accounting.

you should check out the output of
zfs list -o space

SUPER AWESOME HUH!?

unfortunately the fancy new space accounting only works on datasets 
created on a pool supporting it, so all of us who upgraded our pools 
will not see any output.

for example

NAME                AVAIL   USED  USEDSNAP  USEDDS  USEDREFRESERV  USEDCHILD
rpool/ROOT/snv_107  8.86G  3.80G         -       -              -          -

however you can just create a new dataset with zfs create to take 
advantage of the new space accounting. then you'll get real output like

NAME                AVAIL   USED  USEDSNAP  USEDDS  USEDREFRESERV  USEDCHILD
phoenix/rsync/cifs  70.2G   272G      212G   59.3G              0          0

I can easily see here that I have 212G of snapshots for this dataset.

I just thought I would throw that out there for anyone who didn't know 
about it yet.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A15EDB8.6070808>