Solved Can someone ELI5 the size of my boot enviroment, please?

Can someone explain to me why my default BE has 60gb of size and my / only has 47gb of content. What is this 13gb of difference?

Code:
{beastie}  FreeBaSeD-T430 > /home/beastie
 → bectl list -a
BE/Dataset/Snapshot                         Active Mountpoint Space Created

13.2-RELEASE_2023-06-09_225758
  zroot/ROOT/13.2-RELEASE_2023-06-09_225758 -      -          4.49G 2023-06-09 22:57

default
  zroot/ROOT/default                        NR     /          60.4G 2023-06-09 22:02
{beastie}  FreeBaSeD-T430 > /home/beastie
 → zfs list -o space,recsize,refer,ratio,lrefer,compress,dedup -t all -r
NAME                                                             AVAIL   USED  USEDSNAP  USEDDS  USEDREFRESERV  USEDCHILD  RECSIZE     REFER  RATIO  LREFER  COMPRESS        DEDUP
tank1                                                             841G  81.9G        0B     96K             0B      81.9G     128K       96K  1.08x   42.5K  off             off
tank1/cbsd                                                        841G    96K        0B     96K             0B         0B     128K       96K  1.00x   42.5K  lz4             off
tank1/zhome                                                       841G  81.8G        0B   81.8G             0B         0B     128K     81.8G  1.08x   86.9G  zstd            off
tank2                                                             450G   860K        0B     96K             0B       764K     128K       96K  1.00x   42.5K  off             off
tank2/zbkp                                                        450G   200K        0B    200K             0B         0B     128K      200K  1.00x     70K  zstd            off
zroot                                                             130G  69.4G        0B     96K             0B      69.4G     128K       96K  1.81x   42.5K  lz4             off
zroot/ROOT                                                        130G  64.9G        0B     96K             0B      64.9G     128K       96K  1.82x   42.5K  lz4             off
zroot/ROOT/13.2-RELEASE_2023-06-09_225758                         130G  4.49G        8K   4.49G             0B         0B     128K     4.49G  1.68x   7.24G  lz4             off
zroot/ROOT/13.2-RELEASE_2023-06-09_225758@2023-06-09-22:57:58-0      -     8K         -       -              -          -        -     4.49G  1.68x   7.24G  -               -
zroot/ROOT/default                                                130G  60.4G     13.3G   47.1G             0B         0B     128K     47.1G  1.83x   82.9G  lz4             off
zroot/ROOT/default@2023-05-31-15:02:41-0                             -  13.3G         -       -              -          -        -     18.3G  1.49x   25.8G  -               -
zroot/poudriere                                                   130G  1.40G        0B    104K             0B      1.40G     128K      104K  2.09x   46.5K  lz4             off
zroot/poudriere/jails                                             130G  1.40G        0B     96K             0B      1.40G     128K       96K  2.09x   42.5K  lz4             off
zroot/poudriere/jails/13amd64                                     130G  1.40G      296K   1.40G             0B         0B     128K     1.40G  2.09x   2.60G  lz4             off
zroot/poudriere/jails/13amd64@clean                                  -   296K         -       -              -          -        -     1.40G  2.09x   2.60G  -               -
zroot/poudriere/ports                                             130G    96K        0B     96K             0B         0B     128K       96K  1.00x   42.5K  lz4             off
zroot/tmp                                                         130G   300K        0B    300K             0B         0B     128K      300K  1.70x    345K  lz4             off
zroot/usr                                                         130G  3.04G        0B     96K             0B      3.04G     128K       96K  1.41x   42.5K  lz4             off
zroot/usr/ports                                                   130G  1.98G        0B   1.98G             0B         0B     128K     1.98G  1.22x   1.77G  lz4             off
zroot/usr/src                                                     130G  1.05G        0B   1.05G             0B         0B     128K     1.05G  1.72x   1.59G  lz4             off
zroot/var                                                         130G  2.63M        0B     96K             0B      2.54M     128K       96K  8.93x   42.5K  lz4             off
zroot/var/audit                                                   130G    96K        0B     96K             0B         0B     128K       96K  1.00x   42.5K  lz4             off
zroot/var/crash                                                   130G    96K        0B     96K             0B         0B     128K       96K  1.01x     43K  lz4             off
zroot/var/log                                                     130G  2.09M        0B   2.09M             0B         0B     128K     2.09M  9.89x   18.9M  lz4             off
zroot/var/mail                                                    130G   152K        0B    152K             0B         0B     128K      152K  1.00x   62.5K  lz4             off
zroot/var/tmp                                                     130G   112K        0B    112K             0B         0B     128K      112K  1.00x     47K  lz4             off
{beastie}  FreeBaSeD-T430 > /home/beastie
 → df -h                                                                
Filesystem                       Size    Used   Avail Capacity  Mounted on
zroot/ROOT/default               177G     47G    130G    27%    /
devfs                            1.0K    1.0K      0B   100%    /dev
/dev/ada0p1                      260M    1.8M    258M     1%    /boot/efi
procfs                           4.0K    4.0K      0B   100%    /proc
fdescfs                          1.0K    1.0K      0B   100%    /dev/fd
tmpfs                             16G    4.0K     16G     0%    /tmp
tank1                            841G     96K    841G     0%    /tank1
tank1/zhome                      922G     82G    841G     9%    /usr/home
tank1/cbsd                       841G     96K    841G     0%    /tank1/cbsd
zroot/var/mail                   130G    152K    130G     0%    /var/mail
zroot                            130G     96K    130G     0%    /zroot
zroot/var/audit                  130G     96K    130G     0%    /var/audit
zroot/tmp                        130G    300K    130G     0%    /tmp
zroot/var/crash                  130G     96K    130G     0%    /var/crash
zroot/usr/src                    131G    1.1G    130G     1%    /usr/src
zroot/var/log                    130G    2.1M    130G     0%    /var/log
zroot/var/tmp                    130G    112K    130G     0%    /var/tmp
zroot/usr/ports                  132G    2.0G    130G     2%    /usr/ports
zroot/poudriere/jails/13amd64    132G    1.4G    130G     1%    /usr/local/poudriere/jails/13amd64
zroot/poudriere                  130G    104K    130G     0%    /zroot/poudriere
zroot/poudriere/jails            130G     96K    130G     0%    /zroot/poudriere/jails
zroot/poudriere/ports            130G     96K    130G     0%    /zroot/poudriere/ports
linprocfs                        4.0K    4.0K      0B   100%    /compat/linux/proc
linsysfs                         4.0K    4.0K      0B   100%    /compat/linux/sys
devfs                            1.0K    1.0K      0B   100%    /compat/linux/dev
fdescfs                          1.0K    1.0K      0B   100%    /compat/linux/dev/fd
tmpfs                             16G    4.0K     16G     0%    /compat/linux/dev/shm
tank2                            450G     96K    450G     0%    /tank2
tank2/zbkp                       450G    200K    450G     0%    /mnt/bkp
{beastie}  FreeBaSeD-T430 > /home/beastie
 → doas du -hsx /                                                       
 47G    /
 
It’s the snapshot ‘zroot/ROOT/default@2023-05-31-15:02:41-0’ which is using 13GB of space. (13GB of content referenced by that snapshot is no longer accessible from zroot/ROOT/default (has been modified / deleted); the space is required to make it so that you can roll back to the snapshot state if desired.

If you don’t want to be able to roll back to that snapshot, then you should be able to delete it (although if it is the source of a clone (perhaps the other BE) you’ll need to delete the clone before you can delete the snapshot.
 
Back
Top