IO队列长度监控
#!/bin/bash
io () {
device_num=`iostat -x | egrep "^sd[a-z]"` | wc -l
iostat -x 1 3 | egrep "^sa[a-z]" | tail -n +$((device_num+1)) | awk '{io_long[$1]+=$9}END{for (i in io_long)print (io_long[i], i)}'
}
#while true
#do
io
# sleep 5
#done