Hi all,
when adding a second disk to my zroot boot pool, I basically followed this guide: https://dan.langille.org/2019/10/15/creating-a-mirror-from-your-zroot/
My source device is ada1 and the new one is ada0, so I had to swap the device names in the commands and it seemed to work fine.
The pool was resilvered after adding the disk, gmirror for swap works fine, etc.
To verify the setup and to test if the system boots on drive failure, I removed the old disk from the boot order in BIOS and tried to boot from the second one.
Unfortunately I get this:
Booting from the old drive works well.
During the process I installed the bootcode to the new drive with
Can somebody push me in the right direction to fix this?
The OS is FreeBSD 12.4.
Many thanks in advance!
when adding a second disk to my zroot boot pool, I basically followed this guide: https://dan.langille.org/2019/10/15/creating-a-mirror-from-your-zroot/
My source device is ada1 and the new one is ada0, so I had to swap the device names in the commands and it seemed to work fine.
The pool was resilvered after adding the disk, gmirror for swap works fine, etc.
To verify the setup and to test if the system boots on drive failure, I removed the old disk from the boot order in BIOS and tried to boot from the second one.
Unfortunately I get this:
Code:
BIOS drive C: is disk0
ZFS: i/o error - all block copies unavailable
ZFS: can't read MOS of pool zroot
ZFS: can't find pool by guid
Can't find /boot/zfsloader
Can't find /boot/loader
Can't find /boot/kernel/kernel
FreeBSD/x86 boot
Default: /boot/kernel/kernel
boot:
Booting from the old drive works well.
During the process I installed the bootcode to the new drive with
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0
Can somebody push me in the right direction to fix this?
The OS is FreeBSD 12.4.
Many thanks in advance!