summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-08-13 08:00:21 +1000
committerNeilBrown <neilb@suse.de>2012-08-13 08:00:21 +1000
commite999152898196db9d53edfa6b93165685cb845b5 (patch)
tree4117c6dfb357f7282aaf985fc2e1011b5bc32d2f /tests
parentd070235d3f866ca270c5bdc799165b7ddb1f3bb1 (diff)
tests/03r5assemV1: reduce sync speed further.
This test is quite sensitive to resync speed - if the resync happens to quickly it fails because it sees aan optimal array when it expects a degraded array. 1000 is often slow enough but now always, so slow it down even more. This requires reducing speed_limit_min also as kernel ignores 'max' when speed is below 'min'. Reported-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/03r5assemV14
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/03r5assemV1 b/tests/03r5assemV1
index 52b11077..bca0c583 100644
--- a/tests/03r5assemV1
+++ b/tests/03r5assemV1
@@ -60,7 +60,8 @@ eval $tst
### Now with a missing device
# We don't want the recovery to complete while we are
# messing about here.
-echo 1000 > /proc/sys/dev/raid/speed_limit_max
+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
@@ -124,3 +125,4 @@ 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