We have a RAIDZ pool:
root@p1s52:~# zpool status -v t1
 pool: t1
state: ONLINE
 scan: resilvered 136G in 0h24m with 0 errors on Fri Jul 20 18:34:06 2018
config:

       NAME                       STATE     READ WRITE CKSUM
       t1                         ONLINE       0     0     0
         raidz1-0                 ONLINE       0     0     0
           c1t5000CCA05CDCF589d0  ONLINE       0     0     0
           c1t5000CCA05CDE3F85d0  ONLINE       0     0     0
           c1t5000CCA05CDEE1A1d0  ONLINE       0     0     0

errors: No known data errors

Let's replace first vdev twice:
root@p1s52:~# zpool replace t1 c1t5000CCA05CDCF589d0 c1t5000CCA05CDEE105d0; 
zpool replace t1 c1t5000CCA05CDCF589d0 c1t5000CCA05CDE4475d0;zpool status -v t1
 pool: t1
state: ONLINE
status: One or more devices is currently being resilvered.  The pool will
       continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
 scan: resilver in progress since Fri Jul 20 18:40:11 2018
       1.03G scanned out of 775G at 262M/s, 0h50m to go
   700M resilvered, 0.13% done
config:

       NAME                         STATE     READ WRITE CKSUM
       t1                           ONLINE       0     0     0
         raidz1-0                   ONLINE       0     0     0
           replacing-0              ONLINE       0     0     0
             c1t5000CCA05CDCF589d0  ONLINE       0     0     0
             c1t5000CCA05CDEE105d0  ONLINE       0     0     0  (resilvering)
             c1t5000CCA05CDE4475d0  ONLINE       0     0     0  (resilvering)
           c1t5000CCA05CDE3F85d0    ONLINE       0     0     0
           c1t5000CCA05CDEE1A1d0    ONLINE       0     0     0

errors: No known data errors

Et voila!
Let's do it once again:
root@p1s52:~# zpool replace t1 c1t5000CCA05CDCF589d0 c1t5000CCA05CE07BC5d0; 
zpool status -v t1
 pool: t1
state: ONLINE
status: One or more devices is currently being resilvered.  The pool will
       continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
 scan: resilver in progress since Fri Jul 20 18:42:20 2018
       1.02G scanned out of 816G at 262M/s, 0h53m to go
   1.02G resilvered, 0.13% done
config:

       NAME                         STATE     READ WRITE CKSUM
       t1                           ONLINE       0     0     0
         raidz1-0                   ONLINE       0     0     0
           replacing-0              ONLINE       0     0     0
             c1t5000CCA05CDCF589d0  ONLINE       0     0     0
             c1t5000CCA05CDEE105d0  ONLINE       0     0     0  (resilvering)
             c1t5000CCA05CDE4475d0  ONLINE       0     0     0  (resilvering)
             c1t5000CCA05CE07BC5d0  ONLINE       0     0     0  (resilvering)
           c1t5000CCA05CDE3F85d0    ONLINE       0     0     0
           c1t5000CCA05CDEE1A1d0    ONLINE       0     0     0

errors: No known data errors

Best regards,
-Igor


------------------------------------------
openzfs: openzfs-developer
Permalink: 
https://openzfs.topicbox.com/groups/developer/Td9a516219fb2a50c-M4856cfc094dbae1e019de644
Delivery options: https://openzfs.topicbox.com/groups/developer/subscription

Reply via email to