Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Aug 2023 12:46:18 +0100
From:      Kaya Saman <kayasaman@optiplex-networks.com>
To:        freebsd-questions@freebsd.org
Subject:   ZFS Root size keeps going down after upgrade to 13.2-release
Message-ID:  <8f3b445d-3f55-f359-ce5e-0d86c57755fe@optiplex-networks.com>

next in thread | raw e-mail | index | archive | help
Hi all,


I have just upgraded my system from 13.1 -> 13.2 and now the maximum=20
file system size keeps going down and 'df' is showing as hardly any=20
space left on the drive?


# df -h
Filesystem=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Size=C2=A0=C2=A0=C2=A0 Used=C2=A0=C2=
=A0 Avail Capacity=C2=A0=20
Mounted on
zroot/ROOT/default=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 37G=C2=A0=C2=A0=C2=A0=C2=A0 36G=C2=A0=C2=A0=C2=A0 720M 98%=C2=A0=C2=A0=C2=
=A0 /


Yesterday when performing the upgrade I did notice this which happened=20
after deleting over 20GB of 'preview' files for one of my webapps in=20
/usr/local/www/ which is hosted by the apache2 port. The file system was=20
at around 97% yet after the 'rm -rf *' command the file system went to 10=
0%?

Just as an FYI, it's the standard upgrade from the FAQ page:

freebsd-update -r 13.2-RELEASE upgrade


The root system is mirrored between two disks:

 =C2=A0=C2=A0=C2=A0 NAME=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 STATE=C2=
=A0=C2=A0=C2=A0=C2=A0 READ WRITE CKSUM
 =C2=A0=C2=A0 =C2=A0zroot=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ONLINE=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2=
=A0=C2=A0 0
 =C2=A0=C2=A0 =C2=A0=C2=A0 mirror-0=C2=A0 ONLINE=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0 0
 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 ada0p3=C2=A0 ONLINE=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0=
 0
 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 ada1p3=C2=A0 ONLINE=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0=
 0


Reading up a little I found a posting where someone had been trying to=20
delete snapshots which where taking up huge areas of space. Not the same=20
problem I think since the snapshots of upgrades do not take up that much=20
and I have already removed the larger obsolete snapshots containing=20
FreeBSD 12.x.


Here is the output from 'zfs list -o space':

zroot=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 720M=C2=A0=C2=A0 107G 0B=C2=A0=C2=A0=20
2.20G=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0 0B=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 105G
zroot/ROOT=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0 720M=C2=A0 88.5G 0B=C2=A0=C2=A0=C2=A0=C2=A0=20
88K=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 0B=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 88.5G
zroot/ROOT/13.1-RELEASE-p5_2023-08-20_220010=C2=A0=C2=A0 720M=C2=A0=C2=A0=
=C2=A0=C2=A0 8K 0B=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=20
8K=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 0B=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0B
zroot/ROOT/13.2-RELEASE-p2_2023-08-20_224534=C2=A0=C2=A0 720M=C2=A0=C2=A0=
=C2=A0=C2=A0 8K 0B=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=20
8K=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 0B=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0B



The actual link I found that I mentioned above was this one:=20
https://forums.freebsd.org/threads/zfs-how-to-properly-remove-unnecessary=
-snapshots-and-not-damage-data.85436/


in which here is the output of 'bectl list':


# bectl list
BE=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Active Mountpoint Space Created
13.1-RELEASE-p5_2023-08-20_220010 -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 34.5M 2023-08-20 22:00
13.2-RELEASE-p2_2023-08-20_224534 -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 9.56M 2023-08-20 22:45
default=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 NR=C2=A0=C2=A0=C2=A0=C2=A0 /=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 88.5G 2018-08-07 02:53


What I really do not understand is why is the space getting smaller for=20
the file system 'size' and how do I regain it? I probably have deleted=20
around 40GB (of user based files) already yet nothing is showing up and=20
no space is clearing. I wonder if the recent update has done something=20
to the root pool?


Would anyone be able to help on this one? Basically I just want to=20
create space again on the drive as currently I am unable to even fetch=20
the @ports collection with only 720M of disk space being shown as=20
left.... cleaning @ports should have given me quite a few GB spare but=20
nothing happening at all??


Many thanks.


Kaya




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8f3b445d-3f55-f359-ce5e-0d86c57755fe>