ZFS using spare

Hi All,

I currently got a degraded pool du to an faulted disk.
So i tried to use one of my spare disk.

zpool replace poolname /dev/multipath/faulteddisk /dev/multipath/sparedisk

After the resilvering my pool is still in degraded mode and zpool status show this :

Code:
mirror-13                DEGRADED     0     0     0
        spare-0                DEGRADED     0     0     0
          7034238155621012727  REMOVED      0     0     0  was /dev/multipath/diskmirror01
          multipath/sparedisk01  ONLINE       0     0     0
        multipath/diskmirror02    ONLINE       0     0     0
        
--------

    spares
      15367339826428525885     INUSE     was /dev/multipath/sparedisk01
      multipath/sparedisk02      AVAIL

This is the expected behavior ?
or now i need to detach the diskmirror01 ? or maybe i should do it before to add the spare disk to the mirror ?
 
I used to get this a long time ago with "replacing" vdevs but thought it was fixed. Back then, assuming the resilver is reporting as complete, you could just do a zpool detach on the removed disk.

Whatever you do, just don't run any commands with -f unless you have a good reason to. If it doesn't want to let you remove the disk for any reason, it should tell you, but it may well do something dangerous if you try and force it.
 
Back
Top