]> git.proxmox.com Git - mirror_smartmontools-debian.git/blame - debian/patches/61_cciss-doc.patch
Merge commit 'upstream/5.39.1'
[mirror_smartmontools-debian.git] / debian / patches / 61_cciss-doc.patch
CommitLineData
2d3e4b94
GG
1Author: Matt Taggart <taggart@debian.org>
2Subject: Update cciss examples/docs
3
4Here is a patch that adds examples for cciss to the default smartd.conf
5file and adds some more cciss documentation to the manpages. I think this
6patch gets things to parity with the 3ware documentation with a couple
7minor exceptions
8
6052436d
GI
9--- a/smartd.8.in
10+++ b/smartd.8.in
ed382e88 11@@ -546,10 +546,11 @@ Section below!
2d3e4b94
GG
12 .B # This is an example smartd startup config file
13 .B # /usr/local/etc/smartd.conf for monitoring three
14 .B # ATA disks, three SCSI disks, six ATA disks
15-.B # behind two 3ware controllers, three SATA disks
6052436d
GI
16-.B # directly connected to the HighPoint Rocket-
17-.B # RAID controller, two SATA disks connected to
18-.B # the HighPoint RocketRAID controller via a pmport
2d3e4b94 19+.B # behind two 3ware controllers, two disks on a cciss
6052436d
GI
20+.B # controller, three SATA disks directly connected
21+.B # to the HighPoint Rocket-RAID controller,
22+.B # two SATA disks connected to the HighPoint
23+.B # RocketRAID controller via a pmport
24 .B # device, four SATA disks connected to an Areca
25 .B # RAID controller, and one SATA disk.
2d3e4b94 26 .B #
ed382e88 27@@ -611,6 +612,13 @@ Section below!
2d3e4b94
GG
28 .B \ \ /dev/twa0 -d 3ware,1 -a -s L/../../7/02
29 .B #
30 .nf
31+.B # Monitor 2 disks connected to the first HP SmartArray controller which
32+.B # uses the cciss driver. Start long tests on Sunday nights and short
33+.B # self-tests every night and send errors to root
34+.B \ \ /dev/cciss/c0d0 -d cciss,0 -a -s (L/../../7/02|S/../.././02) -m root
35+.B \ \ /dev/cciss/c0d0 -d cciss,1 -a -s (L/../../7/03|S/../.././03) -m root
36+.B #
37+.nf
6052436d 38 .B # Three SATA disks on a HighPoint RocketRAID controller.
2d3e4b94
GG
39 .B # Start short self-tests daily between 1-2, 2-3, and
40 .B # 3-4 am.
ed382e88 41@@ -716,6 +724,10 @@ these disks. Areca firmware version 1.4
26ec4bce
GI
42 smartmontools must be used; Please see the \fBsmartctl\fP(8) man page
43 for further details.
2d3e4b94
GG
44
45+.B If a cciss controller is used
46+then the corresponding block device (/dev/cciss/c?d?) must be listed,
47+along with the \'\-d cciss,N\' Directive (see below).
48+
49 .TP
50 .B \-d TYPE
51 Specifies the type of the device. This Directive may be used multiple
ed382e88 52@@ -1247,9 +1259,9 @@ is set to the argument of \-M exec, if p
2d3e4b94
GG
53 .IP \fBSMARTD_DEVICE\fP 4
54 is set to the device path (examples: /dev/hda, /dev/sdb).
55 .IP \fBSMARTD_DEVICETYPE\fP 4
6052436d 56-is set to the device type (possible values: ata, scsi, 3ware,N,
2d3e4b94 57+is set to the device type (possible values: ata, scsi, 3ware,N, cciss,N,
6052436d
GI
58 areca,N, hpt,L/M/N). Here N=0,...,127 denotes the ATA disk behind a
59-3ware RAID controller and L/M/N denotes the SATA disk behind a
60+3ware or cciss RAID controller and L/M/N denotes the SATA disk behind a
61 HighPoint RocketRAID controller.
2d3e4b94
GG
62 .IP \fBSMARTD_DEVICESTRING\fP 4
63 is set to the device description. For SMARTD_DEVICETYPE of ata or
6052436d
GI
64--- a/smartd.conf
65+++ b/smartd.conf
ed382e88 66@@ -86,6 +86,12 @@ DEVICESCAN -n standby -m root -M exec /u
2d3e4b94
GG
67 # NOTE: On Windows, DEVICESCAN works also for 3ware controllers.
68 #/dev/hdc,0 -a -s L/../../2/01
69 #/dev/hdc,1 -a -s L/../../2/03
70+#
71+# Monitor 2 disks connected to the first HP SmartArray controller which
72+# uses the cciss driver. Start long tests on Sunday nights and short
73+# self-tests every night and send errors to root
74+#/dev/cciss/c0d0 -d cciss,0 -a -s (L/../../7/02|S/../.././02) -m root
75+#/dev/cciss/c0d0 -d cciss,1 -a -s (L/../../7/03|S/../.././03) -m root
76
77 # Monitor 3 ATA disks directly connected to a HighPoint RocketRAID. Start long
78 # self-tests Sundays between 1-2, 2-3, and 3-4 am.
6052436d
GI
79--- a/smartd.conf.5.in
80+++ b/smartd.conf.5.in
26ec4bce 81@@ -117,10 +117,11 @@ Section below!
2d3e4b94
GG
82 .B # This is an example smartd startup config file
83 .B # /usr/local/etc/smartd.conf for monitoring three
84 .B # ATA disks, three SCSI disks, six ATA disks
85-.B # behind two 3ware controllers, three SATA disks
6052436d
GI
86-.B # directly connected to the HighPoint Rocket-
87-.B # RAID controller, two SATA disks connected to
88-.B # the HighPoint RocketRAID controller via a pmport
2d3e4b94
GG
89+.B # behind two 3ware controllers, two disks on a cciss
90+.B # controller, three SATA disks directly connected
6052436d
GI
91+.B # to the HighPoint Rocket-RAID controller,
92+.B # two SATA disks connected to the HighPoint
93+.B # RocketRAID controller via a pmport
94 .B # device, four SATA disks connected to an Areca
95 .B # RAID controller, and one SATA disk.
2d3e4b94 96 .B #
26ec4bce 97@@ -182,6 +183,13 @@ Section below!
2d3e4b94
GG
98 .B \ \ /dev/twa0 -d 3ware,1 -a -s L/../../7/02
99 .B #
100 .nf
101+.B # Monitor 2 disks connected to the first HP SmartArray controller which
102+.B # uses the cciss driver. Start long tests on Sunday nights and short
103+.B # self-tests every night and send errors to root
104+.B \ \ /dev/cciss/c0d0 -d cciss,0 -a -s (L/../../7/02|S/../.././02) -m root
105+.B \ \ /dev/cciss/c0d0 -d cciss,1 -a -s (L/../../7/03|S/../.././03) -m root
106+.B #
107+.nf
6052436d 108 .B # Three SATA disks on a HighPoint RocketRAID controller.
2d3e4b94
GG
109 .B # Start short self-tests daily between 1-2, 2-3, and
110 .B # 3-4 am.
26ec4bce
GI
111@@ -287,6 +295,9 @@ these disks. Areca firmware version 1.4
112 smartmontools must be used; Please see the \fBsmartctl\fP(8) man page
113 for further details.
2d3e4b94
GG
114
115+.B If a cciss controller is used
116+then the corresponding block device (/dev/cciss/c?d?) must be listed,
117+along with the \'\-d cciss,N\' Directive (see below).
118 .TP
119 .B \-d TYPE
120 Specifies the type of the device. This Directive may be used multiple
26ec4bce 121@@ -818,9 +829,9 @@ is set to the argument of \-M exec, if p
2d3e4b94
GG
122 .IP \fBSMARTD_DEVICE\fP 4
123 is set to the device path (examples: /dev/hda, /dev/sdb).
124 .IP \fBSMARTD_DEVICETYPE\fP 4
6052436d 125-is set to the device type (possible values: ata, scsi, 3ware,N,
2d3e4b94 126+is set to the device type (possible values: ata, scsi, 3ware,N, cciss,N,
6052436d
GI
127 areca,N, hpt,L/M/N). Here N=0,...,127 denotes the ATA disk behind a
128-3ware RAID controller and L/M/N denotes the SATA disk behind a
129+3ware or cciss RAID controller and L/M/N denotes the SATA disk behind a
130 HighPoint RocketRAID controller.
2d3e4b94
GG
131 .IP \fBSMARTD_DEVICESTRING\fP 4
132 is set to the device description. For SMARTD_DEVICETYPE of ata or