I've have a ZFS root system on a 4 drive raidz1. I want to ensure I have bootcode on all drives. I must only have it on one currently because I have a failing drive and when I attempt to remove it, my system will no longer boot. Here is my "gpart show" info:
I've searched the web and it appears that this is the code I need to run on each disk but I get an error:
How can I check to see which drives have bootcode and fix the ones that do not? I'm not sure what the next steps should be.
Thanks,
Drew
Code:
# gpart show
=> 34 976773101 diskid/DISK-WD-WCAYU7656378 GPT (466G)
34 128 1 freebsd-boot (64K)
162 976772973 2 freebsd-zfs (466G)
=> 34 976773101 diskid/DISK-9QG6AAHZ GPT (466G)
34 128 1 freebsd-boot (64K)
162 976772973 2 freebsd-zfs (466G)
=> 40 976773088 diskid/DISK-6QG2X7H9 GPT (466G)
40 128 1 freebsd-boot (64K)
168 976772960 2 freebsd-zfs (466G)
=> 34 976773101 diskid/DISK-9QMBTYTM GPT (466G)
34 128 1 freebsd-boot (64K)
162 976772973 2 freebsd-zfs (466G)
I've searched the web and it appears that this is the code I need to run on each disk but I get an error:
Code:
# gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 diskid/DISK-WD-WCAYU7656378
gpart: /dev/diskid/DISK-WD-WCAYU7656378p1: not enough space
How can I check to see which drives have bootcode and fix the ones that do not? I'm not sure what the next steps should be.
Thanks,
Drew