Re: ZFS space allocation

From: Gordon Bergling <gbe_at_freebsd.org>
Date: Sat, 15 Jun 2024 05:48:04 UTC
Hi Craig,

On Fri, Jun 14, 2024 at 10:26:57PM -0700, Craig Leres wrote:
> On 6/14/24 22:18, Gordon Bergling wrote:
> 
> > I just upgraded a 13.3-RELEASE system to 14.1-RELEASE, which has
> > two ZFS pools, z for ZFS-on-root and storage for asorted stuff. While
> > a 'pkg upgrade' fails, I discovered something strange with the free
> > disk space.
> 
> [...]
> 
> > In general I don't have any clue where the 16.5G are allocated.
> > 
> > Any hints how to get the space back? I have deleted all snapshots, but the available space
> > is still 0B.
> 
> I ran into this after upgrading a small vultr vm; I couldn't install one
> last large package because there wasn't enough free space. In my case it was
> due to a bunch of old boot environment snapshots. I don't know what happens
> if you delete the related snapshots without using "bectl" but it still might
> be worth looking at BECTL(8)

Thanks for the hint on bectl(8). After using 'bectl destroy' for deleting the
remaining snapshots / boot environments I got 9GB free space. I don't know why
there aren't listed with 'zfs list -t snapshot', but the space is back and I
can finish the update to 14.1-RELEASE.

--Gordon