How to install iostat on CentOS

If you’re performance turning a server, you want to check all aspects to see how it’s performing.  The iostat command is used to check disk i/o statistics, how shows blocks read and blocks written to each device.

Install iostat

Run the following command:

[root@app1 ~]# yum -y install sysstat

You should see the following output:

[root@app1 ~]# yum -y install sysstat
Loaded plugins: fastestmirror, priorities, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * remi:
 * remi-php70:
 * remi-safe:
 * rpmforge:
 * updates:
Trying other mirror.
Resolving Dependencies
--> Running transaction check
---> Package sysstat.x86_64 0:9.0.4-33el6_9.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 Package         Arch           Version                   Repository       Size
 sysstat         x86_64         9.0.4-33el6_9.1           updates         234 k

Transaction Summary
Install       1 Package(s)

Total download size: 234 k
Installed size: 826 k
Downloading Packages:
sysstat-9.0.4-33el6_9.1.x86_64.rpm                       | 234 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : sysstat-9.0.4-33el6_9.1.x86_64                               1/1 
  Verifying  : sysstat-9.0.4-33el6_9.1.x86_64                               1/1 

  sysstat.x86_64 0:9.0.4-33el6_9.1