Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jul 2009 01:09:18 +0200
From:      Christian Walther <cptsalek@gmail.com>
To:        Dan Naumov <dan.naumov@gmail.com>
Cc:        FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: ZFS and df weirdness
Message-ID:  <14989d6e0907041609q62257ecdn6b80fd3b99b40df8@mail.gmail.com>
In-Reply-To: <cf9b1ee00907041455v57b1e1eatf7b4cf0a060b938c@mail.gmail.com>
References:  <cf9b1ee00907041455v57b1e1eatf7b4cf0a060b938c@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Dan,

basically the "size" in df shows the current free space plus the used
space of the specific filesystem. This makes sense: Since per default
all disk space is shared, and thus can be used by all filesystems, all
filesystems need to report it as free space. Well, and used space has
to be added to the complete size, of course.

In your setup, there are 1.5TB available, but DATA uses 292GB (rounded
to 300GB). Both value add up to 1.8TB, giving the overall size of your
pool. (There is another rounding error because of your other
filesystems, but they are rather small.)
If you, say, add 400GB to tank/home/jago your df would look something like this:

> tank/DATA          1.4T    292G    1.1T    16%    /DATA
> tank/home/jago     1.1T    400G    1.1T     0%    /home/jago

It needs some time to get used to the way df displays data. IMO things
are getting easier when one remembers that the OS actually treats
every Z Filesystem like an individual device.
And BTW: The real fun starts when you add reservation and quotas to
some of your filesystems. ;-)

HTH
Christian



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