Hard Drives going bad, how to get SATA/ATA device information.

# hdparm -tT /dev/sda

Timing cached reads: 582 MB in 2.00 seconds = 290.60 MB/sec
Timing buffered disk reads: 96 MB in 3.05 seconds = 31.49 MB/sec

Harddrives come in three kinds: Sata, Ide, and Scsi. Many type of hardware error will how up under linux if you use the command “dmesg”. In fact, almost any type of hardware error or information will show up there.

If you think your drive may be sub par, or you want to test it, then hdparm is a good command.

[~]# hdparm -tT /dev/sda

Timing cached reads: 270 MB in 2.01 seconds = 134.60 MB/sec
Timing buffered disk reads: 80 MB in 3.07 seconds = 26.10 MB/sec

If the second measurement is under 40MB/sec then you shoud change the drive for your server.

Below is the measurement for a new server.

[~]# hdparm -tT /dev/sda

Timing cached reads: 12252 MB in 2.00 seconds = 6135.69 MB/sec
Timing buffered disk reads: 212 MB in 3.01 seconds = 70.51 MB/sec

Note: SMART allows you to have a good degree of prediction on when the drive will reach its end of life.

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.