I recently upgraded one of my storage severs from 10.3 -> 11.0, and then went to perform the
So of course I run the command to update the first disk in the pool:
And then my heart sinks as I read the output: "gpart: /dev/diskid/DISK-S1XWJ90Z203029p1: not enough space". IIRC, way back when zfs root first appeared as an option I followed a guide which only created a 64KB partition for the boot loader. However, now /boot/gptzfsboot is 87K, and obviously won't fit, so I'm in a bit of a pickle.
My questions are:
Also, there's no room between the partitions:
zpool upgrade
to enable the new hashing methods available on the root pool. This, after enabling the features of course, offers the friendly reminder that:
Code:
If you boot from pool 'zroot', don't forget to update boot code.
Assuming you use GPT partitioning and da0 is your boot disk
the following command will do it:
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 diskid/DISK-S1XWJ90Z203029
And then my heart sinks as I read the output: "gpart: /dev/diskid/DISK-S1XWJ90Z203029p1: not enough space". IIRC, way back when zfs root first appeared as an option I followed a guide which only created a 64KB partition for the boot loader. However, now /boot/gptzfsboot is 87K, and obviously won't fit, so I'm in a bit of a pickle.
My questions are:
- Is the only way to correct the error is to completely copy everything off the pool, completely wipe out and recreate the pool from scratch, and copy everything back? I'd really like to not have to do that if at all possible, but I don't see another way.
- Will the system even boot right now, if I were to reboot it?
- What is the recommended size of a boot loader partition to be future-proof against this problem?
Also, there's no room between the partitions:
Code:
# gpart show diskid/DISK-S1XWJ90Z203029
=> 34 2930277101 diskid/DISK-S1XWJ90Z203029 GPT (1.4T)
34 128 1 freebsd-boot (64K)
162 2930276973 2 freebsd-zfs (1.4T)