]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
07reshape5intr: Set speed_limit_min to be able to reduce resync speed below 1000
authorJes Sorensen <Jes.Sorensen@redhat.com>
Sun, 12 Aug 2012 22:00:21 +0000 (08:00 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 12 Aug 2012 22:00:21 +0000 (08:00 +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>
tests/07reshape5intr

index 6a26bf037b9408a9c7b636815bd23d271494f8be..71ef2c788f103d28b6d0f3bd91f33265f4e4a7b0 100644 (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