Re: [zfs-discuss] ZFS snapshot used space question

2012-08-31 Thread Truhn, Chad
>Is there a way to get the total amount of data referenced by a snapshot that >isn't referenced by a specified snapshot/filesystem? I think this is what is >really desired in order to locate >snapshots with offending space usage. The >written and written@ attributes seem to only do the rever

Re: [zfs-discuss] ZFS snapshot used space question

2012-08-31 Thread Timothy Coalson
I went ahead and hacked this script together, so let me elaborate. First, though, a teaser: $ ./snapspace.sh mainpool/storage SNAPSHOTOLDREFS UNIQUE UNIQUE% zfs-auto-snap_monthly-2011-11-14-18h59 34.67G 11.0G 31% zfs-auto-snap_monthly-2011-12-1