Hello everyone
I am new to zfs and i tried to build zfs mirror with 2 disks . All went Ok including resilvering and etc.. only problem comes when i pull one of the disks and server complains that it cant find efi bootable device. The disk wich i try to boot from has been deleted and resilvered i have done the partition table with
i have found this site where someone suggested this method to copy the efi partition
but is there any short method to copy the efi partition ??
I am new to zfs and i tried to build zfs mirror with 2 disks . All went Ok including resilvering and etc.. only problem comes when i pull one of the disks and server complains that it cant find efi bootable device. The disk wich i try to boot from has been deleted and resilvered i have done the partition table with
Code:
gpart backup /dev/ada0 > ada0.backup
gpart -F restore ada1 < ada0.backup
i have found this site where someone suggested this method to copy the efi partition
Code:
mkdir /mnt/ada0
newfs_msdos ada0p1
mount -t msdosfs /dev/ada0p1 /mnt/ada0
mkdir -p /mnt/ada0/efi/boot
cp /boot/boot1.efi /mnt/ada0/efi/boot/BOOTx64.efi
mkdir -p /mnt/ada0/boot
cat > /mnt/ada0/boot/loader.rc << EOF
unload
set currdev=zfs:sys/ROOT/default:
load boot/kernel/kernel
load boot/kernel/zfs.ko
autoboot
EOF
but is there any short method to copy the efi partition ??