Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hi there I am pretty newbie in servers, would appreciate your help. How do I set up an iostat logging? as my Disk IO spikes strange at some random time to very high levels. Thanks.

share|improve this question

IOSTAT provides stats for individual block devices, and won't tell you which process is actually driving IO. However, it's useful for characterizing your I/O access patterns. You can generate a large log-file with this command:

iostat -x sda -c 2 -t > stats.log

This will monitor sda (-x sda) every 2 seconds (-c 2) with a timestamp (-t). The logfile is not pretty, but it'll get you there.

share|improve this answer
"...which process is actually driving..." is there one which can tell me and I can log the history to find out? for seeing the pattern of io spikes I can see it in linode dashboard. But really need to find out the issue and eliminate it. thanks. – simple Jan 26 '11 at 21:34
@Simple For that, read this question:… – sysadmin1138 Jan 26 '11 at 21:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.