I have a server that is still on 15.0-RELEASE and I was going to update to 15.1-RELEASE following the instructions provided here, starting with creating a backup with bectl. Bectl did not work, which I came to learn had to do with the layout of my root zpool. For some reason after installation the plain "root" dataset was used for the / mountpoint rather than root/ROOT/default, which did not exist.
Anyway, I have managed to fix the layout by creating root/ROOT and root/ROOT/default filesystems and moved all data to root/ROOT/default by using the live CD but I end up with a screen like this after rebooting (the computer is a Dell Vostro 200):
The system was using GPT but with BIOS and worked so it's laid out like so (I do not have direct access to the system to easily copy and paste it so I am paraphrasing here):
freebsd-swap on ada0p1
freebsd-boot on ada0p2
freebsd-zfs on ada0p3
Also /boot/gptzfsboot, /boot/pmbr, and /boot/zfs/zpool.cache all exist.
Here is how I was attempting to restore boot capabilities:
Zpool status reports the disk is healthy and I can chroot into the system fine. I would prefer not to reinstall as 1. It seems perfectly fine if boot can be restored and 2. This teaches me more about FreeBSD. Also I have some programs set up on the root/ROOT/default dataset I would prefer not to lose. Thanks.
Anyway, I have managed to fix the layout by creating root/ROOT and root/ROOT/default filesystems and moved all data to root/ROOT/default by using the live CD but I end up with a screen like this after rebooting (the computer is a Dell Vostro 200):
Code:
BIOS drive C: is disk0
BIOS drive D: is disk1
BIOS drive E: is disk2
The system was using GPT but with BIOS and worked so it's laid out like so (I do not have direct access to the system to easily copy and paste it so I am paraphrasing here):
freebsd-swap on ada0p1
freebsd-boot on ada0p2
freebsd-zfs on ada0p3
Also /boot/gptzfsboot, /boot/pmbr, and /boot/zfs/zpool.cache all exist.
zpool get bootfs root shows root/ROOT/default as the location used for bootfs. Here is how I was attempting to restore boot capabilities:
Code:
# gpart bootcode -b /boot/pmbr ada0
# gpart bootcode -p /boot/gptzfsboot -i 2 ada0
Zpool status reports the disk is healthy and I can chroot into the system fine. I would prefer not to reinstall as 1. It seems perfectly fine if boot can be restored and 2. This teaches me more about FreeBSD. Also I have some programs set up on the root/ROOT/default dataset I would prefer not to lose. Thanks.