]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - tests/03r5assemV1
tests/10ddf-fail-two-spares: new unit test
[thirdparty/mdadm.git] / tests / 03r5assemV1
index 0f2c83b6ed3a159964844747f00a005ff5a1baae..bca0c583724b6b604b8e50ef63b55bd19562f621 100644 (file)
@@ -2,7 +2,7 @@
 # create a v-1 raid5 array and assemble in various ways
 
 mdadm -CR -e1 --name one $md1 -l5 -n3 -x2 $dev0 $dev1 $dev2 $dev3 $dev4
-tst="check raid5 ;testdev $md1 2 $mdsize1 64 ; mdadm -S $md1"
+tst="check raid5 ;testdev $md1 2 $mdsize1 512 ; mdadm -S $md1"
 uuid=`mdadm -Db $md1 | sed 's/.*UUID=//'`
 check wait
 
@@ -58,6 +58,10 @@ mdadm --assemble --scan --config=$conf $md1
 eval $tst
 
 ### Now with a missing device
+# We don't want the recovery to complete while we are
+# messing about here.
+echo 100 > /proc/sys/dev/raid/speed_limit_max
+echo 100 > /proc/sys/dev/raid/speed_limit_min
 
 mdadm -AR $md1 $dev0 $dev2 $dev3 $dev4 #
 check state U_U
@@ -120,3 +124,5 @@ mdadm -I -c $conf $dev0
 mdadm -I -c $conf $dev1
 mdadm -I -c $conf $dev2
 eval $tst
+echo 2000 > /proc/sys/dev/raid/speed_limit_max
+echo 1000 > /proc/sys/dev/raid/speed_limit_min