#!/bin/bash # # Mike Gore, 20 Jane 2012 # Fix disk scheduler # List all out disks disks=`ls /dev/sd?` # noop anticipatory deadline cfq method=deadline for i in $disks do DISK=`basename $i` echo $method > /sys/block/$DISK/queue/scheduler cat /sys/block/$DISK/queue/scheduler done