summaryrefslogtreecommitdiffstats
path: root/tests/02lineargrow
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-05-21 14:25:40 +1000
committerNeil Brown <neilb@suse.de>2007-05-21 14:25:40 +1000
commit69646c1483b7b728d77ae2c944d624f8c05ad4db (patch)
tree46d30b3256dc879e2d626391604e2a4eb9e3df6c /tests/02lineargrow
parentf752781f81a68588d0225cf8e3d96eeb6867b245 (diff)
downloadmdadm-69646c1483b7b728d77ae2c944d624f8c05ad4db.tar.gz
mdadm-69646c1483b7b728d77ae2c944d624f8c05ad4db.tar.xz
mdadm-69646c1483b7b728d77ae2c944d624f8c05ad4db.zip
Update tests and add linear-add
Update the testing scripts to allow for new space calculations for space for bitmaps. Add a test script for adding devices to linear arrays.
Diffstat (limited to 'tests/02lineargrow')
-rw-r--r--tests/02lineargrow22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/02lineargrow b/tests/02lineargrow
index e69de29..78477a3 100644
--- a/tests/02lineargrow
+++ b/tests/02lineargrow
@@ -0,0 +1,22 @@
+
+# create a liner array, and add more drives to to.
+
+for e in 0.90 1 1.1 1.2
+do
+ case $e in
+ 0.90 ) sz=$mdsize0 ;;
+ 1 ) sz=$mdsize1 ;;
+ 1.1 ) sz=$mdsize11 ;;
+ 1.2 ) sz=$mdsize12 ;;
+ esac
+ mdadm -CRf $md0 --level linear -e $e --raid-disks=1 $dev1
+ testdev $md0 1 $sz 64
+
+ mdadm --grow $md0 --add $dev2
+ testdev $md0 2 $sz 64
+
+ mdadm --grow $md0 --add $dev3
+ testdev $md0 3 $sz 64
+
+ mdadm -S $md0
+done