Edit:
Our new live system introduced in 2020 has a bug with the installer that copied the livecd zpool.cache. This causes a zfs issue after the upgrade. So removing the livecd cache is the fixed solution for the problem.
Code: Select all
sudo rm /boot/zfs/zpool.cache
Before creating a new zfs Boot Environment remove vfs.root.mountfrom from /boot/loader.conf should be similar to the line below. If that line is still in the loader.conf BE will not work after upgrading to OpenZFS 2.0.
Code: Select all
vfs.root.mountfrom="zfs:tank/ROOT/initial"
Code: Select all
bectl create 12-stable
In /etc/pkg/GhostBSD.conf comment this line:
Code: Select all
"http://pkg.us.ghostbsd.org/stable/${ABI}/latest",
Code: Select all
url: "http://pkg.us.ghostbsd.org/stable/FreeBSD:13:amd64/latest",
Code: Select all
# $GhostBSD$
#
# To disable this repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/GhostBSD.conf file:
#
# mkdir -p /usr/local/etc/pkg/repos
# echo "GhostBSD: { enabled: no }" > /usr/local/etc/pkg/repos/GhostBSD.conf
#
GhostBSD: {
# url: "http://pkg.ghostbsd.org/stable/${ABI}/latest",
url: "http://pkg.us.ghostbsd.org/stable/FreeBSD:13:amd64/latest",
enabled: yes
}
You need to bootstrap pkg before the upgrade.
Code: Select all
# env IGNORE_OSVERSION=yes pkg bootstrap -f
Code: Select all
# env ABI=freebsd:13:amd64 pkg-static upgrade -f
If everything looks good, you can upgrade your pools by doing this:
Code: Select all
sudo zpool upgrade -a
Edit:
if you want zpool.cache and not have zdb to complain create back your cache with the following command:
Code: Select all
sudo zpool set cachefile=/etc/zfs/zpool.cache tank