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>
This commit is contained in:
Jes Sorensen 2012-08-13 08:00:21 +10:00 committed by NeilBrown
parent ca3b669603
commit aa437afc1c
1 changed files with 2 additions and 0 deletions

View File

@ -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