使用sysstat软件包中的iostat工具命令采集硬盘时延数据。
yum install sysstat
iostat -x -y -d 5 120
(该命令表示每隔5s采集一次I/O设备信息,共120次)