- 论坛徽章:
- 0
|
/摘自/http://linux.die.net/man/5/smartd.conf
Name
smartd.conf - SMART Disk Monitoring Daemon Configuration File
Full Path
/etc/smartd.conf
Package Version
smartmontools-5.36 released 2006/04/12 at 17:39:01 UTC
Description
/etc/smartd.conf is the configuration file for the smartd daemon, which monitors the Self-Monitoring, Analysis and Reporting Technology (SMART) system built into many ATA-3 and later ATA, IDE and SCSI-3 hard drives.
If the configuration file /etc/smartd.conf is present, smartd reads it at startup, before fork(2)ing into the background. If smartd subsequently receives a HUP signal, it will then re-read the configuration file. If smartd is running in debug mode, then an INT signal will also make it re-read the configuration file. This signal can be generated by typing <CONTROL-C> in the terminal window where smartd is running.
CONFIGURATION FILE /etc/smartd.conf
In the absence of a configuration file, under Linux smartd will try to open the 20 ATA devices /dev/hd[a-t] and the 26 SCSI devices /dev/sd[a-z]. Under FreeBSD, smartd will try to open all existing ATA devices (with entries in /dev) /dev/ad[0-9]+ and all existing SCSI devices /dev/da[0-9]+. Under NetBSD/OpenBSD, smartd will try to open all existing ATA devices (with entries in /dev) /dev/wd[0-9]+c and all existing SCSI devices /dev/sd[0-9]+c. Under Solaris smartd will try to open all entries "/dev/rdsk/c?t?d?s?" for IDE/ATA and SCSI disk devices, and entries "/dev/rmt/*" for SCSI tape devices. Under Windows smartd will try to open all entries "/dev/hd[a-j]" ("\\.\PhysicalDrive[0-9]") for IDE/ATA devices on WinNT4/2000/XP, "/dev/hd[a-d]" (bitmask from "\\.\SMARTVSD") for IDE/ATA devices on Win95/98/98SE/ME, and "/dev/scsi[0-9][0-7]" (ASPI adapter 0-9, ID 0-7) for SCSI devices on all versions of Windows. Under Darwin, smartd will open any ATA block storage device.
This can be annoying if you have an ATA or SCSI device that hangs or misbehaves when receiving SMART commands. Even if this causes no problems, you may be annoyed by the string of error log messages about block-major devices that can´t be found, and SCSI devices that can´t be opened.
One can avoid this problem, and gain more control over the types of events monitored by smartd, by using the configuration file /etc/smartd.conf. This file contains a list of devices to monitor, with one device per line. An example file is included with the smartmontools distribution. You will find this sample configuration file in /usr/share/doc/smartmontools-5.36/. For security, the configuration file should not be writable by anyone but root. The syntax of the file is as follows:
............
...........
............ |
|