Guest User

multipath.conf

a guest
Nov 11th, 2017
16
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # http://linux-itpro.blogspot.com.ar/2015/04/instalacion-de-proxmox-con-multipath-y.html
  2. # https://pve.proxmox.com/wiki/ISCSI_Multipath#Dell
  3. # http://www.dell.com/downloads/global/products/pvaul/en/powervault-md32x0-md32x0i-linux-dm-installation-en.pdf
  4. # http://www.dell.com/downloads/global/products/pvaul/en/powervault-md3200i-performance-tuning-white-paper.pdf
  5. defaults {
  6. user_friendly_names yes
  7.  
  8. # Specify the maximum number of file descriptors that
  9. # can be opened by multipath and multipathd. This is
  10. # equivalent to ulimit -n. A value
  11. # of max will set this to the system limit from
  12. # /proc/sys/fs/nr_open. If this is not set, the maximum
  13. # number of open fds is taken from the
  14. # calling process. It is usually 1024. To be safe, this
  15. # should be set to the maximum number of paths plus 32,
  16. # if that number is greated than 1024
  17. max_fds 8192
  18.  
  19. # queue_without_daemon thout_daemon
  20. # If set to no , when multipathd stops, queueing will be
  21. # turned off for all devices. This is useful for
  22. # devices that set no_path_retry. If a machine is shut
  23. # down while all paths to a device are down, it is pos‐
  24. # sible to hang waiting for IO to return from the device
  25. # after multipathd has been stopped. Without multipathd
  26. # running, access to the paths cannot be restored, and
  27. # the kernel cannot be told to stop queueing IO. Setting
  28. # queue_without_daemon to no , avoids this problem.
  29. #Default is yes
  30. queue_without_daemon no
  31.  
  32. # interval between two path checks in seconds. For prop‐
  33. # erly functioning paths, the interval between checks
  34. # will gradually increase to max_polling_interval. This
  35. # value will be overridden by the WatchdogSec setting in
  36. # the multipathd.service definition if systemd is used.
  37. # Default is 5
  38. polling_interval 5 # era 2
  39.  
  40. path_selector "round-robin 0"
  41. path_grouping_policy multibus
  42.  
  43. # porque deprecated
  44. # getuid_callout "/lib/udev/scsi_id -g -u -d /dev/%n"
  45.  
  46. # The number of IO to route to a path before switching
  47. # to the next in the same path group. This is only for
  48. # BIO based multipath. Default is 1000
  49. rr_min_io 100
  50.  
  51. # failback Tell multipathd how to manage path group failback.
  52. # immediate Immediately failback to the highest prior‐
  53. # ity pathgroup that contains active paths.
  54. # Default value is manual.
  55. failback immediate
  56.  
  57. # no_path_retry Specify the number of retries until disable queueing
  58. # or fail for immediate failure (no queueing), queue for
  59. # never stop queueing. If unset no queueing is
  60. # attempted. Default is unset.
  61. no_path_retry queue
  62. }
  63.  
  64.  
  65. blacklist {
  66. wwid .* # Blacklistamos todo para que no se armen paths fuera d ctrl
  67. # devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
  68. # devnode "^hd[a-z][[0-9]*]"
  69. }
  70.  
  71. blacklist_exceptions {
  72. # excepciones de blacklist (discosu/bloques en el storage)
  73. wwid "3600a098000a5bfe50000029a582e9dc4"
  74. wwid "3600a098000a5bfe50000029d582e9e10"
  75. }
  76.  
  77.  
  78. devices {
  79. device {
  80. vendor "DELL"
  81. product "MD38xxf"
  82.  
  83. # path_grouping_policy
  84. # The default path grouping policy to apply to unspeci‐
  85. # fied multipaths. Possible values a
  86. # group_by_prio
  87. # 1 priority group per priority value. Pri‐
  88. # orities are determined by callout programs
  89. # specified as a global, per-controller or
  90. # per-multipath option in the configuration
  91. # file.
  92. path_grouping_policy group_by_prio
  93.  
  94.  
  95. # The name of the path priority routine. The specified
  96. # routine should return a numeric value specifying the
  97. # relative priority of this path. Higher number have a
  98. # higher priority. none is a valid value. Currently the
  99. # following path priority routines are implemented:
  100. # rdac Generate the path priority for LSI/Enge‐
  101. # nio/NetApp E-Series RDAC controller
  102. prio rdac
  103.  
  104. # ver más arriba
  105. # dejo comentado porque multipath -v2 no reconoce el término
  106. # polling_interval 5
  107.  
  108. # The default method used to determine the paths state.
  109. # Possible values are
  110. # rdac Check the path state for LSI/Enge‐
  111. # nio/NetApp E-Series RDAC storage con‐
  112. # troller
  113. path_checker rdac
  114.  
  115. # ver arriba
  116. path_selector "round-robin 0"
  117.  
  118. # hardware_handler (Optional) The hardware handler to use
  119. # for this device
  120. # type. The following hardware handler are implemented:
  121. # 1 rdac Hardware handler for LSI/Engenio/NetApp E-
  122. # Series RDAC storage controller.
  123. hardware_handler "1 rdac"
  124.  
  125. # ver más arriba
  126. failback immediate
  127.  
  128. # Specify any device-mapper features to be used. Syntax
  129. # is num list where num is the number of features in
  130. # list.
  131. features "2 pg_init_retries 50"
  132.  
  133. # Specify the number of retries until disable queueing,
  134. # or fail for immediate failure (no queueing), queue for
  135. # never stop queueing. If unset no queueing is
  136. # attempted. Default is unset.
  137. no_path_retry 30
  138.  
  139. # The number of IO to route to a path before switching
  140. # to the next in the same path group. This is only for
  141. # BIO based multipath. Default is 1000
  142. rr_min_io 100
  143. }
  144. }
  145. multipaths {
  146. multipath {
  147. wwid "3600a098000a5bfe50000029d582e9e10"
  148. alias DiscoTest2
  149. }
  150. multipath {
  151. wwid "3600a098000a5bfe50000029a582e9dc4"
  152. alias DiscoTest
  153. }
  154. }
  155. # End Dell MD Modification
RAW Paste Data