Code:NAME STATE READ WRITE CKSUM fs1 DEGRADED 0 0 0 raidz2-0 ONLINE 0 0 0 c4t0d0 ONLINE 0 0 0 c4t1d0 ONLINE 0 0 0 c4t2d0 ONLINE 0 0 0 c4t3d0 ONLINE 0 0 0 c4t4d0 ONLINE 0 0 0 c4t5d0 ONLINE 0 0 0 c4t6d0 ONLINE 0 0 0 c4t7d0 ONLINE 0 0 0 c5t3d0 ONLINE 0 0 0 c5t6d0 ONLINE 0 0 0 raidz2-1 DEGRADED 0 0 0 c5t0d0 ONLINE 0 0 0 c5t1d0 ONLINE 0 0 0 c5t2d0 ONLINE 0 0 0 c5t4d0 ONLINE 0 0 0 c5t5d0 ONLINE 0 0 0 c5t7d0 REMOVED 0 0 0 spares c2t1d0 AVAIL
If I have the above scenario, what is the commands I need to execute for it to use the spare in place of the c5t7d0 disk ? Obviously, it wont do it automatically as it thinks the drive is removed and not failed. But how do I "unspare" a drive, so I can just insert into the array as a replacement ?
Thanks!
I think you first need to do 'zpool remove' to remove the spare, and then do 'zpool replace' to use it to replace the removed drive?