Linux under the Smartmontools tool installation use method

Source: Internet
Author: User


Environment:
System environment: CenetOS6.4 x86_64

One, what is s.m.a.r.t.

Smart is a kind of disk self analysis detection technology, as early as the end of the 90, the basic popularity of each hard disk (including IDE, SCSI) in the running, will have a number of their own parameters, including models, capacity, temperature, density, sector, seek time, transmission, BER, etc. After the hard drive has been running for thousands of hours, many of the intrinsic physical parameters will change, a parameter exceeding the alarm threshold, indicating that the hard drive is close to damage.


Smartmontools is an open source disk control, monitoring tool that can run on Linux,unix,bsd,solaris,mac os,os/2,cygwin and Windows, and it can also run from the boot CD or boot floppy disk to support ata/ Atapi/sata-3 (to-8) bit of hard disk and SCSI hard drive, also supports tape device, its home is in smartmontools.sourceforge.net, actually it is a software package, including two utilities: Smartctl and SMATD. The hard drive it monitors must have S.M.A.R.T features, which are currently available on all hard drives, but are usually not turned on by default, and there are two ways to turn this feature on: 1 through the BIOS setup option 2 via the SMARTCTL command. It can be used to test the health of the hard drive and to alert you before a failure occurs.

Second, enable smart

Smart is the corresponding function with the motherboard BIOS, to use smart, you must first go into the host BIOS settings inside the start of the relevant settings, and then the operating system level of things

Iii. installation of Smartmontools tools and use

1. Direct use of Yum installation

Yum Install Smartmontools-y

2. Detect if the hard drive turns on smart support

Smartctl-i/DEV/SDA

For hard disk device symbols, you can use Fdisk to view

[Root@dazhong ~]# smartctl-i/DEV/SDA
Smartctl 5.42 2011-10-20 r3458 [X86_64-linux-2.6.18-371.3.1.el5] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
Vendor:seagate
Product:st3300555ss
revision:t106
User capacity:300,000,000,000 bytes [GB]
Logical block size:512 bytes
Logical Unit id:0x5000c50001e7294f
Serial NUMBER:3LM0D6P3
Device Type:disk
Transport Protocol:sas
local time is:wed 17:50:41 2014 CST
Device supports SMART and is Enabled
Temperature Warning Disabled or not supported

This command allows you to see the relevant information about the hard drive, the capacity, the type, and the smart open state.

Parameter Options Description:

-i                 #显示硬盘信息
-h               #显示硬盘健康状态
-D                #指定设备类型
-a               #显示支持smart属性
-l   error       #列出硬件错误日志
-l   selftest    #列出自行测试结果

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.