Hacker News new | ask | show | jobs
by sandreas 10 days ago
On ZFS it often is old snapshots and it is surprisingly hard to find out how much space will be freed after destroying one.

I found out that 'zfs destroy' has a dry-run option along with one that can show reclaimed space. After this i hacked together a little cli tool [1] that calculates what snapshots need to be deleted to reclaim e.g. 10GB.

It's not really production ready but from time to time it's useful :-)

1: https://github.com/sandreas/zfs-tool