summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2012-08-24 16:20:53 -0500
committerJonathan Brassow <jbrassow@redhat.com>2012-09-05 11:33:07 -0500
commit1b01a2f65a27b95717fa7b6d912271e330782873 (patch)
tree534b76362de258c45acd0a28a35a00bc50540c37
parent967b5eb1f3a25572448974f882e3bc8ba5d3fb9a (diff)
downloadlvm2-1b01a2f65a27b95717fa7b6d912271e330782873.zip
lvm2-1b01a2f65a27b95717fa7b6d912271e330782873.tar.gz
lvm2-1b01a2f65a27b95717fa7b6d912271e330782873.tar.xz
TEST (lvresize-raid): Also test resizing of RAID10
-rw-r--r--test/shell/lvresize-raid.sh35
1 files changed, 33 insertions, 2 deletions
diff --git a/test/shell/lvresize-raid.sh b/test/shell/lvresize-raid.sh
index ea5cc80..e78eb8c 100644
--- a/test/shell/lvresize-raid.sh
+++ b/test/shell/lvresize-raid.sh
@@ -38,7 +38,7 @@ for deactivate in true false; do
lvchange -an $vg/$lv1
fi
- should lvresize -l -2 $vg/$lv1
+ should lvresize -y -l -2 $vg/$lv1
#check raid_images_contiguous $vg $lv1
@@ -71,10 +71,41 @@ for i in 4 5 6 ; do
lvchange -an $vg/$lv1
fi
- should lvresize -l -3 $vg/$lv1
+ should lvresize -y -l -3 $vg/$lv1
#check raid_images_contiguous $vg $lv1
lvremove -ff $vg
done
done
+
+# Extend RAID10 (2-stripes, 2-mirror)
+for deactivate in true false; do
+ lvcreate --type raid10 -m 1 -i 2 -l 2 -n $lv1 $vg
+
+ if $deactivate; then
+ lvchange -an $vg/$lv1
+ fi
+
+ lvresize -l +2 $vg/$lv1
+
+ #check raid_images_contiguous $vg $lv1
+
+ lvremove -ff $vg
+done
+
+# Reduce RAID10 (2-stripes, 2-mirror)
+for deactivate in true false; do
+ lvcreate --type raid10 -m 1 -i 2 -l 4 -n $lv1 $vg
+
+ if $deactivate; then
+ lvchange -an $vg/$lv1
+ fi
+
+ should lvresize -y -l -2 $vg/$lv1
+
+ #check raid_images_contiguous $vg $lv1
+
+ lvremove -ff $vg
+done
+