ZFS free space

i have a single pool with a bunch of datasets.. however when i go i to any dataset and rm -rf a bunch of stuff my zpool freespace never changes


is there a way to force the pool to recalculate space? ive removed hundreds of gigs and nothing changes

thanks
 
Yes if they are also part of any (at least one) snapshot.

If you create a file, take a snapshot then delete the file, this file doesn't currently exist in the dataset but still exists for the snapshot and consequently still uses the same space. To really claim this used space you also have to delete the snapshots it is part of (but before that be sure you don't need to undo anything else)
 
thanks that makes perfect sense, looks like my issue is with my snapshotting script .. clearly i will have to clean up better :)

cheers
 
Back
Top