Install and configure smartctl in centos
1. What is S. m.a. R. T.
Smart is a disk self-analysis and detection technology, which was popularized as early as the end of 1990s.
Several parameters of each hard disk (including IDE and SCSI) are recorded during operation.
These parameters include model, capacity, temperature, density, sector, track time, transmission, error rate, etc.
After the hard disk has been running for thousands of hours, many internal physical parameters will change.
If a parameter exceeds the alarm threshold, the hard disk is near damaged.
At this time, the hard disk is still working. If you ignore this alarm, continue to use it.
The hard disk will become very unreliable and may fail at any time.
Ii. Installation
Yum install smartmontools
Iii. Use
1. smartctl-I <device>: displays the identity information of the device and checks whether smart support is enabled for the hard disk.
See:
Smart support is: Enabled
The hard drive supports smart.
If it is disabled, use:
Smartctl -- smart = on -- offlineauto = on -- saveauto = on <device>
Enable smart.
2. smartctl-H <device>: Check the health status of the hard disk. (DF-H view hard disks such as/dev/SDA)
=== Start of read Smart Data section ====
Smart overall-Health Self-Assessment Test Result: passed
Passed indicates that the hard disk is in good health. If it is failure, replace the hard disk immediately.
3. smartctl-A <device>: displays the properties and values of the smart vendor.
4. smartctl-l error <device>: displays the hard disk historical error information.
5. smartctl -- test = test <device>: hard disk test.
Test Values: offline, short, long, conveyance, select, M-N, pending, N, afterselect, [on | off], scttempint, N [, p]
In this case, you can use smartctl-X to interrupt the background test.
6. smartctl-l selftest <device>: displays the hard disk test information.
7. smartctl-A <device>: displays all information about the smart disk.
8. smartctl -- all/dev/SDA: displays all information about the smart disk.
This article is from "Chen shenggang's blog", please be sure to keep this source http://chenshengang.blog.51cto.com/4399161/1513034
Install and configure smartctl in centos (Hard Disk S. m.a. R. T Information and bad block detection command)