Hello
I want to try the sysutils/beadm tool but found that my ZFS structure is far from ideal.
sysutils/beadm will work, but some critical directories will be out of scope as it expects everything not shared between BE be under zroot/ROOT.
I'm scared to break my desktop, so I'd like to ask more experienced users about my next steps.
I want to try the sysutils/beadm tool but found that my ZFS structure is far from ideal.
Code:
NAME USED AVAIL REFER MOUNTPOINT
zdata/home 943G 765G 943G /home
zroot 14.1G 68.1G 144K none
zroot/ROOT 2.10G 68.1G 144K none
zroot/ROOT/default 2.10G 68.1G 1.18G /
zroot/tmp 47.4M 68.1G 312K /tmp
zroot/usr 11.6G 68.1G 380M /usr
zroot/usr/local 2.93G 68.1G 2.77G /usr/local
zroot/usr/obj 4.13G 68.1G 4.13G /usr/obj
zroot/usr/ports 3.65G 68.1G 909M /usr/ports
zroot/usr/ports/distfiles 2.75G 68.1G 2.73G /usr/ports/distfiles
zroot/usr/ports/packages 432K 68.1G 144K /usr/ports/packages
zroot/usr/src 547M 68.1G 545M /usr/src
zroot/var 314M 68.1G 26.7M /var
zroot/var/crash 156K 68.1G 148K /var/crash
zroot/var/db 284M 68.1G 235M /var/db
zroot/var/db/pkg 47.5M 68.1G 39.0M /var/db/pkg
zroot/var/empty 144K 68.1G 144K /var/empty
zroot/var/log 1012K 68.1G 452K /var/log
zroot/var/mail 320K 68.1G 144K /var/mail
zroot/var/run 1.04M 68.1G 348K /var/run
zroot/var/tmp 472K 68.1G 156K /var/tmp
sysutils/beadm will work, but some critical directories will be out of scope as it expects everything not shared between BE be under zroot/ROOT.
I'm scared to break my desktop, so I'd like to ask more experienced users about my next steps.
- Should I flatten my ZFS dataset structure?
- Am I right that technically I need to create recursive snapshots of zroot/var and zroot/usr and send them on top of zroot/ROOT/default? Something like
zfs snapshot zroot/usr@migr
zfs send -R zroot/usr@migr | zfs recv zroot/ROOT/default/usr
Then, check the new mountpoint to be correct, drop zroot/usr and reboot?