Hello none, Thursday, November 6, 2008, 2:52:53 AM, you wrote:
n> Hi, I'm trying to get a status from zfs on where the free space in n> my zfs filesystem is. Its a RAIDZ2 pool on 4 x 320GB HDD. I have n> several snapshots and I've just deleted rougly 150GB worth of data n> I didn't need from the current filesystem. The non-snapshot data n> now only takes up 156GB but I can't see where the rest is in the snapshots. n> The USED for the main filesystem (storage/freddofrog) shows 357G n> and I would expect the deleted 150G or so of data to show up in the n> snapshots below, but it doesn't. A du -c -h on /storage/freddofrog n> shows 152G used, about the same as the REFER for storage/freddofrog below n> So how can I tell where the space is being used (which snapshots)? n> [EMAIL PROTECTED]:~$ zfs list n> NAME USED AVAIL REFER n> storage 357G 227G 28.4K n> [EMAIL PROTECTED] 0 - 28.4K n> [EMAIL PROTECTED] 0 - 28.4K n> storage/freddofrog 357G 227G 151G n> storage/[EMAIL PROTECTED] 4.26G - 187G n> storage/[EMAIL PROTECTED] 61.1M - 206G n> storage/[EMAIL PROTECTED] 773M - 201G n> storage/[EMAIL PROTECTED] 33.2M - 192G n> storage/[EMAIL PROTECTED] 62.6M - 212G n> storage/[EMAIL PROTECTED] 5.29G - 217G When multple snapshots are pointing to the same data than instead of ccounting that used space to a random snapshot it will be acocunted against a filesystem. The used space you see by each snapshot is a uniq usage by that snapshot. If you would remove all anapshots you should re-gain 357G-151G of disk space. It's not an issue with ZFS snapshot it's just that no-one has a better idea how to account for used space by snapshots if multiple of them are pointing to the same data. -- Best regards, Robert Milkowski mailto:[EMAIL PROTECTED] http://milek.blogspot.com _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss