OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: Waschbuesch on November 16, 2024, 08:07:34 AM

Title: zfs bootcode upgrade "not enough space"
Post by: Waschbuesch on November 16, 2024, 08:07:34 AM
Hi all,

After upgrading to OPNsense 24.7.8, zfs complains about not all features being enabled.
After running
zpool upgrade zroot
the system advises to update the boot code as well.
However, running
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 nda0
results in: gpart: /dev/nda0p2: not enough space
Since the system boots via UEFI (I think), this may be irrelevant, but why did the installer partition the disk like this:

gpart show
=>        3  500118181  nda0  GPT  (238G)
          3     532480     1  efi  (260M)
     532483        311     2  freebsd-boot  (156K)
     532794  482344960     3  freebsd-zfs  (230G)
  482877754   17240430     4  freebsd-swap  (8.2G)


156K looks like deliberately setting the size to exactly what was needed at the time without any kind of reserve for future changes?
Title: Re: zfs bootcode upgrade "not enough space"
Post by: meyergru on November 16, 2024, 10:29:35 AM
Probably an old installation. Mine shows:

# gpart show
=>       40  500118112  nda0  GPT  (238G)
         40     532480     1  efi  (260M)
     532520       1024     2  freebsd-boot  (512K)
     533544        984        - free -  (492K)
     534528   16777216     3  freebsd-swap  (8.0G)
   17311744  482805760     4  freebsd-zfs  (230G)
  500117504        648        - free -  (324K)

So the order of partitions has changed and also, the boot partition is larger and it has a gap after it.

You could do a fresh install and restore your configuration to fix it. I think that because of the newer ZFS, all new features should be enabled from the start, then.