|
|
发表于 2004-10-18 23:32:18
|
显示全部楼层
smartd这个服务在FC2中会出现上面的情况,主要是这个服务是监测机器的硬件的,出现错误是因为这个程序不能正确的识别硬件而造成的,你可以把这个服务关闭
#chkconfig smartd off
#service smartd stop
如果一定要使用的话可以借鉴别人的做法:
[php]
starting smartd failed的解决办法
Posted on 2004-08-23 11:02 集思 阅读(19) 评论(0) 编辑 收藏
See "man smartctl". The error is likely do to it trying to access you cdrom. See the below example where hda is a cdrom drive, and hde and hdg are hard drives.
[/php]
[root goblin root]# service smartd restart
Shutting down smartd: [FAILED]
Starting smartd: [FAILED]
[root goblin root]# tail /var/log/messages
==> /var/log/messages <==
Jan 15 15:20:49 localhost smartd: smartd shutdown failed
Jan 15 15:20:49 localhost smartd[18095]: smartd version 5.21 Copyright (C) 2002-3 Bruce Allen
Jan 15 15:20:49 localhost smartd[18095]: Home page is http://smartmontools.sourceforge.net/
Jan 15 15:20:49 localhost smartd[18095]: Opened configuration file /etc/smartd.conf
Jan 15 15:20:49 localhost smartd[18095]: Configuration file /etc/smartd.conf parsed.
Jan 15 15:20:49 localhost smartd[18095]: Device: /dev/hda, opened
Jan 15 15:20:49 localhost smartd[18095]: Device: /dev/hda, unable to read Device Identity Structure
Jan 15 15:20:49 localhost smartd[18095]: Unable to register ATA device /dev/hda at line 30 of file /etc/smartd.conf
Jan 15 15:20:49 localhost smartd[18095]: Unable to register device /dev/hda (no Directive -d removable). Exiting.
Jan 15 15:20:49 localhost smartd: smartd startup failed
[root goblin root]# vi /etc/smartd.conf
Change
/dev/hda -H -m root localhost localdomain
to
/dev/hde -H -m root localhost localdomain
/dev/hdg -H -m root localhost localdomain
[root goblin root]# service smartd restart
Shutting down smartd: [FAILED]
Starting smartd: [ OK ]
[root goblin root]# tail /var/log/messages
==> /var/log/messages <==
Jan 15 15:23:50 localhost smartd[18125]: Configuration file /etc/smartd.conf parsed.
Jan 15 15:23:50 localhost smartd[18125]: Device: /dev/hde, opened
Jan 15 15:23:50 localhost smartd[18125]: Device: /dev/hde, not found in smartd database.
Jan 15 15:23:50 localhost smartd[18125]: Device: /dev/hde, is SMART capable. Adding to "monitor" list.
Jan 15 15:23:50 localhost smartd[18125]: Device: /dev/hdg, opened
Jan 15 15:23:50 localhost smartd[18125]: Device: /dev/hdg, not found in smartd database.
Jan 15 15:23:51 localhost smartd[18125]: Device: /dev/hdg, is SMART capable. Adding to "monitor" list.
Jan 15 15:23:51 localhost smartd[18125]: Monitoring 2 ATA and 0 SCSI devices
Jan 15 15:23:51 localhost smartd[18127]: smartd has fork()ed into background mode. New PID=18127.
Jan 15 15:23:51 localhost smartd: smartd startup succeeded |
|