[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Throttle dev.raid.speed_limit_max to 1000 during preseed for package installs



I wanted to follow up on this post for anyone who might be interested in a workaround for Bug#838503 (also mentioned in the bug thread here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838503 -- thanks to Steve McIntyre!).

 

The key here is to use "partman/early_command" to load the md_mod kernel module and then set the value in /proc/sys/dev/raid/speed_limit_max once it actually exists.

Using "partman/early_command" appears to be the only way to feed arbitrary commands into preseed around the time of the disk partitioning, but before it is far too late to be of any use performance-wise (eg as with "preseed/late_command"). There is no "partman/late_command", sadly, which would make this easier. When "partman/early_command" runs, the md_mod kernel module has not yet been loaded, so that needs to be done first. Just add the following to your preseed configuration:

 

d-i partman/early_command string modprobe md_mod ; echo 1000 > /proc/sys/dev/raid/speed_limit_max

 

This sets the raid sync for the duration of the preseed process.

 


Reply to: