How to Verify the Hard Disk Usage with iostat in Linux

banner dedicated


In this tutorial, we will show you how to verify the hard disk usage of your server with iostat.


Install iostat package

Centos

yum install sysstat -y



Debian/Ubuntu

apt-get install sysstat -y


Run iostat to get the hard disk usage

iostat -x -m 5
  
avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           1.60    0.00    0.46    0.31    0.00   97.63
Device:  rrqm/s   wrqm/s   r/s   w/s    rMB/s    wMB/s avgrq-sz avgqu-sz   await  svctm  %util
sda        0.00     6.80  1.80  3.80     0.01     0.04    18.86     0.02    2.75   1.96   1.10
sda1       0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
sda2       0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
sda3       0.00     6.80  1.80  3.80     0.01     0.04    18.86     0.02    2.75   1.96   1.10

The value “5” is the duration between every verification. It can be changed by any value.


To exit iostat just press “CTRL + c”


banner dedicated


Colo-Serv Communications has written 32 articles

Premium Dedicated Hosting Services

Leave a Reply

Your email address will not be published. Required fields are marked *

4 × 3 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>