[SOLVED] ZFS Repair Drive

killmasta93

Renowned Member
Aug 13, 2017
974
59
68
31
Hi,
I was wondering if someone could assit on the issue im having, for testing purposes, i wanted to check how ZFS would work when a drive fails. So in the example i assumed sdb was damaged, so turn off proxmox and put in a new drive

The good drive was sda
so i replicated the partitions by running
Code:
sgdisk -R /dev/sdb /dev/sda
and then
Code:
sgdisk -G /dev/sdb
after that i copy the boot partition
Code:
dd if=/dev/sda1 of=/dev/sdb1 bs=512 status=progress

and this is the part where it does not work when i run
Code:
zpool replace rpool 1343909871064845725 /dev/disk/by-id

I get
invalid vdev specification
the following errors must be manually repaired:
/dev/sdb2 is part of active pool 'rpool'

any ideas?

Thank you
 

Attachments

  • Clipboarder.2017.09.24-003.png
    Clipboarder.2017.09.24-003.png
    15.1 KB · Views: 22