[typo] s/controler/controller/g
[platform/upstream/multipath-tools.git] / multipath.conf.annotated
1 ##
2 ## This is a template multipath-tools configuration file
3 ## Uncomment the lines relevent to your environment
4 ##
5 #
6 ##
7 ## name  : defaults
8 ## desc  : multipath-tools default settings
9 ##
10 #defaults {
11 #       #
12 #       # name    : udev_dir
13 #       # desc    : directory where udev creates its device nodes
14 #       # default : /udev
15 #       #
16 #       udev_dir        /dev
17 #
18 #       #
19 #       # name    : polling_interval
20 #       # scope   : multipathd
21 #       # desc    : interval between two path checks in seconds
22 #       # default : 5
23 #       #
24 #       polling_interval 10
25 #
26 #       #
27 #       # name    : selector
28 #       # scope   : multipath
29 #       # desc    : the default path selector algorithm to use
30 #       #           these algorithms are offered by the kernel multipath target
31 #       # values  : "round-robin 0"
32 #       # default : "round-robin 0"
33 #       #
34 #       selector        "round-robin 0"
35 #
36 #       #
37 #       # name    : path_grouping_policy
38 #       # scope   : multipath
39 #       # desc    : the default path grouping policy to apply to unspecified
40 #       #           multipaths
41 #       # default : multibus
42 #       #
43 #       path_grouping_policy    multibus
44 #
45 #       #
46 #       # name    : getuid_callout
47 #       # scope   : multipath
48 #       # desc    : the default program and args to callout to obtain a unique 
49 #       #           path identifier. Absolute path required
50 #       # default : /sbin/scsi_id -g -u -s
51 #       #
52 #       getuid_callout  "/sbin/scsi_id -g -u -s /block/%n"
53 #
54 #       #
55 #       # name    : prio_callout
56 #       # scope   : multipath
57 #       # desc    : the default program and args to callout to obtain a path 
58 #       #           priority value. The ALUA bits in SPC-3 provide an
59 #       #           exploitable prio value for example. "none" is a valid value
60 #       # default : (null)
61 #       #
62 #       #prio_callout   "/bin/true"
63 #
64 #       #
65 #       # name    : path_checker
66 #       # scope   : multipath & multipathd
67 #       # desc    : the default method used to determine the paths' state
68 #       # values  : readsector0|tur|emc_clariion|hp_sw|directio
69 #       # default : readsector0
70 #       #
71 #       #path_checker   readsector0
72 #
73 #       #
74 #       # name    : rr_min_io
75 #       # scope   : multipath
76 #       # desc    : the number of IO to route to a path before switching
77 #       #           to the next in the same path group
78 #       # default : 1000
79 #       #
80 #       rr_min_io       100
81 #
82 #       #
83 #       # name    : rr_weight
84 #       # scope   : multipath
85 #       # desc    : if set to priorities the multipath configurator will assign
86 #       #           path weights as "path prio * rr_min_io"
87 #       # values  : priorities|uniform
88 #       # default : uniform
89 #       #
90 #       rr_weight       priorities
91 #
92 #       #
93 #       # name    : failback
94 #       # scope   : multipathd
95 #       # desc    : tell the daemon to manage path group failback, or not to.
96 #       #           0 means immediate failback, values >0 means deffered failback
97 #       #           expressed in seconds.
98 #       # values  : manual|immediate|n > 0
99 #       # default : immediate
100 #       #
101 #       failback        manual
102 #
103 #       #
104 #       # name    : no_path_retry
105 #       # scope   : multipath & multipathd
106 #       # desc    : tell the number of retries until disable queueing, or
107 #       #           "fail" means immediate failure (no queueing),
108 #       #           "queue" means never stop queueing
109 #       # values  : queue|fail|n (>0)
110 #       # default : (null)
111 #       #
112 #       #no_path_retry  queue
113 #
114 #       #
115 #       # name    : user_friendly_names
116 #       # scope   : multipath
117 #       # desc    : If set to "yes", using the bindings file
118 #       #           /var/lib/multipath/bindings to assign a persistent and
119 #       #           unique alias to the multipath, in the form of mpath<n>.
120 #       #           If set to "no" use the WWID as the alias. In either case
121 #       #           this be will be overriden by any specific aliases in this
122 #       #           file.
123 #       # values  : yes|no
124 #       # default : no
125 #       user_friendly_names no
126 #
127 #}
128 #       
129 ##
130 ## name    : blacklist
131 ## scope   : multipath & multipathd
132 ## desc    : list of device names to discard as not multipath candidates
133 ## default : cciss, fd, hd, md, dm, sr, scd, st, ram, raw, loop
134 ##
135 #blacklist {
136 #       wwid 26353900f02796769
137 #       devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
138 #       devnode "^hd[a-z][[0-9]*]"
139 #       devnode "^cciss!c[0-9]d[0-9]*[p[0-9]*]"
140 #       device {
141 #               vendor DEC.*
142 #               product MSA[15]00
143 #       }
144 #}
145 #
146 ##
147 ## name    : multipaths
148 ## scope   : multipath & multipathd
149 ## desc    : list of multipaths finest-grained settings
150 ##
151 #multipaths {
152 #       #
153 #       # name  : multipath
154 #       # scope : multipath & multipathd
155 #       # desc  : container for settings that apply to one specific multipath
156 #       #
157 #       multipath {
158 #               #
159 #               # name  : wwid
160 #               # scope : multipath & multipathd
161 #               # desc  : index of the container
162 #               #
163 #               wwid                    3600508b4000156d700012000000b0000
164 #
165 #               #
166 #               # name    : alias
167 #               # scope   : multipath
168 #               # desc    : symbolic name for the multipath
169 #               #
170 #               alias                   yellow
171 #
172 #               #
173 #               # name    : path_grouping_policy
174 #               # scope   : multipath
175 #               # desc    : path grouping policy to apply to this multipath
176 #               # values  : failover, multibus, group_by_serial
177 #               # default : failover
178 #               #
179 #               path_grouping_policy    multibus
180 #
181 #               #
182 #               # name    : path_checker
183 #               # scope   : multipathd
184 #               # desc    : path checking alorithm to use to check path state
185 #               # values  : readsector0, tur
186 #               # default : readsector0
187 #               #
188 #               # path_checker          readsector0
189 #               
190 #               #
191 #               # name    : path_selector
192 #               # desc    : the path selector algorithm to use for this mpath
193 #               #           these algo are offered by the kernel mpath target
194 #               # values  : "round-robin 0"
195 #               # default : "round-robin 0"
196 #               #
197 #               path_selector           "round-robin 0"
198 #
199 #               #
200 #               # name    : failback
201 #               # scope   : multipathd
202 #               # desc    : tell the daemon to manage path group failback, or not to.
203 #               #           0 means immediate failback, values >0 means deffered failback
204 #               #           expressed in seconds.
205 #               # values  : manual|immediate|n > 0
206 #               # default : immediate
207 #               #
208 #               failback                manual
209 #
210 #               #
211 #               # name    : no_path_retry
212 #               # scope   : multipath & multipathd
213 #               # desc    : tell the number of retries until disable queueing, or
214 #               #           "fail" means immediate failure (no queueing),
215 #               #           "queue" means never stop queueing
216 #               # values  : queue|fail|n (>0)
217 #               # default : (null)
218 #               #
219 #               #no_path_retry  queue
220 #
221 #               #
222 #               # name    : rr_min_io
223 #               # scope   : multipath
224 #               # desc    : the number of IO to route to a path before switching
225 #               #           to the next in the same path group
226 #               # default : 1000
227 #               #
228 #               rr_min_io       100
229 #       }
230 #       multipath {
231 #               wwid    1DEC_____321816758474
232 #               alias   red
233 #               rr_weight               priorities
234 #       }
235 #}
236 #
237 ##
238 ## name  : devices
239 ## scope : multipath & multipathd
240 ## desc  : list of per storage controller settings
241 ##        overrides default settings (device_maps block)
242 ##         overriden by per multipath settings (multipaths block)
243 ##
244 #devices {
245 #       #
246 #       # name  : device
247 #       # scope : multipath & multipathd
248 #       # desc  : settings for this specific storage controller
249 #       #
250 #       device {
251 #               #
252 #               # name  : vendor, product
253 #               # scope : multipath & multipathd
254 #               # desc  : index for the block
255 #               #
256 #               vendor                  "COMPAQ  "
257 #               product                 "HSV110 (C)COMPAQ"
258 #
259 #               #
260 #               # name    : path_grouping_policy
261 #               # scope   : multipath
262 #               # desc    : path grouping policy to apply to multipath hosted
263 #               #           by this storage controller
264 #               # values  : failover        = 1 path per priority group
265 #               #           multibus        = all valid paths in 1 priority
266 #               #                             group
267 #               #           group_by_serial = 1 priority group per detected
268 #               #                             serial number
269 #               # default : failover
270 #               #
271 #               path_grouping_policy    multibus
272 #
273 #               #
274 #               # name    : getuid_callout
275 #               # scope   : multipath
276 #               # desc    : the program and args to callout to obtain a unique 
277 #               #           path identifier. Absolute path required
278 #               # default : /sbin/scsi_id -g -u -s
279 #               #
280 #               getuid_callout          "/sbin/scsi_id -g -u -s /block/%n"
281 #
282 #               #
283 #               # name    : prio_callout
284 #               # scope   : multipath
285 #               # desc    : the program and args to callout to obtain a path 
286 #               #           weight. Weights are summed for each path group to
287 #               #           determine the next PG to use case of failure.
288 #               #           "none" is a valid value.
289 #               # default : no callout, all paths equals
290 #               #
291 #               prio_callout          "/sbin/mpath_prio_balance_units %d"
292 #
293 #               #
294 #               # name    : path_checker
295 #               # scope   : multipathd
296 #               # desc    : path checking alorithm to use to check path state
297 #               # values  : readsector0, tur
298 #               # default : readsector0
299 #               #
300 #               path_checker            readsector0
301 #
302 #               #
303 #               # name    : path_selector
304 #               # desc    : the path selector algorithm to use for this mpath
305 #               #           these algo are offered by the kernel mpath target
306 #               # values  : "round-robin 0"
307 #               # default : "round-robin 0"
308 #               #
309 #               path_selector           "round-robin 0"
310 #
311 #               #
312 #               # name    : failback
313 #               # scope   : multipathd
314 #               # desc    : tell the daemon to manage path group failback, or not to.
315 #               #           0 means immediate failback, values >0 means deffered failback
316 #               #           expressed in seconds.
317 #               # values  : manual|immediate|n > 0
318 #               # default : immediate
319 #               #
320 #               failback                30
321 #
322 #               #
323 #               # name    : rr_min_io
324 #               # scope   : multipath
325 #               # desc    : the number of IO to route to a path before switching
326 #               #           to the next in the same path group
327 #               # default : 1000
328 #               #
329 #               rr_min_io       100
330 #
331 #               #
332 #               # name    : product_blacklist
333 #               # scope   : multipath & multipathd
334 #               # desc    : product strings to blacklist for this vendor
335 #               # default : none
336 #               #
337 #               product_blacklist       LUN_Z
338 #       }
339 #       device {
340 #               vendor                  "COMPAQ  "
341 #               product                 "MSA1000         "
342 #               path_grouping_policy    multibus
343 #               path_checker            tur
344 #               rr_weight               priorities
345 #       }
346 #}