Hi,
I want to move the entire OS (GELI+ZFSOnRoot) to another disk.
I had execute these commands to make this happen:
Setup my new disk partition table (similar to old one):
Setup EFI Partition:
Setup GELI:
Add the new disk to my zfs pool:
After completion of the resilvering, I removed my old disk.
Now I can't boot the system:
I ended up to booting from memstick and adding the old disk to my pool. So hopefully my system successfully boots.
Also, I am sure that my disks and ZFS pool are healthy.
Did I miss something?
I want to move the entire OS (GELI+ZFSOnRoot) to another disk.
I had execute these commands to make this happen:
Setup my new disk partition table (similar to old one):
gpart create -s gpt nvd0
gpart add -a 1M -s 260M -t efi -l efiboot1 nvd0
gpart add -a 1M -s 4G -t freebsd-swap -l swap1 nvd0
gpart add -t freebsd-zfs -l zfsroot1 nvd0
Setup EFI Partition:
newfs_msdos -F32 -c 1 /dev/nvd0p1
mount -t msdosfs -o longnames /dev/nvd0p1 /mnt/
sudo mkdir -p /mnt/EFI/BOOT
sudo cp /boot/loader.efi /mnt/EFI/BOOT/BOOTX64.efi
umount /mnt/
Setup GELI:
geli init -b -g -s 4096 /dev/nvd0p3
Add the new disk to my zfs pool:
zpool attach zroot /dev/ada0p3.eli /dev/nvd0p3.eli
After completion of the resilvering, I removed my old disk.
zpool detach zroot ada0p3.eli
Now I can't boot the system:
GELI Passphrase for disk1p3:
Calculating GELI Decryption Key for disk1p3: 12345 iterations...
Calculating GELI Decryption Key for disk2p3: 12345 iterations...
zio_read error: 5
zio_read error: 5
zio_read error: 5
ZFS: i/o error - all block copies unavailable
ZFS: can't read MOS of pool zroot
I ended up to booting from memstick and adding the old disk to my pool. So hopefully my system successfully boots.
Also, I am sure that my disks and ZFS pool are healthy.
Did I miss something?