歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> RedHat Linux啟動時出現linux smartd 【FAILED】的解決方法

RedHat Linux啟動時出現linux smartd 【FAILED】的解決方法

日期:2017/2/28 13:54:58   编辑:Linux教程

最近愛上RedHat Linux,因為他的GUN精神,於是在努力學習,是用虛擬機裝的,怕木有辦法直接駕馭這個性格有點怪但是很有魅力的系統,開機時總是顯示smartd進程失敗,於是找到相關技術文章,分享下。

其實還有個問題,我的Linux沒有聲音,聲卡是正常的,但測試聲音就是沒有,下一個目標就是解決這個,呵呵~~

smartd是一個守護進程(一個幫助程序),它能監視擁有自我監視,分析和匯報技術(Self-Monitoring,
Analysis, and Reporting Technology - SMART)的硬盤。
SMART系統使得硬盤能監視並匯報自己的運行狀況。它的一個重要特性是能夠預測失敗,使得系統管理員
能避免數據丟失。
smartd由kernel-utils包缺省安裝。用命令 rpm -ql kernel-utils 可以列出kernel-utils包中的文件。
smartd守護進程通常在系統啟動的時候被開啟,它的配置文件是/etc/smartd.conf。
比如,假設有兩個硬盤被安裝,/dev/hda和/dev/hdb。一個是CD_ROM設備,另一個是硬盤。為了檢測它們
是否支持SMART,使用命令 smartctl -i /dev/hda 和 smartctl -i /dev/hdb:
# /usr/sbin/smartctl -i /dev/hda
smartctl version 5.1-11 Copyright (C) 2002-3 Bruce Allen
Home page is
http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model: ST380011A
Serial Number: 3JVB672N
Firmware Version: 8.01
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: 6
ATA Standard is: ATA/ATAPI-6 T13 1410D revision 2
Local Time is: Fri Aug 20 14:09:16 2004 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
”SMART support is: Available - device has SMART capability.“這行說明支持SMART。"SMART
support is: Enabled”這行說明SMART已經被打開。
CD-ROM設備和舊式的硬盤不支持SMART,這可以從smartctl -i /dev/hdb的輸出看出:
# /usr/sbin/smartctl -i /dev/hdb
smartctl version 5.1-11 Copyright (C) 2002-3 Bruce Allen
Home page is
http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model: LTN526D
Serial Number: [No Information Found]
Firmware Version: 9S03
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: 1
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Fri Aug 20 14:24:43 2004 EST
SMART is only available in ATA Version 3 Revision 3 or greater.
We will try to proceed in spite of this.
SMART support is: Unavailable - device lacks SMART capability.
A mandatory SMART command has failed: exiting. To continue, use the -T
option to set the tolerance level to 'permissive'
注意有些硬盤控制器不支持SMART。比如有些硬件RAID控制器不支持,或者不會傳遞SMART信息,即使加入
的硬盤支持SMART。
可以修改/etc/smartctl.conf文件,使得smartd只監視你想監視的設備。假設只有/dev/hda需要被監視,
在該設備上如果有警告信息發生,需要把它發給根用戶,那麼/etc/smartd.conf需要這樣修改:

# /etc/smartd.conf
# Sample configuration file for smartd. See man 5 smartd.conf.
# Home page is:
http://smartmontools.sourceforge.net
...
# A very silent check. Only report SMART health status if it fails
# But send an email in this case
/dev/hda -a -m
[email protected]
...
編輯完/etc/smartd.conf,重啟該守護進程:

# /sbin/service smartd restart
Shutting down smartd: [FAILED]
Starting smartd: [ OK ]
要設置smartd在系統啟動時候被激活,在根用戶下用 chkconfig smartd on 命令。

關閉smartd服務自動啟動
root LINUX smartd is a daemon that monitors the Self-Monitoring, Analysis and Reporting
Technology (SMART) system built
into many ATA-3 and later ATA, IDE and SCSI-3 hard drives. The purpose of SMART is to
monitor the reliability
of the hard drive and predict drive failures, and to carry out different types of
drive self-tests. This
version of smartd is compatible with ATA/ATAPI-7 and earlier standards
簡單地說,smartd是監控硬盤的可靠性並預測其失敗、進行測試的守護進程!
仔細看看smartd的說明即可!(man smartd)
#chkconfig smartd off
這是關閉smartd服務自動啟動,機器重新啟動時smartd不再運行!

更多RedHat相關信息見RedHat 專題頁面 http://www.linuxidc.com/topicnews.aspx?tid=10

Copyright © Linux教程網 All Rights Reserved