summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarian Csontos <mcsontos@redhat.com>2017-08-22 12:04:31 +0200
committerMarian Csontos <mcsontos@redhat.com>2017-08-22 14:45:37 +0200
commit1dace391a1b7aa5b5f6acb5bc699020bd187f388 (patch)
tree97d32f25490230be36a2b3003899f994e78cbbdf
parent445e9c48f87cb58c705b467e3c8a2354dde8eaa8 (diff)
downloadlvm2-dev-mcsontos-stripes-raid1.tar.gz
tests: Test stripes option with RAID1dev-mcsontos-stripes-raid1
-rw-r--r--test/shell/lvconvert-raid.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/shell/lvconvert-raid.sh b/test/shell/lvconvert-raid.sh
index c5e61593e..70ebc5300 100644
--- a/test/shell/lvconvert-raid.sh
+++ b/test/shell/lvconvert-raid.sh
@@ -100,6 +100,17 @@ done
done
##############################################
+# RAID1 - stripes option not allowed
+##############################################
+lvcreate -aey -l 2 -n $lv1 $vg
+not lvconvert --type raid1 -y -m 1 --stripes 2 $vg/$lv1
+not lvconvert --type raid1 -y -m 1 --stripesize 64k $vg/$lv1
+not lvconvert --type raid1 -y -m 1 -I 64k $vg/$lv1
+# NOTE: -i is --interval not --stripe here!
+lvconvert --type raid1 -y -m 1 -i 2 $vg/$lv1
+lvremove -ff $vg
+
+##############################################
# RAID1 - shouldn't be able to add image
# if created '--nosync', but should
# be able to after 'lvchange --resync'