Linux Hard drive Smart check

Source: Internet
Author: User

Whether it is a production server or a home computer, the disk must be worn in the long run, so we need to check the disk periodically to make sure that the disk is healthy or not, and that it needs to be replaced. In the Windows system, we all know that there are many third-party software can implement disk inspection, but under the Linux system, there is a default check tool Smart,smart is and the motherboard BIOS on the corresponding function to use smart, Must first enter into the motherboard BIOS settings to start the relevant settings, this project technology in the actual 90 's time was widely used, smart will record the model, capacity, temperature, density, sector, seek time, transmission, bit error rate and so on some of the detailed information, in the long-term use of these parameters will change, So we can use smart to determine whether the disk is healthy or not.

[[email protected] data]# fdisk -l# First view the information of the next disk [[email protected] data]#  Smartctl -i /dev/sdasmartctl version 5.38 [x86_64-redhat-linux-gnu] copyright   (C)  2002-8 bruce allenhome page is http://smartmontools.sourceforge.net/== = start of information section ===device model:     wdc  WD5000AAKX-08U6AA0Serial Number:    WD-WMC2E0J27J46Firmware Version:  19.01h19user capacity:    500,107,862,016 bytesdevice is:         not in smartctl database [for details use: -p  showall]ata version is:   8ata standard is:  exact ata  specification draft version not indicatedLocal Time is:     mon aug&Nbsp;15 21:55:51 2016 cstsmart support is: available - device has  smart capability. smart support is: enabled# This value if it is disabled, is not started we need to manually open [[email protected] data]#  Smartctl –smart=on –offlineauto=on –saveauto=on /dev/sda[[email protected] data] # smartctl -h /dev/sdasmartctl version 5.38 [x86_64-redhat-linux-gnu]  copyright  (C)  2002-8 bruce allenhome page is http:// Smartmontools.sourceforge.net/=== start of read smart data section ===smart  overall-health self-assessment test result: passed# This value indicates that the disk is good, and if it is failure will replace the

So we can turn on the Linux smart function to the disk health detection, this value can be added to the monitoring check, note that Windows is not built-in smart related tools, only through third-party tools to check, as well as the hard disk on the virtual machine also does not support disk detection

This article is from the "Technical essay" blog, please be sure to keep this source http://jim123.blog.51cto.com/4763600/1839021

Linux Hard drive Smart check

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.