Well, it is kinda confusing...In short, df -h will always return the size of the WHOLE pool for "size" (unless you've set a quota on the dataset in which case it says that), the amount of space that particular dataset is using for "used", and the total amount of free space on the WHOLE pool for "avail" (unless you've got a quota or reservation set).
So in your original mail. 695G is the size of the DATA on the r12_data pool. zfs list r12_data says you are using 596G. I think this is the RAW capacity used, and I reckon you are using compression. (zfs get compressratio r12_data will give you something like 1.1).
However, df -h of r12_data/d24 should have the identical 1st and 3rd fields, but they don't. (Could you re-run?)
Same goes for the zfs list commands.Could you try doing zfs list -o space to get a fuller breakdown of how the space is being used.
Mike Grant Lowe wrote:
Hi Mike, Yes, d25 is a clone of d24. Here are some data points about it: bash-3.00# zfs get reservation r12_data/d25 NAME PROPERTY VALUE SOURCE r12_data/d25 reservation none default bash-3.00# zfs get quota r12_data/d25 NAME PROPERTY VALUE SOURCE r12_data/d25 quota none default bash-3.00# bash-3.00# zfs list r12_data NAME USED AVAIL REFER MOUNTPOINT r12_data 596G 62.7G 24.5K none bash-3.00# bash-3.00# zfs list -t snapshot r12_data/d...@a NAME USED AVAIL REFER MOUNTPOINT r12_data/d...@a 904K - 39.9G - bash-3.00# Thanks for the response. Did you need any more data points from me? ----- Original Message ---- From: Michael Ramchand <mich...@ramchand.net> To: Grant Lowe <gl...@sbcglobal.net> Cc: zfs-discuss@opensolaris.org Sent: Tuesday, March 17, 2009 12:40:53 AM Subject: Re: [zfs-discuss] Disk usage Grant Lowe wrote:Hey all, I have a question/puzzle with zfs. See the following: bash-3.00# df -h | grep d25 ; zfs list | grep d25 FILESYSTEM SIZE USED AVAIL CAPACITY MOUNTED ON r12_data/d25 *659G* 40G *63G* 39% /opt/d25/oakwc12 df -h says the d25 file system is 659GB?; 40GB used and 63GB available? r12_data/d24 42G 40G 2.1G 95% /opt/d24/oakwcr12 NAME USED AVAIL REFER MOUNTPOINT r12_data/d25 760K *62.7G* 39.9G /opt/d25/oakwc12 zfs list says the db25 file system has 63GB available? r12_data/d24 39.9G 2.14G 39.9G /opt/d24/oakwcr12 Shouldn't the new filesystem (d25) size be what the clone was allocated? _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discussHi Grant, We'd need more info than that to figure what's actually going on.Is d25 a clone of something? If so what? Can we see the specs of that as well.Does d25 have any reservations or a quota? What does zfs list of r12_data show? Do you have snapshots? zfs list -t all will show you them. Finally, the clone will only be the size of it's delta from the source. HTH
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss