home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / rescue / etc / smartd.conf < prev    next >
Text File  |  2006-11-29  |  7KB  |  143 lines

  1. # Sample configuration file for smartd.  See man smartd.conf.
  2.  
  3. # Home page is: http://smartmontools.sourceforge.net
  4.  
  5. # $Id: smartd.conf,v 1.44 2006/10/09 19:58:08 chrfranke Exp $
  6.  
  7. # smartd will re-read the configuration file if it receives a HUP
  8. # signal
  9.  
  10. # The file gives a list of devices to monitor using smartd, with one
  11. # device per line. Text after a hash (#) is ignored, and you may use
  12. # spaces and tabs for white space. You may use '\' to continue lines.
  13.  
  14. # You can usually identify which hard disks are on your system by
  15. # looking in /proc/ide and in /proc/scsi.
  16.  
  17. # The word DEVICESCAN will cause any remaining lines in this
  18. # configuration file to be ignored: it tells smartd to scan for all
  19. # ATA and SCSI devices.  DEVICESCAN may be followed by any of the
  20. # Directives listed below, which will be applied to all devices that
  21. # are found.  Most users should comment out DEVICESCAN and explicitly
  22. # list the devices that they wish to monitor.
  23. #DEVICESCAN
  24.  
  25. # Use "-m root@localhost -M exec /usr/lib/smartmontools/smart-notify" to
  26. # enable desktop notification over powersave-notify.
  27. DEVICESCAN -m root@localhost -M exec /usr/lib/smartmontools/smart-notify
  28.  
  29. # Alternative setting to ignore temperature and power-on hours reports
  30. # in syslog.
  31. #DEVICESCAN -I 194 -I 231 -I 9
  32.  
  33. # Alternative setting to report more useful raw temperature in syslog.
  34. #DEVICESCAN -R 194 -R 231 -I 9
  35.  
  36. # Alternative setting to report raw temperature changes >= 5 Celsius
  37. # and min/max temperatures.
  38. #DEVICESCAN -I 194 -I 231 -I 9 -W 5
  39.  
  40. # First (primary) ATA/IDE hard disk.  Monitor all attributes, enable
  41. # automatic online data collection, automatic Attribute autosave, and
  42. # start a short self-test every day between 2-3am, and a long self test
  43. # Saturdays between 3-4am.
  44. #/dev/hda -a -o on -S on -s (S/../.././02|L/../../6/03)
  45.  
  46. # Monitor SMART status, ATA Error Log, Self-test log, and track
  47. # changes in all attributes except for attribute 194
  48. #/dev/hdb -H -l error -l selftest -t -I 194 
  49.  
  50. # Monitor all attributes except normalized Temperature (usually 194),
  51. # but track Temperature changes >= 4 Celsius, report Temperatures
  52. # >= 45 Celsius and changes in Raw value of Reallocated_Sector_Ct (5).
  53. # Send mail on SMART failures or when Temperature is >= 55 Celsius.
  54. #/dev/hdc -a -I 194 -W 4,45,55 -R 5 -m admin@example.com
  55.  
  56. # Linux-specific example: monitor a SATA (Serial ATA) disk which uses
  57. # the libata driver.  This requires a Linux 2.6.15 or later kernel.
  58. # Note that the disk is addressed via a SCSI device, but the
  59. # underlying disk type is actually ATA
  60. #/dev/sda -a -d ata
  61.  
  62. # A very silent check.  Only report SMART health status if it fails
  63. # But send an email in this case
  64. #/dev/hdc -H -C 0 -U 0 -m admin@example.com
  65.  
  66. # First two SCSI disks.  This will monitor everything that smartd can
  67. # monitor.  Start extended self-tests Wednesdays between 6-7pm and
  68. # Sundays between 1-2 am
  69. #/dev/sda -d scsi -s L/../../3/18
  70. #/dev/sdb -d scsi -s L/../../7/01
  71.  
  72. # Monitor 4 ATA disks connected to a 3ware 6/7/8000 controller which uses
  73. # the 3w-xxxx driver. Start long self-tests Sundays between 1-2, 2-3, 3-4, 
  74. # and 4-5 am.
  75. # NOTE: starting with the Linux 2.6 kernel series, the /dev/sdX interface
  76. # is DEPRECATED.  Use the /dev/tweN character device interface instead.
  77. # For example /dev/twe0, /dev/twe1, and so on.
  78. #/dev/sdc -d 3ware,0 -a -s L/../../7/01
  79. #/dev/sdc -d 3ware,1 -a -s L/../../7/02
  80. #/dev/sdc -d 3ware,2 -a -s L/../../7/03
  81. #/dev/sdc -d 3ware,3 -a -s L/../../7/04
  82.  
  83. # Monitor 2 ATA disks connected to a 3ware 9000 controller which uses
  84. # the 3w-9xxx driver (Linux, FreeBSD). Start long self-tests Tuesdays
  85. # between 1-2 and 3-4 am.
  86. #/dev/twa0 -d 3ware,0 -a -s L/../../2/01
  87. #/dev/twa0 -d 3ware,1 -a -s L/../../2/03
  88.  
  89. # Same as above for Windows. Option '-d 3ware,N' is not necessary,
  90. # disk (port) number is specified in device name.
  91. # NOTE: On Windows, DEVICESCAN works also for 3ware controllers.
  92. #/dev/hdc,0 -a -s L/../../2/01
  93. #/dev/hdc,1 -a -s L/../../2/03
  94.  
  95. # Monitor 3 ATA disks directly connected to a HighPoint RocketRAID. Start long
  96. # self-tests Sundays between 1-2, 2-3, and 3-4 am. 
  97. #/dev/sdd -d hpt,1/1 -a -s L/../../7/01
  98. #/dev/sdd -d hpt,1/2 -a -s L/../../7/02
  99. #/dev/sdd -d hpt,1/3 -a -s L/../../7/03
  100.  
  101. # Monitor 2 ATA disks connected to the same PMPort which connected to the
  102. # HighPoint RocketRAID. Start long self-tests Tuesdays between 1-2 and 3-4 am
  103. #/dev/sdd -d hpt,1/4/1 -a -s L/../../2/01
  104. #/dev/sdd -d hpt,1/4/2 -a -s L/../../2/03
  105.  
  106. # HERE IS A LIST OF DIRECTIVES FOR THIS CONFIGURATION FILE.
  107. # PLEASE SEE THE smartd.conf MAN PAGE FOR DETAILS
  108. #
  109. #   -d TYPE Set the device type: ata, scsi, marvell, removable, 3ware,N, hpt,L/M/N
  110. #   -T TYPE set the tolerance to one of: normal, permissive
  111. #   -o VAL  Enable/disable automatic offline tests (on/off)
  112. #   -S VAL  Enable/disable attribute autosave (on/off)
  113. #   -n MODE No check. MODE is one of: never, sleep, standby, idle
  114. #   -H      Monitor SMART Health Status, report if failed
  115. #   -l TYPE Monitor SMART log.  Type is one of: error, selftest
  116. #   -f      Monitor for failure of any 'Usage' Attributes
  117. #   -m ADD  Send warning email to ADD for -H, -l error, -l selftest, and -f
  118. #   -M TYPE Modify email warning behavior (see man page)
  119. #   -s REGE Start self-test when type/date matches regular expression (see man page)
  120. #   -p      Report changes in 'Prefailure' Normalized Attributes
  121. #   -u      Report changes in 'Usage' Normalized Attributes
  122. #   -t      Equivalent to -p and -u Directives
  123. #   -r ID   Also report Raw values of Attribute ID with -p, -u or -t
  124. #   -R ID   Track changes in Attribute ID Raw value with -p, -u or -t
  125. #   -i ID   Ignore Attribute ID for -f Directive
  126. #   -I ID   Ignore Attribute ID for -p, -u or -t Directive
  127. #   -C ID   Report if Current Pending Sector count non-zero
  128. #   -U ID   Report if Offline Uncorrectable count non-zero
  129. #   -W D,I,C Monitor Temperature D)ifference, I)nformal limit, C)ritical limit
  130. #   -v N,ST Modifies labeling of Attribute N (see man page)
  131. #   -a      Default: equivalent to -H -f -t -l error -l selftest -C 197 -U 198
  132. #   -F TYPE Use firmware bug workaround. Type is one of: none, samsung
  133. #   -P TYPE Drive-specific presets: use, ignore, show, showall
  134. #    #      Comment: text after a hash sign is ignored
  135. #    \      Line continuation character
  136. # Attribute ID is a decimal integer 1 <= ID <= 255
  137. # except for -C and -U, where ID = 0 turns them off.
  138. # All but -d, -m and -M Directives are only implemented for ATA devices
  139. #
  140. # If the test string DEVICESCAN is the first uncommented text
  141. # then smartd will scan for devices /dev/hd[a-l] and /dev/sd[a-z]
  142. # DEVICESCAN may be followed by any desired Directives.
  143.