
On Wed, Jun 06, 2012 at 03:51:34PM +1000, Joel W Shea wrote:
On 6 June 2012 14:35, Russell Coker <russell@coker.com.au> wrote:
I have 4*3TB disks in a RAID-Z. zpool list says the size is 10.9TB, df -h says the size is 7.8TB.
I expected to see 9TB as the reported size. What is happening? Is the full capacity of the disks being used?
Furthermore, with ZFS you probably shouldn't rely on df to report the correct filesystem size;
unlike btrfs, df is accurate on zfs.
Use "zfs list" instead, as the df command wont be aware of, or understand descendant filesystems, snapshots, compression, dedup etc
or 'zpool list'. # zpool list NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT backup 3.62T 2.49T 1.14T 68% 1.00x ONLINE - export 3.62T 2.45T 1.18T 67% 1.00x ONLINE - that's two zpools, each made up of 4 x 1TB drives in raidz-1. 3.6TB formatted from 4x1TB native is about what you'd expect. 'zfs list' shows the filesystems and/or zvols and/or snapshots within the zpools. e.g. # zfs list -t filesystem NAME USED AVAIL REFER MOUNTPOINT backup 1.81T 804G 291K none backup/asterisk 969M 804G 953M /backup/hosts/asterisk backup/durga 10.2G 804G 10.2G /backup/hosts/durga backup/ganesh 1.62T 804G 1.60T /backup/hosts/ganesh backup/hanuman 683M 804G 673M /backup/hosts/hanuman backup/indra 139G 804G 136G /backup/hosts/indra backup/kali 39.9G 804G 37.6G /backup/hosts/kali export 1.85T 756G 727G /export export/ftp 133G 756G 133G /export/ftp export/home 927G 756G 927G /export/home export/src 6.14G 756G 6.14G /export/src craig -- craig sanders <cas@taz.net.au> BOFH excuse #388: Bad user karma.