Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 2015 19:27:32 +0200
From:      accounts-ag <accounts-ag@netlabs.org>
To:        "Matthew D. Fuller" <fullermd@over-yonder.net>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: ZFS volume does not seem to free space for deleted files
Message-ID:  <55A54684.7060408@netlabs.org>
In-Reply-To: <20150714100023.GC96394@over-yonder.net>
References:  <55A4DB1D.7000404@netlabs.org> <20150714100023.GC96394@over-yonder.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@hourly-2015-07-13_04.04.00--2d    257M      -  46.1G  -
tank/jail/www@hourly-2015-07-13_10.04.00--2d    260M      -  46.5G  -
tank/jail/www@hourly-2015-07-13_16.04.00--2d   1.70G      -  46.7G  -
tank/jail/www@hourly-2015-07-13_22.04.00--2d   48.4M      -  22.3G  -
tank/jail/www@daily-2015-07-14_00.00.00--2w    32.4M      -  4.61G  -
tank/jail/www@hourly-2015-07-14_04.04.00--2d   20.0M      -  4.60G  -
tank/jail/www@hourly-2015-07-14_10.04.00--2d   20.4M      -  4.61G  -
tank/jail/www@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55A54684.7060408>