Thanks, for the info, here is my 1.local script in case anyone needs an example:
Code:
#!/bin/bash
#
# /etc/rc.local: Local multi-user start-up script.
#
UUID_LIST=(
ata-TOSHIBA_DT01ACA300_457T447GS
ata-TOSHIBA_DT01ACA300_45ASUU5GS
ata-Hitachi_HDS723015BLA642_MN1020F0026Y6D
ata-TOSHIBA_DT01ACA200_Y412Y7VTS
)
declare -i i=0
while [ "${UUID_LIST[$i]}" != "" ]; do
NODE=`ls -l /dev/disk/by-id/${UUID_LIST[$i]} | awk '{ print $NF }' | sed -e 's/[/\.]//g'`
echo deadline > /sys/block/$NODE/queue/scheduler
i=i+1
done
Note I have not rebooted to confirm that the script is triggered, but I am sure it will.
Change your UUID_LIST entries with your own device UUIDs and substitute deadline with noop or another io scheduler.
You can confirm the script was triggered by the following:
Code:
cat /sys/block/sdx/queue/scheduler
where x in sdx is the mapping to a device in the UUID_LIST.