Difference between revisions of "Multipath"

From wikieduonline
Jump to navigation Jump to search
Line 14: Line 14:
 
* <code>/etc/multipath.conf</code><ref>https://www.thegeekdiary.com/understanding-the-dm-multipath-configuration-file-etc-multipath-conf/</ref><code>https://manpages.debian.org/unstable/multipath-tools/multipath.conf.5.en.html</code>
 
* <code>/etc/multipath.conf</code><ref>https://www.thegeekdiary.com/understanding-the-dm-multipath-configuration-file-etc-multipath-conf/</ref><code>https://manpages.debian.org/unstable/multipath-tools/multipath.conf.5.en.html</code>
 
* <code>/etc/multipath/wwids</code>
 
* <code>/etc/multipath/wwids</code>
 +
 +
== Configuration file: /etc/multipath.conf <ref>https://en.wikipedia.org/wiki/Linux_DM_Multipath</ref>==
 +
# System level defaults (''defaults''): User can override system level defaults.
 +
# Blacklisted devices (''blacklist''): User specifies the list of devices that is not to be under the control of DM-MPIO.
 +
# Blacklist exceptions (''blacklist_exceptions''): Specific devices to be treated as multipath devices even if listed in the blacklist.
 +
# Storage controller specific settings (''devices''): User specified configuration settings will be applied to devices with specified "Vendor" and "Product" information.
 +
# Device specific settings (''multipaths''): Fine tune the configuration settings for individual LUNs.
 +
 +
  
 
== Default multipath.conf configuration ==
 
== Default multipath.conf configuration ==

Revision as of 09:45, 9 December 2019

https://en.wikipedia.org/wiki/Linux_DM_Multipath


  • multipath -l
  • multipath -t
-t Display the currently used multipathd configuration
  • multipathd show config
  • Ubuntu: multipath-tools package
    • Binaries: multipath multipathd mpathpersist
  • RHEL: device-mapper-multipath package

Config files:

Configuration file: /etc/multipath.conf [2]

  1. System level defaults (defaults): User can override system level defaults.
  2. Blacklisted devices (blacklist): User specifies the list of devices that is not to be under the control of DM-MPIO.
  3. Blacklist exceptions (blacklist_exceptions): Specific devices to be treated as multipath devices even if listed in the blacklist.
  4. Storage controller specific settings (devices): User specified configuration settings will be applied to devices with specified "Vendor" and "Product" information.
  5. Device specific settings (multipaths): Fine tune the configuration settings for individual LUNs.


Default multipath.conf configuration

RHEL
cat /etc/multipath.conf | grep -v "#" | grep .
defaults {
    polling_interval            5
    no_path_retry               4
    user_friendly_names         no
    flush_on_last_del           yes
    fast_io_fail_tmo            5
    dev_loss_tmo                30
    max_fds                     4096
}
blacklist {
        protocol "(scsi:adt|scsi:sbp)"
}
devices {
    device {
        all_devs                yes
        no_path_retry           4
    }
}

See also

  • https://www.thegeekdiary.com/understanding-the-dm-multipath-configuration-file-etc-multipath-conf/
  • https://en.wikipedia.org/wiki/Linux_DM_Multipath
  • Advertising: