]> git.proxmox.com Git - mirror_zfs.git/blobdiff - tests/zfs-tests/tests/functional/replacement/rebuild_raidz.ksh
Distributed Spare (dRAID) Feature
[mirror_zfs.git] / tests / zfs-tests / tests / functional / replacement / rebuild_raidz.ksh
index c919b44b21ccf2db774f5b9f58f5da14c58fb840..26dc6f87b26e18580a91490a55ac16921ba57fbc 100755 (executable)
@@ -26,7 +26,7 @@
 #
 # DESCRIPTION:
 # Executing 'zpool replace -s' for raidz vdevs failed.  Sequential
-# resilvers are only allowed for stripe/mirror pools.
+# resilvers are only allowed for stripe/mirror/dRAID pools.
 #
 # STRATEGY:
 # 1. Create a raidz pool, verify 'zpool replace -s' fails
@@ -67,4 +67,9 @@ log_must zpool create $TESTPOOL1 mirror ${VDEV_FILES[0]} ${VDEV_FILES[1]}
 log_must zpool replace -s $TESTPOOL1 ${VDEV_FILES[1]}  $SPARE_VDEV_FILE
 destroy_pool $TESTPOOL1
 
+# draid
+log_must zpool create $TESTPOOL1 draid ${VDEV_FILES[@]}
+log_must zpool replace -s $TESTPOOL1 ${VDEV_FILES[1]} $SPARE_VDEV_FILE
+destroy_pool $TESTPOOL1
+
 log_pass "Sequential resilver is not allowed for raidz vdevs"