So, I just wanted to fix up my "playground" host. Back then, I used boot environments "incorrectly". i.e. what I did whenever I performed an upgrade or some test I wanted to be able to roll-back from is this:
Given that I didn't do it this way back then on this particular host my current situations look like this:
Now I'd like to get back to the approach where the host usually remains on the
However, deleting the
I use sysutils/cbsd to manage jails (and VMs).
As of my current knowledge, there are basically two possible scenarios:
- Create new BE
- Activate new BE
- Reboot
- Do critical stuff
- Then either roll back to previous BE or just leave as is
- Create new BE
- Do critical stuff
- Then either roll back to previous BE or just leave as is
default
BE (unless something went wrong).Given that I didn't do it this way back then on this particular host my current situations look like this:
Code:
jbo@knox:~ % bectl list
BE Active Mountpoint Space Created
13.1-RELEASE_2023-01-02_150042 - - 3.11M 2023-01-02 15:00
20220525 - - 11.3M 2022-05-25 13:19
20230102 NR / 10.3G 2023-01-02 14:55
default - - 29.4G 2020-07-21 16:09
default
BE. My approach would be to delete the currently existing default
BE, then creating a new default
BE from the currently active BE ( 20230102
).However, deleting the
default
didn't work:
Code:
jbo@knox:~ % sudo bectl destroy -o default
cannot destroy 'zroot/ROOT/default/git': dataset is busy
unknown error
git
is a jail hosting a git server. This is the point where I started to get concerned. To me, it looks like my system is running on the 20230102
BE but my jails are all mounting form zroot/ROOT/default:
Code:
jbo@knox:~ % zfs list
NAME USED AVAIL REFER MOUNTPOINT
storage 10.6T 6.80T 128K /storage
storage/emby 10.4T 6.80T 10.4T /storage/emby
storage/nextcloud 132G 6.80T 132G /storage/nextcloud
zroot 39.6G 183G 88K /zroot
zroot/ROOT 39.5G 183G 88K none
zroot/ROOT/13.1-RELEASE_2023-01-02_150042 8K 183G 7.21G /
zroot/ROOT/20220525 884K 183G 7.10G /
zroot/ROOT/20230102 10.3G 183G 7.19G /
zroot/ROOT/default 29.2G 183G 5.52G /
zroot/ROOT/default/blog 473M 183G 219M /usr/jails/jails-data/blog-data
zroot/ROOT/default/cppproperties 199M 183G 114M /usr/jails/jails-data/cppproperties-data
zroot/ROOT/default/emby 16.0G 183G 5.20G /usr/jails/jails-data/emby-data
zroot/ROOT/default/git 2.34G 183G 2.34G /usr/jails/jails-data/git-data
zroot/ROOT/default/irc 965M 183G 574M /usr/jails/jails-data/irc-data
zroot/ROOT/default/nextcloud 4.76G 183G 1.93G /usr/jails/jails-data/nextcloud-data
zroot/tmp 884K 183G 488K /tmp
zroot/usr 840K 183G 88K /usr
zroot/usr/home 464K 183G 220K /usr/home
zroot/usr/ports 144K 183G 88K /usr/ports
zroot/usr/src 144K 183G 88K /usr/src
zroot/var 7.09M 183G 88K /var
zroot/var/audit 144K 183G 88K /var/audit
zroot/var/crash 144K 183G 88K /var/crash
zroot/var/log 4.08M 183G 1.36M /var/log
zroot/var/mail 2.44M 183G 2.24M /var/mail
zroot/var/tmp 208K 183G 88K /var/tmp
As of my current knowledge, there are basically two possible scenarios:
bectl
creates an alias of the currently active BE to zroot/ROOT/default no matter the name of the currently active BE.- I hosed my system: The base system is running on zroot/ROOT/20230102 but my jails are all mounting zroot/ROOT/default