Date: Fri, 13 Apr 2012 14:21:13 +0200 From: Mark Schouten <mark@tuxis.nl> To: "freebsd-fs@freebsd.org" <freebsd-fs@freebsd.org> Subject: ZFS and disk usage Message-ID: <1334319673.4f881a39b32a8@www.hyperdesktop.nl>
next in thread | raw e-mail | index | archive | help
Hi, I'm having some issues with a FreeBSD box using ZFS to se= rve iscsi to other boxes. [root@storage ~]# zpool list N= AME SIZE USED AVAIL CAP HEALTH ALTROOT storage 1.77T = 431G 1.34T 23% ONLINE - As you can see, the zpool is at o= nly 23% of it's capacity. However, if you get a list of filesystems with= "zfs list", you see that there is only 138GB free space left. [root= @storage ~]# zfs list NAME USED = AVAIL REFER MOUNTPOINT storage 1.60= T 138G 431G /storage storage/ZFS_FS_1 2= 0G 158G 16K - storage/ZFS_FS_2 20G 15= 8G 16K -=20 storage/ZFS_FS_3 100G 238G = 16K -=20 storage/ZFS_FS_4 20G 158G 16K = -=20 storage/ZFS_FS_5 1G 139G 16K -= =20 storage/ZFS_FS_6 400G 538G 16K - = storage/ZFS_FS_7 20G 158G 16K -=20 s= torage/ZFS_FS_8 400G 538G 16K -=20 storag= e/ZFS_FS_9 20G 158G 16K -=20 storage/ZFS= _FS_10 20G 158G 16K -=20 storage/ZFS_FS_11= 20G 158G 16K -=20 storage/ZFS_FS_12 = 150G 288G 16K -=20 storage/ZFS_FS_13 = 20G 158G 16K -=20 These are fiesystems that= are created with the following command. zfs create -V ${size}GB ${Z= FS_ROOT}/${diskname} Now, it seems that zpool only counts the d= ata that is actually written on the disk, and that zfs counts both the s= um of the individual filesystems *and* the data actually written on disk= . If I was to create a new filesystem of 138GB, the filesystem would be = full, eventhough that that's not the case. This seems weird, but= I'm not sure if it's me doing something wrong, or if its a bug. Please = enlighten me, thanks. Some more info: [root@sto= rage ~]# uname -a FreeBSD storage.storage 8.2-RELEASE FreeBSD 8.2-RE= LEASE #0: Thu Feb 17 02:41:51 UTC 2011 root@mason.cse.buffalo.edu:/u= sr/obj/usr/src/sys/GENERIC amd64 [root@storage ~]# zpool get a= ll storage NAME PROPERTY VALUE SOURCE storage s= ize 1.77T - storage used 431G -= storage available 1.34T - storage capacity 2= 3% - storage altroot - default storage= health ONLINE - storage guid 1090519474454= 5589060 default storage version 15 default sto= rage bootfs - default storage delegation on = default storage autoreplace off default sto= rage cachefile - default storage failmode wai= t default storage listsnapshots off default= [root@storage ~]# zfs get all storage NAME PROPERTY= VALUE SOURCE storage type = filesystem - storage creation Tue Ma= y 10 11:59 2011 - storage used 1.60T = - storage available 138G - s= torage referenced 431G - storage comp= ressratio 1.00x - storage mounted = yes - storage quota none = default storage reservation none = default storage recordsize 128K = default storage mountpoint /storage d= efault storage sharenfs off default= storage checksum on default s= torage compression off default storage= atime on default storage devi= ces on default storage exec = on default storage setuid = on default storage readonly = off default storage jailed off = default storage snapdir hidden = default storage aclmode groupmask = default storage aclinherit restricted d= efault storage canmount on default= storage shareiscsi off default s= torage xattr off temporary stora= ge copies 1 default storage ve= rsion 4 - storage utf8only = off - storage normalization none= - storage casesensitivity sensitive = - storage vscan off defau= lt storage nbmand off default= storage sharesmb off default s= torage refquota none default storage= refreservation none default storage prim= arycache all default storage secondaryc= ache all default storage usedbysnapshots = 0 - storage usedbydataset 431G = - storage usedbychildren 1.18T = - storage usedbyrefreservation 0 = - --=20 Dit bericht is verzonden via https://www.hyperdes= ktop.nl/. Alles, overal! Mark Schouten | Tuxis Internet Engine= ering KvK: 09218193 | http://www.tuxis.nl/ T: 0318 200208 | info= @tuxis.nl M: 06 53463918 | mark@tuxis.nl
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1334319673.4f881a39b32a8>