]>
Commit | Line | Data |
---|---|---|
832b75ed GG |
1 | # Sample configuration file for smartd. See man smartd.conf. |
2 | ||
a86ec89e | 3 | # Home page is: http://www.smartmontools.org |
832b75ed | 4 | |
17d0b8d9 | 5 | <<<<<<< HEAD |
a86ec89e | 6 | # $Id: smartd.conf 4120 2015-08-27 16:12:21Z samm2 $ |
17d0b8d9 | 7 | ======= |
3d8ad6fa | 8 | # $Id: smartd.conf 4047 2015-03-22 16:16:24Z chrfranke $ |
17d0b8d9 | 9 | >>>>>>> 3d8ad6fa4529eb02ae1391a1e937bf57aad3fb74 |
832b75ed GG |
10 | |
11 | # smartd will re-read the configuration file if it receives a HUP | |
12 | # signal | |
13 | ||
14 | # The file gives a list of devices to monitor using smartd, with one | |
15 | # device per line. Text after a hash (#) is ignored, and you may use | |
16 | # spaces and tabs for white space. You may use '\' to continue lines. | |
17 | ||
18 | # You can usually identify which hard disks are on your system by | |
19 | # looking in /proc/ide and in /proc/scsi. | |
20 | ||
21 | # The word DEVICESCAN will cause any remaining lines in this | |
22 | # configuration file to be ignored: it tells smartd to scan for all | |
23 | # ATA and SCSI devices. DEVICESCAN may be followed by any of the | |
24 | # Directives listed below, which will be applied to all devices that | |
25 | # are found. Most users should comment out DEVICESCAN and explicitly | |
26 | # list the devices that they wish to monitor. | |
27 | DEVICESCAN | |
28 | ||
ba59cff1 GG |
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 | ||
a86ec89e | 40 | # First ATA/SATA or SCSI/SAS disk. Monitor all attributes, enable |
832b75ed GG |
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. | |
a86ec89e | 44 | #/dev/sda -a -o on -S on -s (S/../.././02|L/../../6/03) |
832b75ed GG |
45 | |
46 | # Monitor SMART status, ATA Error Log, Self-test log, and track | |
47 | # changes in all attributes except for attribute 194 | |
a86ec89e | 48 | #/dev/sdb -H -l error -l selftest -t -I 194 |
832b75ed | 49 | |
4d59bff9 GG |
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. | |
a86ec89e | 54 | #/dev/sdc -a -I 194 -W 4,45,55 -R 5 -m admin@example.com |
4d59bff9 | 55 | |
9ebc753d GG |
56 | # An ATA disk may appear as a SCSI device to the OS. If a SCSI to |
57 | # ATA Translation (SAT) layer is between the OS and the device then | |
58 | # this can be flagged with the '-d sat' option. This situation may | |
59 | # become common with SATA disks in SAS and FC environments. | |
60 | # /dev/sda -a -d sat | |
832b75ed GG |
61 | |
62 | # A very silent check. Only report SMART health status if it fails | |
63 | # But send an email in this case | |
a86ec89e | 64 | #/dev/sdc -H -C 0 -U 0 -m admin@example.com |
832b75ed GG |
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 | ||
cfbba5b9 GI |
83 | # Monitor 2 ATA disks connected to a 3ware 9000 controller which |
84 | # uses the 3w-9xxx driver (Linux, FreeBSD). Start long self-tests Tuesdays | |
ba59cff1 | 85 | # between 1-2 and 3-4 am. |
832b75ed GG |
86 | #/dev/twa0 -d 3ware,0 -a -s L/../../2/01 |
87 | #/dev/twa0 -d 3ware,1 -a -s L/../../2/03 | |
88 | ||
cfbba5b9 | 89 | # Monitor 2 SATA (not SAS) disks connected to a 3ware 9000 controller which |
ee38a438 | 90 | # uses the 3w-sas driver (Linux). Start long self-tests Tuesdays |
cfbba5b9 | 91 | # between 1-2 and 3-4 am. |
ee38a438 | 92 | # On FreeBSD /dev/tws0 should be used instead |
cfbba5b9 | 93 | #/dev/twl0 -d 3ware,0 -a -s L/../../2/01 |
ee38a438 | 94 | #/dev/twl0 -d 3ware,1 -a -s L/../../2/03 |
cfbba5b9 | 95 | |
ba59cff1 GG |
96 | # Same as above for Windows. Option '-d 3ware,N' is not necessary, |
97 | # disk (port) number is specified in device name. | |
98 | # NOTE: On Windows, DEVICESCAN works also for 3ware controllers. | |
99 | #/dev/hdc,0 -a -s L/../../2/01 | |
100 | #/dev/hdc,1 -a -s L/../../2/03 | |
101 | ||
4d59bff9 GG |
102 | # Monitor 3 ATA disks directly connected to a HighPoint RocketRAID. Start long |
103 | # self-tests Sundays between 1-2, 2-3, and 3-4 am. | |
104 | #/dev/sdd -d hpt,1/1 -a -s L/../../7/01 | |
105 | #/dev/sdd -d hpt,1/2 -a -s L/../../7/02 | |
106 | #/dev/sdd -d hpt,1/3 -a -s L/../../7/03 | |
107 | ||
108 | # Monitor 2 ATA disks connected to the same PMPort which connected to the | |
109 | # HighPoint RocketRAID. Start long self-tests Tuesdays between 1-2 and 3-4 am | |
110 | #/dev/sdd -d hpt,1/4/1 -a -s L/../../2/01 | |
111 | #/dev/sdd -d hpt,1/4/2 -a -s L/../../2/03 | |
112 | ||
832b75ed GG |
113 | # HERE IS A LIST OF DIRECTIVES FOR THIS CONFIGURATION FILE. |
114 | # PLEASE SEE THE smartd.conf MAN PAGE FOR DETAILS | |
115 | # | |
4d59bff9 | 116 | # -d TYPE Set the device type: ata, scsi, marvell, removable, 3ware,N, hpt,L/M/N |
832b75ed GG |
117 | # -T TYPE set the tolerance to one of: normal, permissive |
118 | # -o VAL Enable/disable automatic offline tests (on/off) | |
119 | # -S VAL Enable/disable attribute autosave (on/off) | |
120 | # -n MODE No check. MODE is one of: never, sleep, standby, idle | |
121 | # -H Monitor SMART Health Status, report if failed | |
122 | # -l TYPE Monitor SMART log. Type is one of: error, selftest | |
123 | # -f Monitor for failure of any 'Usage' Attributes | |
124 | # -m ADD Send warning email to ADD for -H, -l error, -l selftest, and -f | |
125 | # -M TYPE Modify email warning behavior (see man page) | |
126 | # -s REGE Start self-test when type/date matches regular expression (see man page) | |
127 | # -p Report changes in 'Prefailure' Normalized Attributes | |
128 | # -u Report changes in 'Usage' Normalized Attributes | |
129 | # -t Equivalent to -p and -u Directives | |
130 | # -r ID Also report Raw values of Attribute ID with -p, -u or -t | |
131 | # -R ID Track changes in Attribute ID Raw value with -p, -u or -t | |
132 | # -i ID Ignore Attribute ID for -f Directive | |
133 | # -I ID Ignore Attribute ID for -p, -u or -t Directive | |
134 | # -C ID Report if Current Pending Sector count non-zero | |
135 | # -U ID Report if Offline Uncorrectable count non-zero | |
4d59bff9 | 136 | # -W D,I,C Monitor Temperature D)ifference, I)nformal limit, C)ritical limit |
832b75ed GG |
137 | # -v N,ST Modifies labeling of Attribute N (see man page) |
138 | # -a Default: equivalent to -H -f -t -l error -l selftest -C 197 -U 198 | |
139 | # -F TYPE Use firmware bug workaround. Type is one of: none, samsung | |
140 | # -P TYPE Drive-specific presets: use, ignore, show, showall | |
141 | # # Comment: text after a hash sign is ignored | |
142 | # \ Line continuation character | |
143 | # Attribute ID is a decimal integer 1 <= ID <= 255 | |
144 | # except for -C and -U, where ID = 0 turns them off. | |
145 | # All but -d, -m and -M Directives are only implemented for ATA devices | |
146 | # | |
147 | # If the test string DEVICESCAN is the first uncommented text | |
a86ec89e | 148 | # then smartd will scan for devices. |
832b75ed | 149 | # DEVICESCAN may be followed by any desired Directives. |