You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

642 lines
20 KiB

  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 : polling_interval
  13. # # scope : multipathd
  14. # # desc : interval between two path checks in seconds. For
  15. # # properly functioning paths, the interval between checks
  16. # # will gradually increase to (4 * polling_interval).
  17. # # values : n > 0
  18. # # default : 5
  19. # #
  20. # polling_interval 10
  21. #
  22. # #
  23. # # name : path_selector
  24. # # scope : multipath & multipathd
  25. # # desc : the default path selector algorithm to use
  26. # # these algorithms are offered by the kernel multipath target
  27. # # values : "round-robin 0" = Loop through every path in the path group,
  28. # # sending the same amount of IO to each.
  29. # # "queue-length 0" = Send the next bunch of IO down the path
  30. # # with the least amount of outstanding IO.
  31. # # "service-time 0" = Choose the path for the next bunch of IO
  32. # # based on the amount of outstanding IO to
  33. # # the path and its relative throughput.
  34. # # default : "service-time 0"
  35. # #
  36. # path_selector "service-time 0"
  37. #
  38. # #
  39. # # name : path_grouping_policy
  40. # # scope : multipath & multipathd
  41. # # desc : the default path grouping policy to apply to unspecified
  42. # # multipaths
  43. # # values : failover = 1 path per priority group
  44. # # multibus = all valid paths in 1 priority group
  45. # # group_by_serial = 1 priority group per detected serial
  46. # # number
  47. # # group_by_prio = 1 priority group per path priority
  48. # # value
  49. # # group_by_node_name = 1 priority group per target node name
  50. # # default : failover
  51. # #
  52. # path_grouping_policy multibus
  53. #
  54. # #
  55. # # name : uid_attribute
  56. # # scope : multipath & multipathd
  57. # # desc : the default udev attribute from which the path
  58. # # identifier should be generated.
  59. # # default : ID_SERIAL
  60. # #
  61. # uid_attribute "ID_SERIAL"
  62. #
  63. # #
  64. # # name : getuid_callout
  65. # # scope : multipath & multipathd
  66. # # desc : the default program and args to callout to obtain a unique
  67. # # path identifier. This parameter is deprecated.
  68. # # This parameter is deprecated, superseded by uid_attribute
  69. # # default : /lib/udev/scsi_id --whitelisted --device=/dev/%n
  70. # #
  71. # getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
  72. #
  73. # #
  74. # # name : prio
  75. # # scope : multipath & multipathd
  76. # # desc : the default function to call to obtain a path
  77. # # priority value. The ALUA bits in SPC-3 provide an
  78. # # exploitable prio value for example.
  79. # # default : const
  80. # #
  81. # prio "alua"
  82. #
  83. # #
  84. # # name : prio_args
  85. # # scope : multipath & multipathd
  86. # # desc : The arguments string passed to the prio function
  87. # # Most prio functions do not need arguments. The
  88. # # datacore prioritizer need one.
  89. # # default : (null)
  90. # #
  91. # prio_args "timeout=1000 preferredsds=foo"
  92. #
  93. # #
  94. # # name : features
  95. # # scope : multipath & multipathd
  96. # # desc : The default extra features of multipath devices.
  97. # # Syntax is "num[ feature_0 feature_1 ...]", where `num' is the
  98. # # number of features in the following (possibly empty) list of
  99. # # features.
  100. # # values : queue_if_no_path = Queue IO if no path is active; consider
  101. # # using the `no_path_retry' keyword instead.
  102. # # no_partitions = Disable automatic partitions generation via
  103. # # kpartx.
  104. # # default : "0"
  105. # #
  106. # features "0"
  107. # features "1 queue_if_no_path"
  108. # features "1 no_partitions"
  109. # features "2 queue_if_no_path no_partitions"
  110. #
  111. # #
  112. # # name : path_checker, checker
  113. # # scope : multipath & multipathd
  114. # # desc : the default method used to determine the paths' state
  115. # # values : readsector0|tur|emc_clariion|hp_sw|directio|rdac|cciss_tur
  116. # # default : directio
  117. # #
  118. # path_checker directio
  119. #
  120. # #
  121. # # name : rr_min_io
  122. # # scope : multipath & multipathd
  123. # # desc : the number of IO to route to a path before switching
  124. # # to the next in the same path group for the bio-based
  125. # # multipath implementation. This parameter is used for
  126. # # kernels version up to 2.6.31; newer kernel version
  127. # # use the parameter rr_min_io_rq
  128. # # default : 1000
  129. # #
  130. # rr_min_io 1000
  131. #
  132. # #
  133. # # name : rr_min_io_rq
  134. # # scope : multipath & multipathd
  135. # # desc : the number of IO to route to a path before switching
  136. # # to the next in the same path group for the request-based
  137. # # multipath implementation. This parameter is used for
  138. # # kernels versions later than 2.6.31.
  139. # # default : 1
  140. # #
  141. # rr_min_io_rq 1
  142. #
  143. # #
  144. # # name : flush_on_last_del
  145. # # scope : multipathd
  146. # # desc : If set to "yes", multipathd will disable queueing when the
  147. # # last path to a device has been deleted.
  148. # # values : yes|no
  149. # # default : no
  150. # #
  151. # flush_on_last_del yes
  152. #
  153. # #
  154. # # name : max_fds
  155. # # scope : multipathd
  156. # # desc : Sets the maximum number of open file descriptors for the
  157. # # multipathd process.
  158. # # values : max|n > 0
  159. # # default : None
  160. # #
  161. # max_fds 8192
  162. #
  163. # #
  164. # # name : rr_weight
  165. # # scope : multipath & multipathd
  166. # # desc : if set to priorities the multipath configurator will assign
  167. # # path weights as "path prio * rr_min_io"
  168. # # values : priorities|uniform
  169. # # default : uniform
  170. # #
  171. # rr_weight priorities
  172. #
  173. # #
  174. # # name : failback
  175. # # scope : multipathd
  176. # # desc : tell the daemon to manage path group failback, or not to.
  177. # # 0 means immediate failback, values >0 means deffered
  178. # # failback expressed in seconds.
  179. # # values : manual|immediate|n > 0
  180. # # default : manual
  181. # #
  182. # failback immediate
  183. #
  184. # #
  185. # # name : no_path_retry
  186. # # scope : multipath & multipathd
  187. # # desc : tell the number of retries until disable queueing, or
  188. # # "fail" means immediate failure (no queueing),
  189. # # "queue" means never stop queueing
  190. # # values : queue|fail|n (>0)
  191. # # default : (null)
  192. # #
  193. # no_path_retry queue
  194. #
  195. # #
  196. # # name : queue_without_daemon
  197. # # scope : multipathd
  198. # # desc : If set to "no", multipathd will disable queueing for all
  199. # # devices when it is shut down.
  200. # # values : yes|no
  201. # # default : yes
  202. # queue_without_daemon no
  203. #
  204. # #
  205. # # name : user_friendly_names
  206. # # scope : multipath & multipathd
  207. # # desc : If set to "yes", using the bindings file
  208. # # /etc/multipath/bindings to assign a persistent and
  209. # # unique alias to the multipath, in the form of mpath<n>.
  210. # # If set to "no" use the WWID as the alias. In either case
  211. # # this be will be overriden by any specific aliases in this
  212. # # file.
  213. # # values : yes|no
  214. # # default : no
  215. # user_friendly_names no
  216. #
  217. # #
  218. # # name : mode
  219. # # scope : multipath & multipathd
  220. # # desc : The mode to use for the multipath device nodes, in octal.
  221. # # values : 0000 - 0777
  222. # # default : determined by the process
  223. # mode 0644
  224. #
  225. # #
  226. # # name : uid
  227. # # scope : multipath & multipathd
  228. # # desc : The user id to use for the multipath device nodes. You
  229. # # may use either the numeric or symbolic uid
  230. # # values : <user_id>
  231. # # default : determined by the process
  232. # uid 0
  233. #
  234. # #
  235. # # name : gid
  236. # # scope : multipath & multipathd
  237. # # desc : The group id to user for the multipath device nodes. You
  238. # # may use either the numeric or symbolic gid
  239. # # values : <group_id>
  240. # # default : determined by the process
  241. # gid disk
  242. #
  243. # #
  244. # # name : checker_timeout
  245. # # scope : multipath & multipathd
  246. # # desc : The timeout to use for path checkers that issue scsi
  247. # # commands with an explicit timeout, in seconds.
  248. # # values : n > 0
  249. # # default : taken from /sys/block/sd<x>/device/timeout
  250. # checker_timeout 60
  251. #
  252. # #
  253. # # name : fast_io_fail_tmo
  254. # # scope : multipath & multipathd
  255. # # desc : The number of seconds the scsi layer will wait after a
  256. # # problem has been detected on a FC remote port before failing
  257. # # IO to devices on that remote port.
  258. # # values : off | n >= 0 (smaller than dev_loss_tmo)
  259. # # default : determined by the OS
  260. # fast_io_fail_tmo 5
  261. #
  262. # #
  263. # # name : dev_loss_tmo
  264. # # scope : multipath & multipathd
  265. # # desc : The number of seconds the scsi layer will wait after a
  266. # # problem has been detected on a FC remote port before
  267. # # removing it from the system.
  268. # # values : infinity | n > 0
  269. # # default : determined by the OS
  270. # dev_loss_tmo 600
  271. #
  272. # # name : bindings_file
  273. # # scope : multipath
  274. # # desc : The location of the bindings file that is used with
  275. # # the user_friendly_names option.
  276. # # values : <full_pathname>
  277. # # default : "/var/lib/multipath/bindings"
  278. # bindings_file "/etc/multipath/bindings"
  279. #
  280. # # name : wwids_file
  281. # # scope : multipath
  282. # # desc : The location of the wwids file multipath uses to
  283. # # keep track of the created multipath devices.
  284. # # values : <full_pathname>
  285. # # default : "/var/lib/multipath/wwids"
  286. # wwids_file "/etc/multipath/wwids"
  287. #
  288. # # name : reservation_key
  289. # # scope : multipath
  290. # # desc : Service action reservation key used by mpathpersist.
  291. # # values : <key>
  292. # # default : (null)
  293. # reservation_key "mpathkey"
  294. #
  295. #}
  296. #
  297. ##
  298. ## name : blacklist
  299. ## scope : multipath & multipathd
  300. ## desc : list of device names to discard as not multipath candidates
  301. ## Devices can be identified by their device node name "devnode",
  302. ## their WWID "wwid", or their vender and product strings
  303. ## "device"
  304. ## default : fd, hd, md, dm, sr, scd, st, ram, raw, loop, dcssblk
  305. ##
  306. #blacklist {
  307. # wwid 26353900f02796769
  308. # devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
  309. # devnode "^hd[a-z]"
  310. # devnode "^dcssblk[0-9]*"
  311. # device {
  312. # vendor DEC.*
  313. # product MSA[15]00
  314. # }
  315. #}
  316. ##
  317. ## name : blacklist_exceptions
  318. ## scope : multipath & multipathd
  319. ## desc : list of device names to be treated as multipath candidates
  320. ## even if they are on the blacklist.
  321. ## Note: blacklist exceptions are only valid in the same class.
  322. ## It is not possible to blacklist devices using the devnode keyword
  323. ## and to exclude some devices of them using the wwid keyword.
  324. ## default : -
  325. ##
  326. #blacklist_exceptions {
  327. # devnode "^dasd[c-d]+[0-9]*"
  328. # wwid "IBM.75000000092461.4d00.34"
  329. # wwid "IBM.75000000092461.4d00.35"
  330. # wwid "IBM.75000000092461.4d00.36"
  331. #}
  332. #
  333. ##
  334. ## name : multipaths
  335. ## scope : multipath & multipathd
  336. ## desc : list of multipaths finest-grained settings
  337. ##
  338. #multipaths {
  339. # #
  340. # # name : multipath
  341. # # scope : multipath & multipathd
  342. # # desc : container for settings that apply to one specific multipath
  343. # #
  344. # multipath {
  345. # #
  346. # # name : wwid
  347. # # scope : multipath & multipathd
  348. # # desc : index of the container
  349. # #
  350. # wwid 3600508b4000156d700012000000b0000
  351. #
  352. # #
  353. # # name : alias
  354. # # scope : multipath & multipathd
  355. # # desc : symbolic name for the multipath. If you are using
  356. # # user_friendly_names, do not set the alias to
  357. # # mpath<n>. This may conflict with an automatically
  358. # # assigned user friendly name, and give you
  359. # # incorrect device node names.
  360. # #
  361. # alias yellow
  362. #
  363. # #
  364. # # name : path_grouping_policy
  365. # # scope : multipath & multipathd
  366. # # desc : path grouping policy to apply to this multipath
  367. # # values : failover, multibus, group_by_serial
  368. # # values : failover = 1 path per priority group
  369. # # multibus = all valid paths in 1 priority
  370. # # group
  371. # # group_by_serial = 1 priority group per detected
  372. # # serial number
  373. # # group_by_prio = 1 priority group per path
  374. # # priority value
  375. # # group_by_node_name = 1 priority group per target
  376. # # node name
  377. # #
  378. # path_grouping_policy failover
  379. #
  380. # #
  381. # # name : path_selector
  382. # # scope : multipath & multipathd
  383. # # desc : the path selector algorithm to use for this mpath
  384. # # these algo are offered by the kernel mpath target
  385. # # values : "round-robin 0"
  386. # #
  387. # path_selector "round-robin 0"
  388. #
  389. # #
  390. # # name : failback
  391. # # scope : multipathd
  392. # # desc : tell the daemon to manage path group failback, or
  393. # # not to. 0 means immediate failback, values >0 means
  394. # # deffered failback expressed in seconds.
  395. # # values : manual|immediate|n > 0
  396. # #
  397. # failback manual
  398. #
  399. # #
  400. # # name : rr_weight
  401. # # scope : multipath & multipathd
  402. # # desc : if set to priorities the multipath configurator will
  403. # # assign path weights as "path prio * rr_min_io"
  404. # # values : priorities|uniform
  405. # #
  406. # rr_weight priorities
  407. #
  408. # #
  409. # # name : no_path_retry
  410. # # scope : multipath & multipathd
  411. # # desc : tell the number of retries until disable queueing,
  412. # # or "fail" means immediate failure (no queueing),
  413. # # "queue" means never stop queueing
  414. # # values : queue|fail|n (>0)
  415. # #
  416. # no_path_retry queue
  417. #
  418. # #
  419. # # name : rr_min_io
  420. # # scope : multipath & multipathd
  421. # # desc : the number of IO to route to a path before switching
  422. # # to the next in the same path group
  423. # #
  424. # rr_min_io 100
  425. #
  426. # #
  427. # # name : flush_on_last_del
  428. # # scope : multipathd
  429. # # desc : If set to "yes", multipathd will disable queueing
  430. # # when the last path to a device has been deleted.
  431. # # values : yes|no
  432. # # default : no
  433. # #
  434. # flush_on_last_del yes
  435. #
  436. # #
  437. # # name : mode
  438. # # scope : multipath & multipathd
  439. # # desc : The mode to use for the multipath device nodes, in
  440. # # octal.
  441. # # values : 0000 - 0777
  442. # # default : determined by the process
  443. # mode 0644
  444. #
  445. # #
  446. # # name : uid
  447. # # scope : multipath & multipathd
  448. # # desc : The user id to use for the multipath device nodes.
  449. # # You may use either the numeric or symbolic uid
  450. # # values : <user_id>
  451. # # default : determined by the process
  452. # uid 0
  453. #
  454. # #
  455. # # name : gid
  456. # # scope : multipath & multipathd
  457. # # desc : The group id to user for the multipath device nodes.
  458. # # You may use either the numeric or symbolic gid
  459. # # values : <group_id>
  460. # # default : determined by the process
  461. # gid 0
  462. #
  463. # }
  464. # multipath {
  465. # wwid 1DEC_____321816758474
  466. # alias red
  467. # rr_weight priorities
  468. # }
  469. #}
  470. #
  471. ##
  472. ## name : devices
  473. ## scope : multipath & multipathd
  474. ## desc : list of per storage controller settings
  475. ## overrides default settings (device_maps block)
  476. ## overriden by per multipath settings (multipaths block)
  477. ##
  478. #devices {
  479. # #
  480. # # name : device
  481. # # scope : multipath & multipathd
  482. # # desc : settings for this specific storage controller
  483. # #
  484. # device {
  485. # #
  486. # # name : vendor, product
  487. # # scope : multipath & multipathd
  488. # # desc : index for the block
  489. # #
  490. # vendor "COMPAQ "
  491. # product "HSV110 (C)COMPAQ"
  492. #
  493. # #
  494. # # name : path_grouping_policy
  495. # # scope : multipath & multipathd
  496. # # desc : path grouping policy to apply to this multipath
  497. # # values : failover, multibus, group_by_serial
  498. # # values : failover = 1 path per priority group
  499. # # multibus = all valid paths in 1 priority
  500. # # group
  501. # # group_by_serial = 1 priority group per detected
  502. # # serial number
  503. # # group_by_prio = 1 priority group per path
  504. # # priority value
  505. # # group_by_node_name = 1 priority group per target
  506. # # node name
  507. # #
  508. # path_grouping_policy failover
  509. #
  510. # #
  511. # # name : getuid_callout
  512. # # scope : multipath & multipathd
  513. # # desc : the program and args to callout to obtain a unique
  514. # # path identifier. Absolute path required
  515. # #
  516. # getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
  517. #
  518. # #
  519. # # name : prio
  520. # # scope : multipath & multipathd
  521. # # desc : the function to call to obtain a path
  522. # # weight. Weights are summed for each path group to
  523. # # determine the next PG to use case of failure.
  524. # # default : no callout, all paths equals
  525. # #
  526. # prio "hp_sw"
  527. #
  528. # #
  529. # # name : prio_args
  530. # # scope : multipath & multipathd
  531. # # desc : The arguments string passed to the prio function
  532. # # Most prio functions do not need arguments. The
  533. # # datacore prioritizer need one.
  534. # # default : (null)
  535. # #
  536. # prio_args "timeout=1000 preferredsds=foo"
  537. #
  538. # # name : path_checker, checker
  539. # # scope : multipathd & multipathd
  540. # # desc : path checking algorithm to use to check path state
  541. # # values : readsector0|tur|emc_clariion|hp_sw|directio|rdac|
  542. # # cciss_tur
  543. # #
  544. # path_checker directio
  545. #
  546. # # as already described
  547. # path_selector "service-time 0"
  548. #
  549. # # as already described
  550. # features "0"
  551. #
  552. # #
  553. # # name : hardware_handler
  554. # # scope : multipath & multipathd
  555. # # desc : If set, it specifies a module that will be used to
  556. # # perform hardware specific actions when switching
  557. # # path groups or handling IO errors
  558. # # values : "0"|"1 emc"
  559. # # default : "0"
  560. # #
  561. # hardware_handler "1 emc"
  562. #
  563. # #
  564. # # name : failback
  565. # # scope : multipathd
  566. # # desc : tell the daemon to manage path group failback, or
  567. # # not to. 0 means immediate failback, values >0 means
  568. # # deffered failback expressed in seconds.
  569. # # values : manual|immediate|n > 0
  570. # #
  571. # failback 30
  572. #
  573. # #
  574. # # name : rr_weight
  575. # # scope : multipath & multipathd
  576. # # desc : if set to priorities the multipath configurator will
  577. # # assign path weights as "path prio * rr_min_io"
  578. # # values : priorities|uniform
  579. # #
  580. # rr_weight priorities
  581. #
  582. # #
  583. # # name : no_path_retry
  584. # # scope : multipath & multipathd
  585. # # desc : tell the number of retries until disable queueing,
  586. # # or "fail" means immediate failure (no queueing),
  587. # # "queue" means never stop queueing
  588. # # values : queue|fail|n (>0)
  589. # #
  590. # no_path_retry queue
  591. #
  592. # #
  593. # # name : rr_min_io
  594. # # scope : multipath & multipathd
  595. # # desc : the number of IO to route to a path before switching
  596. # # to the next in the same path group
  597. # #
  598. # rr_min_io 100
  599. #
  600. # #
  601. # # name : flush_on_last_del
  602. # # scope : multipathd
  603. # # desc : If set to "yes", multipathd will disable queueing
  604. # # when the last path to a device has been deleted.
  605. # # values : yes|no
  606. # #
  607. # flush_on_last_del yes
  608. #
  609. # #
  610. # # name : product_blacklist
  611. # # scope : multipath & multipathd
  612. # # desc : product strings to blacklist for this vendor
  613. # #
  614. # product_blacklist LUN_Z
  615. #
  616. # #
  617. # # name : fast_io_fail_tmo
  618. # # scope : multipath & multipathd
  619. # # desc : The number of seconds the scsi layer will wait after
  620. # # a problem has been detected on a FC remote port
  621. # # before failing IO to devices on that remote port.
  622. # # values : off | n >= 0 (smaller than dev_loss_tmo)
  623. # fast_io_fail_tmo 5
  624. #
  625. # #
  626. # # name : dev_loss_tmo
  627. # # scope : multipath & multipathd
  628. # # desc : The number of seconds the scsi layer will wait after
  629. # # a problem has been detected on a FC remote port
  630. # # before removing it from the system.
  631. # # values : n > 0
  632. # dev_loss_tmo 600
  633. # }
  634. # device {
  635. # vendor "COMPAQ "
  636. # product "MSA1000 "
  637. # path_grouping_policy multibus
  638. # path_checker tur
  639. # rr_weight priorities
  640. # }
  641. #}