网络通信 频道

使用Smartmontools监控Linux磁盘存储设备

    硬盘物理坏道是硬盘的所有Linux硬件故障中最让人头痛的。它轻则使你的Linux计算机频频死机,重则让你的所有数据化为乌有。S.M.A.R.T的全称为“Self-Monitoring,Analysis and Reporting Technology”,即“自我监测、分析及报告技术”。Smartmontools是一个Linux下硬盘检测工具,主页:http://smartmontools.sourceforge.net

    一、 磁盘存储设备健康监控

    1、软件下载安装:

    Wegt http://jaist.dl.sourceforge.net/sourceforge/smartmontools/smartmontools-5.36-1.i386.rpm

    rpm –ivh /smartmontools-5.1-18.i386.rpm

    检测硬盘和主板是否支持SMART技术

    软件安装后会在/usr/local/ 目录下产生程序:smartctl,先检测硬盘和主板是否支持SMART技术:

smartctl -i /dev/hda7

smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen

Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===

Device Model: ST313620A

Serial Number: 7BW0DZLX

Firmware Version: 3.11

User Capacity: 13,666,701,312 bytes

Device is: Not in smartctl database [for details use: -P showall]

ATA Version is: 4

ATA Standard is: Exact ATA specification draft version not indicated

Local Time is: Tue Apr 25 08:14:56 2006 CST

SMART support is: Available - device has SMART capability.

SMART support is: Enabled

    2.启动SMART技术

smartctl -s on /dev/hda1

smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen

Home page is http://smartmontools.sourceforge.net/

=== START OF ENABLE/DISABLE COMMANDS SECTION ===

SMART Enabled.

 

0
相关文章