summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2012-08-13 00:00:21 +0200
committerNeilBrown <neilb@suse.de>2012-08-13 00:00:21 +0200
commitaa437afc1cec4c7b1692a6356d18c4bb98d1b6c1 (patch)
treece2984576e291eed789f2923fc4a1da869f02429 /tests
parentMinor cosmetic fixes in various files. (diff)
downloadmdadm-aa437afc1cec4c7b1692a6356d18c4bb98d1b6c1.tar.xz
mdadm-aa437afc1cec4c7b1692a6356d18c4bb98d1b6c1.zip
07reshape5intr: Set speed_limit_min to be able to reduce resync speed below 1000
We need to set speed_limit_min accordingly, otherwise setting speed_limit_max below 1000 will have no effect. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/07reshape5intr2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/07reshape5intr b/tests/07reshape5intr
index 6a26bf03..71ef2c78 100644
--- a/tests/07reshape5intr
+++ b/tests/07reshape5intr
@@ -20,6 +20,7 @@ do
mdadm -CR $md0 -amd -l5 -c $chunk -n$disks --assume-clean $devs
mdadm $md0 --add $dev6
+ echo 20 > /proc/sys/dev/raid/speed_limit_min
echo 20 > /proc/sys/dev/raid/speed_limit_max
mdadm --grow $md0 -n $[disks+1]
check reshape
@@ -27,6 +28,7 @@ do
mdadm --stop $md0
mdadm --assemble $md0 $devs $dev6
check reshape
+ echo 1000 > /proc/sys/dev/raid/speed_limit_min
echo 2000 > /proc/sys/dev/raid/speed_limit_max
check wait
echo check > /sys/block/md0/md/sync_action