No longer able to boot after zpool upgrade, but also affected by an install DVD bug

Hi everyone, I hope you're all doing great (and sorry if this is in the wrong section, I've used my best judgment).

I'm on FreeBSD 13.2. I ran zpool status which told me that features were available but disabled. I blindly ran zpool upgrade which seemed to work. I then updated bootcode for the first (out of four) hard drives only, then later rebooted because of an unrelated issue from a different program.

It now says ZFS: unsupported feature for various features, before saying that it hasn't located any ZFS pools and cannot boot.

Now, the 13.2-RELEASE media cannot boot on my server because of
Code:
LUA ERROR: Cannot open /boot/lua/loader.lua:
no such file or directory"
(my server is 19 years old, so this is potentially related to Thread trying-to-install-freebsd-on-a-20-year-old-laptop.88179), so I usually boot 9.1-RELEASE instead, which works, but obviously won't have the latest bootcode.

Is it possible to fix this by using chroot in the 9.1 media (or at all)? Would appreciate anything and thanks in advance.
 
I fixed it by setting openzfs_load in loader.conf
Doesn't do anything, mate. It's specificly for sysutils/openzfs-kmod, which is a development version of OpenZFS. And is NOT part of the base OS. And no amount of loading kernel modules is going to work, when the issue is with an old loader(8) that doesn't understand ZFS of 13.x.

Is it possible to fix this by using chroot in the 9.1 media (or at all)?
No, boot the 13.2 install media and fix your bootloaders from the shell of the installer disk. You cannot use 9.1 here, it won't understand your ZFS installation, thus won't be able to load anything from it. You could copy the /boot/gptzfsboot from a 13.2 install media and copy it to the 9.1 boot disk you used. You don't really need to load the ZFS filesystem, you just need to write the correct boot code to the freebsd-boot partition. That will work with gpart(8) of 9.1, as long as you write the proper gptzfsboot file from a 13.2 system.
 
Back
Top