I did a freebsd-update upgrade from 10.3 to 11.2, everything was upgraded and ran fine up to the point that I decided to run "zpool upgrade" of the boot pool and the suggested gpart bootcode update. Now the machine doesn't boot.
It's an OVH machine with their usual root-on-zfs setup. It has a nvme disk (/dev/nvd0).
The command that was suggested by zpool upgrade and that I ran was this:
sudo gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 nvd0
by simply replacing the boilerplate ada0 with nvd0, but ignoring the other parts.
Booting into rescue mode I can see that the zpool imports fine, but
I will try rebooting shortly. From our other boxes on OVH I can see that p1 should look something like this:
(although there's no FAT anywhere, it's a normal FreeBSD box zfs on root):
How can I get it to boot?
It's an OVH machine with their usual root-on-zfs setup. It has a nvme disk (/dev/nvd0).
The command that was suggested by zpool upgrade and that I ran was this:
sudo gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 nvd0
by simply replacing the boilerplate ada0 with nvd0, but ignoring the other parts.
Booting into rescue mode I can see that the zpool imports fine, but
file -s /dev/nvd0p1
returns simply "data". Now I ran gpart bootcode -b /boot/pmbr -p /boot/zfsboot -i 1 nvd0
hoping for the better. Now I'm getting something more meaningful than data:# file -s /dev/nvd0p1
/dev/nvd0p1: DOS/MBR boot sector; partition 4 : ID=0xa5, active, start-CHS (0x0,0,1), end-CHS (0x3ff,254,63), startsector 0, 50000 sectors
I will try rebooting shortly. From our other boxes on OVH I can see that p1 should look something like this:
$ sudo file -s /dev/ada0p1
/dev/ada0p1: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "BSD4.4 ", root entries 512, sectors 1575 (volumes <=32 MB), sectors/FAT 5, sectors/track 63, heads 1, serial number 0x2cd61511, label: "EFI ", FAT (12 bit), followed by FAT
(although there's no FAT anywhere, it's a normal FreeBSD box zfs on root):
zroot 122G 304G 96K none
zroot/ROOT 5.74G 304G 96K none
zroot/ROOT/default 5.74G 304G 5.74G /
How can I get it to boot?