Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jul 2009 00:56:21 +0300
From:      Dan Naumov <dan.naumov@gmail.com>
To:        freebsd-fs@freebsd.org
Subject:   ZFS and df weirdness
Message-ID:  <cf9b1ee00907041456w590b3bcdie4829af226159e2@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
Hello list.

I have a single 2tb disk used on a 7.2-release/amd64 system with a
small part of it given to UFS and most of the disk given to a single
"simple" zfs pool with several filesystems without redundancy. I've
noticed a really weird thing regarding what "df" reports regarding the
"total space" of one of my filesystems:

atom# zpool list
NAME =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0SIZE =A0 =A0USED =A0 AVAIL =A0 =
=A0CAP =A0HEALTH =A0 =A0 ALTROOT
tank =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1.80T =A0 =A0294G =A0 1.51T =A0 =
=A015% =A0ONLINE =A0 =A0 -

atom# zfs list
NAME =A0 =A0 =A0 =A0 =A0 =A0 =A0USED =A0AVAIL =A0REFER =A0MOUNTPOINT
tank =A0 =A0 =A0 =A0 =A0 =A0 =A0294G =A01.48T =A0 =A018K =A0none
tank/DATA =A0 =A0 =A0 =A0 292G =A01.48T =A0 292G =A0/DATA
tank/home =A0 =A0 =A0 =A0 216K =A01.48T =A0 =A021K =A0/home
tank/home/jago =A0 =A0132K =A01.48T =A0 132K =A0/home/jago
tank/home/karni =A0 =A062K =A01.48T =A0 =A062K =A0/home/karni
tank/usr =A0 =A0 =A0 =A0 1.33G =A01.48T =A0 =A018K =A0none
tank/usr/local =A0 =A0455M =A01.48T =A0 455M =A0/usr/local
tank/usr/obj =A0 =A0 =A0 18K =A01.48T =A0 =A018K =A0/usr/obj
tank/usr/ports =A0 =A0412M =A01.48T =A0 412M =A0/usr/ports
tank/usr/src =A0 =A0 =A0495M =A01.48T =A0 495M =A0/usr/src
tank/var =A0 =A0 =A0 =A0 =A0320K =A01.48T =A0 =A018K =A0none
tank/var/log =A0 =A0 =A0302K =A01.48T =A0 302K =A0/var/log

atom# df
Filesystem =A0 =A0 =A01K-blocks =A0 =A0 =A0 Used =A0 =A0 =A0Avail Capacity =
=A0Mounted on
/dev/ad12s1a =A0 =A0 =A016244334 =A0 1032310 =A0 13912478 =A0 =A0 7% =A0 =
=A0/
devfs =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A01 =A0 =A0 =A0 =A0 1 =A0 =A0 =
=A0 =A0 =A00 =A0 100% =A0 =A0/dev
linprocfs =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A04 =A0 =A0 =A0 =A0 4 =A0 =A0 =A0 =
=A0 =A00 =A0 100% =A0 =A0/usr/compat/linux/proc
tank/DATA =A0 =A0 =A0 1897835904 306397056 1591438848 =A0 =A016% =A0 =A0/DA=
TA
tank/home =A0 =A0 =A0 1591438848 =A0 =A0 =A0 =A0 0 1591438848 =A0 =A0 0% =
=A0 =A0/home
tank/home/jago =A01591438976 =A0 =A0 =A0 128 1591438848 =A0 =A0 0% =A0 =A0/=
home/jago
tank/home/karni 1591438848 =A0 =A0 =A0 =A0 0 1591438848 =A0 =A0 0% =A0 =A0/=
home/karni
tank/usr/local =A01591905024 =A0 =A0466176 1591438848 =A0 =A0 0% =A0 =A0/us=
r/local
tank/usr/obj =A0 =A01591438848 =A0 =A0 =A0 =A0 0 1591438848 =A0 =A0 0% =A0 =
=A0/usr/obj
tank/usr/ports =A01591860864 =A0 =A0422016 1591438848 =A0 =A0 0% =A0 =A0/us=
r/ports
tank/usr/src =A0 =A01591945600 =A0 =A0506752 1591438848 =A0 =A0 0% =A0 =A0/=
usr/src
tank/var/log =A0 =A01591439104 =A0 =A0 =A0 256 1591438848 =A0 =A0 0% =A0 =
=A0/var/log

atom# df -h
Filesystem =A0 =A0 =A0 =A0 Size =A0 =A0Used =A0 Avail Capacity =A0Mounted o=
n
/dev/ad12s1a =A0 =A0 =A0 =A015G =A0 =A01.0G =A0 =A0 13G =A0 =A0 7% =A0 =A0/
devfs =A0 =A0 =A0 =A0 =A0 =A0 =A01.0K =A0 =A01.0K =A0 =A0 =A00B =A0 100% =
=A0 =A0/dev
linprocfs =A0 =A0 =A0 =A0 =A04.0K =A0 =A04.0K =A0 =A0 =A00B =A0 100% =A0 =
=A0/usr/compat/linux/proc
tank/DATA =A0 =A0 =A0 =A0 =A01.8T =A0 =A0292G =A0 =A01.5T =A0 =A016% =A0 =
=A0/DATA
tank/home =A0 =A0 =A0 =A0 =A01.5T =A0 =A0 =A00B =A0 =A01.5T =A0 =A0 0% =A0 =
=A0/home
tank/home/jago =A0 =A0 1.5T =A0 =A0128K =A0 =A01.5T =A0 =A0 0% =A0 =A0/home=
/jago
tank/home/karni =A0 =A01.5T =A0 =A0 =A00B =A0 =A01.5T =A0 =A0 0% =A0 =A0/ho=
me/karni
tank/usr/local =A0 =A0 1.5T =A0 =A0455M =A0 =A01.5T =A0 =A0 0% =A0 =A0/usr/=
local
tank/usr/obj =A0 =A0 =A0 1.5T =A0 =A0 =A00B =A0 =A01.5T =A0 =A0 0% =A0 =A0/=
usr/obj
tank/usr/ports =A0 =A0 1.5T =A0 =A0412M =A0 =A01.5T =A0 =A0 0% =A0 =A0/usr/=
ports
tank/usr/src =A0 =A0 =A0 1.5T =A0 =A0495M =A0 =A01.5T =A0 =A0 0% =A0 =A0/us=
r/src
tank/var/log =A0 =A0 =A0 1.5T =A0 =A0256K =A0 =A01.5T =A0 =A0 0% =A0 =A0/va=
r/log

Considering that every single filesystem is part of the exact same
pool, with no custom options whatsoever used during filesystem
creation (except for mountpoints), why is the size of tank/DATA 1.8T
while the others are 1.5T?


- Sincerely,
Dan Naumov



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