ZFS volume does not seem to free space for deleted files
accounts-ag
accounts-ag at netlabs.org
Tue Jul 14 17:27:37 UTC 2015
On 14.07.15 12:00, Matthew D. Fuller wrote:
> I'm pretty sure you can't just add up those USED's and get a number
> suggesting how much space deleting them all will free up. AIUI, the
> USED number for a snapshot means how much that one alone is using;
> e.g., how much space would be freed by deleting just that one. So any
> blocks referenced by 2 or more wouldn't show up in those numbers. A
> bunch of files that have been sitting around a long time would be a
> good candidate for existing in most (/all) of them, so you won't see
> them in per-snapshot USED until you delete all but 1.
looks right, I found this later:
# zfs list -t all -r tank/jail/www
NAME USED AVAIL REFER
MOUNTPOINT
[...]
tank/jail/www at hourly-2015-07-13_04.04.00--2d 257M - 46.1G -
tank/jail/www at hourly-2015-07-13_10.04.00--2d 260M - 46.5G -
tank/jail/www at hourly-2015-07-13_16.04.00--2d 1.70G - 46.7G -
tank/jail/www at hourly-2015-07-13_22.04.00--2d 48.4M - 22.3G -
tank/jail/www at daily-2015-07-14_00.00.00--2w 32.4M - 4.61G -
tank/jail/www at hourly-2015-07-14_04.04.00--2d 20.0M - 4.60G -
tank/jail/www at hourly-2015-07-14_10.04.00--2d 20.4M - 4.61G -
tank/jail/www at hourly-2015-07-14_16.04.00--2d 19.8M - 4.57G -
so one can clearly see where I deleted the files. Will now delete the
snapshots before that point and see if this solves it.
regards
Adrian
More information about the freebsd-fs
mailing list