ZFS How to delete ZFS ROOT datasets

Hello.
I try to delete old snapshots. When I do it, I get such messages:
Code:
root@six:/ # zfs list -H -o name -t snapshot | xargs -n1 zfs destroy
cannot destroy 'twin_sib/ROOT/default@2023-04-12-17:01:30-0': snapshot has dependent clones
use '-R' to destroy the following datasets:
twin_sib/ROOT/13.1-RELEASE-p1_2023-04-12_170130
cannot destroy 'twin_sib/ROOT/default@2023-07-20-22:35:18-0': snapshot has dependent clones
use '-R' to destroy the following datasets:
twin_sib/ROOT/13.1-RELEASE-p7_2023-07-20_223518
cannot destroy 'twin_sib/ROOT/default@2023-07-20-22:50:30-0': snapshot has dependent clones
use '-R' to destroy the following datasets:
twin_sib/ROOT/13.1-RELEASE-p8_2023-07-20_225030
cannot destroy 'twin_sib/ROOT/default@2023-07-20-22:51:41-0': snapshot has dependent clones
use '-R' to destroy the following datasets:
twin_sib/ROOT/13.2-RELEASE-p1_2023-07-20_225141
cannot destroy 'twin_sib/ROOT/default@2023-08-11-22:46:00-0': snapshot has dependent clones
use '-R' to destroy the following datasets:
twin_sib/ROOT/13.2-RELEASE-p1_2023-08-11_224600
This is zfs list
Code:
twin_sib                                          274G   188G       88K  none
twin_sib/ROOT                                    59.1G   188G       88K  none
twin_sib/ROOT/13.1-RELEASE-p1_2023-04-12_170130     8K   188G     39.0G  /
twin_sib/ROOT/13.1-RELEASE-p7_2023-07-20_223518     8K   188G     41.5G  /
twin_sib/ROOT/13.1-RELEASE-p8_2023-07-20_225030     8K   188G     41.7G  /
twin_sib/ROOT/13.2-RELEASE-p1_2023-07-20_225141     8K   188G     41.8G  /
twin_sib/ROOT/13.2-RELEASE-p1_2023-08-11_224600     8K   188G     36.4G  /
twin_sib/ROOT/default                            59.1G   188G     25.7G  /
twin_sib/swap                                    41.3G   208G     20.8G  -
twin_sib/tmp                                     5.46G   188G     5.46G  /tmp
twin_sib/usr                                      168G   188G       88K  /usr
twin_sib/usr/home                                 168G   188G      165G  /usr/home
twin_sib/usr/home/jails                          2.59G   188G       96K  /usr/home/jails
twin_sib/usr/home/jails/shumbely                 2.59G   188G     2.59G  /usr/home/jails/shumbely
twin_sib/var                                     49.5M   188G       88K  /var
twin_sib/var/audit                                 88K   188G       88K  /var/audit
twin_sib/var/crash                                 88K   188G       88K  /var/crash
twin_sib/var/log                                 15.6M   188G     15.6M  /var/log
twin_sib/var/mail                                33.6M   188G     33.6M  /var/mail
twin_sib/var/tmp                                   88K   188G       88K  /var/tmp
Why I have such many twin_sib/ROOT datasets? It is normal, or I can to delete some of them? If yes, so which of it? I understand that I have 13.2 RELEASE and 31.1-RELEASE is old. But I'm afraid to delete the datasets ROOT.
 
Code:
twin_sib/ROOT/13.1-RELEASE-p1_2023-04-12_170130 8K 188G 39.0G / 
twin_sib/ROOT/13.1-RELEASE-p7_2023-07-20_223518 8K 188G 41.5G / 
twin_sib/ROOT/13.1-RELEASE-p8_2023-07-20_225030 8K 188G 41.7G / 
twin_sib/ROOT/13.2-RELEASE-p1_2023-07-20_225141 8K 188G 41.8G / 
twin_sib/ROOT/13.2-RELEASE-p1_2023-08-11_224600 8K 188G 36.4G /
You should use bectl(8) to remove these. See bectl list and bectl destroy <be>. Make sure to keep the one marked with NR, that's the boot environment you're currently on.

Why I have such many twin_sib/ROOT datasets? It is normal, or I can to delete some of them?
They're automatically created when running freebsd-update(8). They're there to save your butt in case something goes wrong with the upgrade. If everything works as it should you can remove them, yes.
 
Thanks. In Russia say "This is we tell people who ride are on an armored train" (I'm "on armored train")))
Code:
[sailorsamoor@six ~]% bectl list 
BE                                Active Mountpoint Space Created
13.1-RELEASE-p1_2023-04-12_170130 -      -          11.3G 2023-04-12 17:01
13.1-RELEASE-p7_2023-07-20_223518 -      -          201M  2023-07-20 22:35
13.1-RELEASE-p8_2023-07-20_225030 -      -          8.38M 2023-07-20 22:50
13.2-RELEASE-p1_2023-07-20_225141 -      -          6.01M 2023-07-20 22:51
13.2-RELEASE-p1_2023-08-11_224600 -      -          489M  2023-08-11 22:46
default                           NR     /          59.1G 2019-10-03 16:23
[sailorsamoor@six ~]%
 
"N" is "running NOW" or the currently running boot environment
"R" is "running on next REBOOT"
For some reason I always read this the other (wrong!) way around, "N" for Next boot and "R" for Running :rolleyes: Maybe it's because I keep remembering nextboot(8) and associate it with "N; Next"
 
Back
Top