Re: Upgrade form 13.2-RELEASE-p5 to 14.0-RELEASE took almost 24hours

From: Matthew Seaman <matthew_at_FreeBSD.org>
Date: Fri, 24 Nov 2023 17:43:53 UTC
On 24/11/2023 15:31, mike tancsa wrote:
   BTW, does FreeBSD upgrade from 13 to 14 do a zpool upgrade automatically
> or do you have to do that step manually ?
> 
>      ---Mike

No, the system upgrade process very carefully does not do a zpool 
upgrade, because that would make it impossible to back-out a botched 
upgrade.

Before doing `zpool upgradez be aware that you will need to update your 
boot blocks or efiboot partition (whichever mechanism your machine uses) 
_before_ updating the zpool, or you will render your machine unbootable.

Also, for maximum recoverability, be very careful to create and make 
backups of zpool including all your boot environments.

So the suggested sequence of events should be something broadly like:

* Upgrade system from 13 to 14 by whatever means you prefer, but you are 
strongly advised to create a new boot environment for FreeBSD 14 and 
also keep the FreeBSD 13 B.E. available for the time being.

* Do whatever testing and qualification you require until you are 
confident the FreeBSD 14 upgrade hasn't resulted in bugs or regressions 
for your use-case.  At minimum, just use FreeBSD 14 for a few days and 
look out for any problems.

* Once you're sure you're never going to need to revert back to FreeBSD 
13, update the bootblocks / efiboot to the version from FreeBSD 14.

* Now you can apply the `zpool upgrade` This will make any FreeBSD 13 
Boot Environments you may have unusable, so those can be deleted.

For updating the bootblocks on a MBR system, see gptzfsboot(8) and the 
'bootcode' subcommand of gpart(8).

For updating efiboot, see efibootmgr(8) and the 'Upgrading from Previous 
Releases of FreeBSD' in the release notes: 
https://www.freebsd.org/releases/14.0R/relnotes/

Now, it may or may not be possible to revert an upgrade to the zpool -- 
some property settings can be removed if they haven't been used yet, 
some can't.  So trying to revert a `zpool upgrade` is not something you 
should count on being able to do.  Take a look at the zpoolprops(7) man 
page for the details.

	Cheers,

	Matthew