在别的论坛上找到如下解决方案:
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.
[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
但是修改后重启 SMARTD 就会遇到 VWM 报错
之后什么都干不了了 |