summaryrefslogtreecommitdiffstats
path: root/tests/00multipath
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-08-16 07:00:22 +0000
committerNeil Brown <neilb@suse.de>2005-08-16 07:00:22 +0000
commitc13c45e9130608314ced83ac488c386ac502865b (patch)
tree9fb02cbb0767325ac9e3cda98f9de0b4c90c3a90 /tests/00multipath
parentfe80f49b6e157e006d63d0319f6d022226e4e197 (diff)
downloadmdadm-c13c45e9130608314ced83ac488c386ac502865b.tar.gz
mdadm-c13c45e9130608314ced83ac488c386ac502865b.tar.xz
mdadm-c13c45e9130608314ced83ac488c386ac502865b.zip
Add test for multipath and make it work.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'tests/00multipath')
-rw-r--r--tests/00multipath24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/00multipath b/tests/00multipath
new file mode 100644
index 0000000..efad690
--- /dev/null
+++ b/tests/00multipath
@@ -0,0 +1,24 @@
+
+#
+# create a multipath, and fail and stuff
+
+mdadm -CR $md1 -l multipath -n2 $path0 $path1
+
+testdev $md1 1 $mdsize0 1
+
+mdadm $md1 -f $path0
+rotest $md1
+testdev $md1 1 $mdsize0 1
+
+mdadm $md1 -r $path0
+mdadm $md1 -a $path0
+
+rotest $md1
+testdev $md1 1 $mdsize0 1
+
+mdadm $md1 -f $path1
+mdadm $md1 -r $path1
+rotest $md1
+testdev $md1 1 $mdsize0 1
+
+mdadm -S $md1