aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement')
-rwxr-xr-xsys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/attach_rebuild.ksh4
-rwxr-xr-xsys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/attach_resilver.ksh4
-rwxr-xr-xsys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/detach.ksh4
-rwxr-xr-xsys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/rebuild_raidz.ksh7
-rwxr-xr-xsys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/replace_rebuild.ksh4
-rwxr-xr-xsys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/replace_resilver.ksh4
6 files changed, 16 insertions, 11 deletions
diff --git a/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/attach_rebuild.ksh b/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/attach_rebuild.ksh
index e9427c7adc9d..998d3eec7c71 100755
--- a/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/attach_rebuild.ksh
+++ b/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/attach_rebuild.ksh
@@ -38,7 +38,7 @@
# Attaching disks during I/O should pass for supported pools.
#
# STRATEGY:
-# 1. Create multidisk pools (stripe/mirror/raidz) and
+# 1. Create multidisk pools (stripe/mirror/raidz/draid) and
# start some random I/O
# 2. Attach a disk to the pool.
# 3. Verify the integrity of the file system and the resilvering.
@@ -152,7 +152,7 @@ done
log_note "Verify 'zpool attach' fails with non-mirrors."
-for type in "" "raidz" "raidz1"; do
+for type in "" "raidz" "raidz1" "draid" "draid1"; do
for op in "" "-f"; do
create_pool $TESTPOOL1 $type $specials_list
log_must zfs create $TESTPOOL1/$TESTFS1
diff --git a/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/attach_resilver.ksh b/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/attach_resilver.ksh
index 4261d4d67cc0..e99d681bb21d 100755
--- a/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/attach_resilver.ksh
+++ b/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/attach_resilver.ksh
@@ -37,7 +37,7 @@
# Attaching disks during I/O should pass for supported pools.
#
# STRATEGY:
-# 1. Create multidisk pools (stripe/mirror/raidz) and
+# 1. Create multidisk pools (stripe/mirror/raidz/draid) and
# start some random I/O
# 2. Attach a disk to the pool.
# 3. Verify the integrity of the file system and the resilvering.
@@ -151,7 +151,7 @@ done
log_note "Verify 'zpool attach' fails with non-mirrors."
-for type in "" "raidz" "raidz1"; do
+for type in "" "raidz" "raidz1" "draid"; do
for op in "" "-f"; do
create_pool $TESTPOOL1 $type $specials_list
log_must zfs create $TESTPOOL1/$TESTFS1
diff --git a/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/detach.ksh b/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/detach.ksh
index aa3ec4f7a75d..f049c639d8a6 100755
--- a/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/detach.ksh
+++ b/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/detach.ksh
@@ -37,7 +37,7 @@
# Detaching disks during I/O should pass for supported pools.
#
# STRATEGY:
-# 1. Create multidisk pools (stripe/mirror/raidz) and
+# 1. Create multidisk pools (stripe/mirror/raidz/draid) and
# start some random I/O
# 2. Detach a disk from the pool.
# 3. Verify the integrity of the file system and the resilvering.
@@ -143,7 +143,7 @@ destroy_pool $TESTPOOL1
log_note "Verify 'zpool detach' fails with non-mirrors."
-for type in "" "raidz" "raidz1"; do
+for type in "" "raidz" "raidz1" "draid"; do
create_pool $TESTPOOL1 $type $specials_list
log_must zfs create $TESTPOOL1/$TESTFS1
log_must zfs set mountpoint=$TESTDIR1 $TESTPOOL1/$TESTFS1
diff --git a/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/rebuild_raidz.ksh b/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/rebuild_raidz.ksh
index c919b44b21cc..26dc6f87b26e 100755
--- a/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/rebuild_raidz.ksh
+++ b/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/rebuild_raidz.ksh
@@ -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"
diff --git a/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/replace_rebuild.ksh b/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/replace_rebuild.ksh
index 5997352284b4..b3c7995fd62a 100755
--- a/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/replace_rebuild.ksh
+++ b/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/replace_rebuild.ksh
@@ -38,7 +38,7 @@
# Replacing disks during I/O should pass for supported pools.
#
# STRATEGY:
-# 1. Create multidisk pools (stripe/mirror) and
+# 1. Create multidisk pools (stripe/mirror/draid) and
# start some random I/O
# 2. Replace a disk in the pool with another disk.
# 3. Verify the integrity of the file system and the rebuilding.
@@ -137,7 +137,7 @@ done
#
log_must truncate -s $MINVDEVSIZE $TESTDIR/$REPLACEFILE
-for type in "" "mirror"; do
+for type in "" "mirror" "draid"; do
for op in "" "-f"; do
create_pool $TESTPOOL1 $type $specials_list
log_must zfs create $TESTPOOL1/$TESTFS1
diff --git a/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/replace_resilver.ksh b/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/replace_resilver.ksh
index 253cf65e452b..2585397bba88 100755
--- a/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/replace_resilver.ksh
+++ b/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/replace_resilver.ksh
@@ -37,7 +37,7 @@
# Replacing disks during I/O should pass for supported pools.
#
# STRATEGY:
-# 1. Create multidisk pools (stripe/mirror/raidz) and
+# 1. Create multidisk pools (stripe/mirror/raidz/draid) and
# start some random I/O
# 2. Replace a disk in the pool with another disk.
# 3. Verify the integrity of the file system and the resilvering.
@@ -134,7 +134,7 @@ done
#
log_must truncate -s $MINVDEVSIZE $TESTDIR/$REPLACEFILE
-for type in "" "raidz" "mirror"; do
+for type in "" "raidz" "mirror" "draid"; do
for op in "" "-f"; do
create_pool $TESTPOOL1 $type $specials_list
log_must zfs create $TESTPOOL1/$TESTFS1