Upgrade Boot Pool ZFS

This is a very similar question as this topic: Pool Upgrade Question - Is this a problem

However, that one got rather lengthy with a discussion on upgrading from Core to Scale.

Anyways, I did a zpool status and saw my boot pool could be upgraded. And without thinking, I did:

root@truenas[~]# zpool upgrade freenas-boot
This system supports ZFS pool feature flags.

Enabled the following features on 'freenas-boot':
  edonr
  zilsaxattr
  head_errlog
  blake3
  block_cloning
  vdev_zaps_v2

Pool 'freenas-boot' has the bootfs property set, you might need to update
the boot code. See gptzfsboot(8) and loader.efi(8) for details.

I am wondering if I should do the gpart commands to update the boot loader files on my boot pool as @pmh said in that other thread:

gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada2
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada3

Although in my case I think it is ada0 and ada1. Here is my gpart show info:

root@truenas[~]# gpart show
=>       40  976773088  nvd0  GPT  (466G)
         40         88        - free -  (44K)
        128    4194304     1  freebsd-swap  (2.0G)
    4194432  972578696     2  freebsd-zfs  (464G)

=>       40  976773088  nvd1  GPT  (466G)
         40         88        - free -  (44K)
        128    4194304     1  freebsd-swap  (2.0G)
    4194432  972578696     2  freebsd-zfs  (464G)

=>         40  27344764848  da0  GPT  (13T)
           40           88       - free -  (44K)
          128      4194304    1  freebsd-swap  (2.0G)
      4194432  27340570456    2  freebsd-zfs  (13T)

=>         40  27344764848  da2  GPT  (13T)
           40           88       - free -  (44K)
          128      4194304    1  freebsd-swap  (2.0G)
      4194432  27340570456    2  freebsd-zfs  (13T)

=>         40  27344764848  da3  GPT  (13T)
           40           88       - free -  (44K)
          128      4194304    1  freebsd-swap  (2.0G)
      4194432  27340570456    2  freebsd-zfs  (13T)

=>         40  27344764848  da4  GPT  (13T)
           40           88       - free -  (44K)
          128      4194304    1  freebsd-swap  (2.0G)
      4194432  27340570456    2  freebsd-zfs  (13T)

=>         40  27344764848  da5  GPT  (13T)
           40           88       - free -  (44K)
          128      4194304    1  freebsd-swap  (2.0G)
      4194432  27340570456    2  freebsd-zfs  (13T)

=>         40  27344764848  da6  GPT  (13T)
           40           88       - free -  (44K)
          128      4194304    1  freebsd-swap  (2.0G)
      4194432  27340570456    2  freebsd-zfs  (13T)

=>         40  27344764848  da1  GPT  (13T)
           40           88       - free -  (44K)
          128      4194304    1  freebsd-swap  (2.0G)
      4194432  27340570456    2  freebsd-zfs  (13T)

=>       40  500118112  ada0  GPT  (238G)
         40       1024     1  freebsd-boot  (512K)
       1064  500117088     2  freebsd-zfs  (238G)

=>       40  500118112  ada1  GPT  (238G)
         40       1024     1  freebsd-boot  (512K)
       1064  500117088     2  freebsd-zfs  (238G)

Anything I should note or should I be good to update the boot loader?

The commands cited should be good if you use the correct devices ada0 and ada1.

You definitely should do this before trying to reboot the system.

3 Likes

Thanks. Appreciate it.

root@truenas[~]# gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0
partcode written to ada0p1
bootcode written to ada0
root@truenas[~]# gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1
partcode written to ada1p1
bootcode written to ada1

Well, none of the new flags appears to be of much use for a boot-pool, but upgrading may prevent you from booting into previous environments. So now take the time to do some cleaning here.

1 Like

Do you have a reading comprehension problem? :roll_eyes:

@ryan is asking about the Poot Bool, not the boot-pool or the boot-poo.

@winnielinnie wow, good catch. I didn’t even see that I had titled my question “Poot Bool”. Yeah, my attention to detail (or lack thereof) is unmatched…