[lvm-devel] [PATCHv2 2/2] tests: Test stripes option with RAID1

Marian Csontos mcsontos at redhat.com
Tue Aug 22 12:56:43 UTC 2017


---
 test/shell/lvconvert-raid.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/test/shell/lvconvert-raid.sh b/test/shell/lvconvert-raid.sh
index c5e6159..70ebc530 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'
-- 
1.8.3.1




More information about the lvm-devel mailing list