1. what is S. m. a. r. t. SMART is a disk self-analysis and detection technology. as early as the end of 1990s, SMART was widely used when every hard disk (including IDE and SCSI) was running, several parameters of the hard disk are recorded, including the model, capacity, temperature, density, sector, track time, transmission, and error rate, many internal physical parameters change. if a parameter exceeds the alarm threshold, the hard disk is close to damaged, and the hard disk is still working. 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: Displays the device identity information 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
Enable SMART.
2. smartctl-H: View the health status of the hard disk.
=== 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-: Display the properties and values of the SMART device manufacturer.
4. smartctl-l error: Displays hard disk history error information.
5. smartctl -- test = TEST: 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: Displays the hard disk test information.
7. smartctl-: Displays all information about the SMART disk.