I saw that there was a security advisory for 9.1-RELEASE and wanted to upgrade to P6. My system has two ZFS partitions - one a single disk zroot and the other a three disk array called zdata. I used the following link to create these two ZFS partitions and have been using the system in production for roughly a year by now:
https://www.dan.me.uk/blog/2012/01/22/booting-from-zfs-raid0156-in-freebsd-9-0-release/
However, after following these steps:
I found myself staring at this error:
Do I need to export and import ZFS configuration as follows:
This is a new experience and I want to make sure I do not destroy the zroot partition nor do I want to destroy any important boot-related files/configuration. Could someone assist me in recreating the correct boot environment? And more importantly, how to avoid doing this again?
~Doug
https://www.dan.me.uk/blog/2012/01/22/booting-from-zfs-raid0156-in-freebsd-9-0-release/
However, after following these steps:
Code:
cd /usr/src
make buildworld
make kernel KERNCONF=FreeBSDzfs
shutdown -r now
<boot in single user mode>
adjkerntz -i
mount -u /
zfs mount -a
mergemaster -Ui -p
cd /usr/src
make installworld
mergemaster -Ui
make delete-old
make delete-old-libs
reboot
I found myself staring at this error:
Code:
Trying to mount root from zfs:root []...
Aug 26 09:09:14 init: NSSWITCH(_nsdispatch): winbind, passwd, endpwent, not found
and no fallback provided
Enter full pathname and shell or RETURN for /bin/sh:
Cannot read termcap database;
using dumb terminal settings.
#
zfs get mountpoint
gives me the configuration information for both zroot and zdata so that looks good. /boot/loader.conf has the necessary entries for mounting zroot.Do I need to export and import ZFS configuration as follows:
Code:
cd /boot/zfs
zpool export zroot && zpool import zroot
cp /boot/zfs/zpool.cache /boot/zfs/zroot/boot/zfs/zpool.cache
zfs unmount -a
zfs set mountpoint=legacy zroot
zfs set mountpoint=/tmp zroot/tmp
zfs set mountpoint=/usr zroot/usr
zfs set mountpoint=/var zroot/var
This is a new experience and I want to make sure I do not destroy the zroot partition nor do I want to destroy any important boot-related files/configuration. Could someone assist me in recreating the correct boot environment? And more importantly, how to avoid doing this again?
~Doug