Re: cannot boot: ZFS: unsupported feature" com.klarasystems:vdev_zaps_v2

From: mike tancsa <mike_at_sentex.net>
Date: Tue, 10 Dec 2024 15:31:20 UTC
On 12/10/2024 10:14 AM, Marco Beishuizen wrote:
>> On 12/10/2024 3:59 PM CET mike tancsa <mike@sentex.net> wrote:
>> On 12/10/2024 9:41 AM, Marco Beishuizen wrote:
>>> It's running FreeBSD 14-STABLE
>>> I don't have a bootstick. Isn't it possible to reach anything from 
>>> the "boot:" prompt?
>>
>> What is the pool ? Mirror ? raidz ?  As you updated 14-STABLE have 
>> you been updating the bootloader along the way as well ? Is it UEFI ?
>>
>>     ---Mike
>>
> It's just one zpool with the OS. I have a zstorage pool on a separate 
> disk. It doesn't have mirrors or raidz or anything like that.
> Afaik I didn't update the bootloader. I never heard of needing to do 
> that.
> The computer is a pretty recent Intel i9 10900X with 256GB ram, and it 
> has uefi in it. I'm not sure if it's actually using that.

Let me rephrase, is the boot pool just one disk then ?

If you are tracking stable, and new features are added to the zfs pool 
you will need to update the boot loader. Depending on how your system 
boots, UEFI or traditional gpt, you will need to make updates manually.

e.g. on traditional gpt

gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 #assuming its 
ada0

if you have a mirror then you need to do both disks in the mirror

If its efi, mount the msdos partiton and update the loader on it

.e.g on one of my boxes

mount_msdos /dev/gpt/efiboot0  /mnt

and copy a newer version of /boot/loader.efi over the old file in /mnt.

At this point you probably need to create a freebsd USB boot stick, boot 
from it, import your pool, make the necessary changes based on whether 
your boot disk is efi or gptzfsboot, export the pool etc.

If you get booted off the usb stick, post the output of "gpart show 
ada0" if ada0 is the problem boot pool...

     ---Mike