Install and configure smartctl in centos

Source: Internet
Author: User

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.

=== 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.