Laurent Blume
2008-Feb-20 22:53 UTC
[zfs-discuss] ZFS total size different when NFS mounted
Hi all,
Another issue users have pointed out with ZFS: now, when their ZFS homedirs are
automounted, the total size shown is not always correct.
All the homedirs have a 10GB quota, which means that is supposed to be the total
size shown. However, when there are snapshots on those FS, and they are
automounted via NFS, the total size is the actual quota size minus the space
used up by the snapshots, which is *very* confusing.
Let''s see an example, a homedir with a 10 GB quota, and a snapshot
using up 2 GB:
$ /usr/sbin/zfs list -r home/testcc
NAME USED AVAIL REFER MOUNTPOINT
home/testcc 2,43G 7,57G 444M /export/home/users/testcc
home/testcc at hier 2,00G - 2,43G -
If I check the size locally, on the automounted homedir, using df, I get:
$ df -h /home/users/testcc
Syst?me de fichiers taille utilis? dispo capacit? Mont? sur
home/testcc 10G 444M 7,6G 6% /export/home/users/testcc
If I use the exact same command on a system with the exact same automount
config, whether Solaris or RHEL, I get:
$ df -h /home/users/testcc
Sys. de fich. Tail. Occ. Disp. %Occ. Mont? sur
dota-cc-fichier:/export/home/users/testcc
8,0G 445M 7,6G 6% /home/users/testcc
See2 ZGB of difference (I''ll pass on the 1MB difference on use).
Even locally, it is incoherent:
$ df -h |grep test
home/testcc 10G 444M 7,6G 6% /export/home/users/testcc
/export/home/users/testcc 8,0G 444M 7,6G 6% /home/users/testcc
What is the reason of such a difference?
Laurent
This message posted from opensolaris.org