I'm planning an update 13.2 to 14.0. After this I'm going to do zpool upgrade for the system pool (root on ZFS). The system pool is a mirror of two freebsd-zfs partitions on disks with an EFI partition.
Here are the commands I'm going to run:
At this point I expect the file /boot/loader.efi to have been updated.
So next I update the bootloader for each disk in the mirror:
Here I copy updated bootloader from /boot that was already updated in the previous step:
Then I finish the update:
Or should I update the bootloader here at this point, after the second freebsd-update install?
Finally, zpool upgrade:
However, what confused me about the 14.0 Release Notes: https://www.freebsd.org/releases/14.0R/relnotes/
Q1: What does "upgrades are not recommended" mean? Either it should be written that (1) such upgrades will lead to breakdowns, or that (2) it is absolutely safe. And the expression "not recommended" means undefined behavior after upgrade. So can I safely do a zpool upgrade for the system pool or not?
I only have one zpool, on which both the system and data are located, so the problems resulting from the zpool upgrade are very relevant to me.
Besides, I see too much drama here in release notes. Even if the pool is not loaded, it will not be damaged? Then we'll just boot from the livecd and put the correct updated bootloader where we need it, right?
Q2: Is my command sequence correct?
Here are the commands I'm going to run:
Code:
freebsd-update -r 14.0-RELEASE upgrade
freebsd-update install
At this point I expect the file /boot/loader.efi to have been updated.
So next I update the bootloader for each disk in the mirror:
Code:
mount -t msdosfs /dev/diskid/DISK-1111111111111p1 /mnt
Here I copy updated bootloader from /boot that was already updated in the previous step:
Code:
cp /boot/loader.efi /mnt/efi/boot/bootx64.efi
umount/mnt
Then I finish the update:
Code:
shutdown -r now
freebsd-update install
pkg-static upgrade -f
Or should I update the bootloader here at this point, after the second freebsd-update install?
Finally, zpool upgrade:
Code:
zpool upgrade zroot
However, what confused me about the 14.0 Release Notes: https://www.freebsd.org/releases/14.0R/relnotes/
There have been a number of improvements in the boot loaders, and upgrading the boot loader on the boot partition is recommended in most cases, in particular if the system boots via EFI. If the root is on a ZFS file system, updating the boot loader is mandatory if the pool is to be upgraded, and the boot loader update must be done first. Note that ZFS pool upgrades are not recommended for root file systems in most cases, but updating the boot loader can avoid making the system unbootable if the pool is upgraded in the future. The bootstrap update procedure depends on the boot method (EFI or BIOS), and also on the disk partitioning scheme.
Q1: What does "upgrades are not recommended" mean? Either it should be written that (1) such upgrades will lead to breakdowns, or that (2) it is absolutely safe. And the expression "not recommended" means undefined behavior after upgrade. So can I safely do a zpool upgrade for the system pool or not?
I only have one zpool, on which both the system and data are located, so the problems resulting from the zpool upgrade are very relevant to me.
Besides, I see too much drama here in release notes. Even if the pool is not loaded, it will not be damaged? Then we'll just boot from the livecd and put the correct updated bootloader where we need it, right?
Q2: Is my command sequence correct?