bobmet820 / unraid-simplefeatures

Automatically exported from code.google.com/p/unraid-simplefeatures
0 stars 0 forks source link

Add iostat output to unraid statistics page #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Since unRAID is acting as a storage solution. I think some kind of disk io 
display is relevant and would be a valuable addition to the simplefeatures 
stats. Tom could perhaps provide some baseline for stats on user shares. This 
is just an idea.

Telnet/ssh into unraid console as root

With iostat the output of all hard disk io is displayed and broken down by disk 
run the following command:
# iostat -m

to show only the drives and headings
# iostat -m | tail -n +6

to show only MB reads and writes (There are hundreds of ways to get this, but 
here's one, somewhat janky way. It's late xD )
# iostat -m | tail -n +7 | awk 'BEGIN { print "Device     MB_read/s      
MB_wrtn/s" }{ print $1"        "$3"           "$4 }'

Simpler option:
# vmstat

And to only get blocks in/out
# vmstat | awk {'print $9,$10'}

Original issue reported on code.google.com by mlehner616@gmail.com on 3 Apr 2013 at 5:57