- Understand `gpart bootcode` (or equivalents), and be really sure that your low-level bootcode gets upgraded.
- If you're running zfs, `zpool checkpoint` can give you a way to rewind the entire state of the pool to a prior point. Used with some care, it can be extremely useful. Or just reassuring, as your "Plan B".
I didn't realize this and went down a rabbit hole of trying to recreate boot partitions which I found interesting.
With that said, I'm curious whether the upgrade procedure updates the bootcode on both drives in the mirror.
---
Slight tangent. The reason for playing around on the VM was that when I installed FreeBSD, I selected the zfs root auto-fs feature. It created a zfs partition that spanned the entire disk which I later decided that I didn't want. My goal was to shrink the zroot, and I was able to accomplish that using zfs send / receive and re-creating the partition withe the desired size. Fun exercise.
I need to revisit the installer to see if I'm able to provide any parameters to tune the size of the zroot. I really didn't want to create the filesystems manually from the installer shell.
If you're talking about a production environment, ideally your machines are more-or-less immutable anyways in which case you wouldn't be upgrading in place anyhow.
If you use Jails, you have to upgrade them also, there are guides for this.