分类: 系统运维
2015-08-14 18:14:40
测试各硬盘读取速度判断硬盘故障
在服务端命令窗口中执行如下命令
hdparm -t /dev/hda (IDE硬盘)
hdparm -t /dev/sda (SATA、SCSI、硬RAID卡阵列)
hdparm -t /dev/md0 (软RAID设备)
# hdparm -t /dev/sda
/dev/sda:
Timing buffered disk reads: 896 MB in 3.00 seconds = 298.30 MB/sec
# hdparm -T /dev/sda
/dev/sda:
Timing cached reads: 9802 MB in 2.00 seconds = 4903.47 MB/sec
# hdparm -Tt /dev/sda //其它重复,只看着一项就行了
/dev/sda:
Timing cached reads: 10964 MB in 2.00 seconds = 5486.03 MB/sec
Timing buffered disk reads: 1008 MB in 3.00 seconds = 335.89 MB/sec
# hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 11038 MB in 2.00 seconds = 5522.64 MB/sec
Timing buffered disk reads: 1028 MB in 3.00 seconds = 342.63 MB/sec
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
网友测试=>
hdparm -tT /dev/sda1
/dev/sda1:
[root]# hdparm -tT /dev/sda2
/dev/sda1:
测试结果在空载情况下应 >40M/s ,在负载情况下平均应 >
20M/s 为正常,如测试结果极低则需要进一步使用硬盘专用检测工具测试是否为硬盘故障。 mysql