ZFS – Single Path
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
1. Check zpool status: zpool status vol -x 2. Find the {GUID} of the {dead-disk} within zdb: zdb -l /dev/{dead-disk} 3. Offline the the {dead-disk} within zdb: zpool offline vol /dev/disk/by-id/{dead-disk} 4. Detach the {dead-disk} disk: zpool detach vol /dev/disk/by-id/{dead-disk} 5. Replace the {dead-disk} disk: zpool replace {your_poolname} {drive to be replaced} {new drive to take its place} zpool replace vol <GUID> /dev/disk/by-id/{new-disk} 6. Check zpool status: zpool status vol -x |
ZFS – Multi Path
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
1. Physically remove disk 2. Find failed multipath disk multipath -ll 3. Remove multipath disk multipath -F 4. Physically insert new disk (record WWN from drive label first) 5. Add the WWN to /etc/multipath.conf as a new alias (WWN can be found on physical disk label, for WD disks, add a 3 to the beginning) 6. reload multipath service (only reloads config and rescans, will not interrupt live systems) service multipathd reload multipath -v2 multipath -ll A14 |