Install and configure smartctl in centos (Hard Disk S. m.a. R. T Information and bad block detection command)

Source: Internet
Author: User

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)

Related Article

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.