multipath.conf

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了multipath.conf相关的知识,希望对你有一定的参考价值。

# This is a basic configuration file with some examples, for device mapper
# multipath.
# For a complete list of the default configuration values, see
# /usr/share/doc/device-mapper-multipath-0.4.7/multipath.conf.defaults
# For a list of configuration options with descriptions, see
# /usr/share/doc/device-mapper-multipath-0.4.7/multipath.conf.annotated


# Blacklist all devices by default. Remove this to enable multipathing
# on the default devices.
blacklist {
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
devnode "^hd[a-z]"
devnode "^sda$"
devnode "^sda[0-9]$"
devnode "^asm/*"
devnode "ofsctl"
devnode "^eql"
}


## By default, devices with vendor = "IBM" and product = "S/390.*" are
## blacklisted. To enable mulitpathing on these devies, uncomment the
## following lines.

## Use user friendly names, instead of using WWIDs as names.
defaults {
user_friendly_names yes
polling_interval 30
}
##
## Here is an example of how to configure some standard options.
##
#

##
## The wwid line in the following blacklist section is shown as an example
## of how to blacklist devices by wwid. The 2 devnode lines are the
## compiled in default blacklist. If you want to blacklist entire types
## of devices, such as all scsi devices, you should use a devnode line.
## However, if you want to blacklist specific devices, you should use
## a wwid line. Since there is no guarantee that a specific device will
## not change names on reboot (from /dev/sda to /dev/sdb for example)
## devnode lines are not recommended for blacklisting specific devices.
##
multipaths {

multipath {
wwid 36861a6dd559848d7367865e873453e79
alias dsg1
}
multipath {
wwid 36861a6dd559858d0367805e87345eeec
alias crsdg1
}
multipath {
wwid 36861a6dd559888cb3678a5e77345ae87
alias crsdg2
}
multipath {
wwid 36861a6dd5598a8da3678c5e87345cef2
alias dsg2
}
multipath {
wwid 36861a6dd5598b8de3678f5e87345dedf
alias datadg1
}
multipath {
wwid 36861a6dd5598c8d5367835e873458e1f
alias dsg3
}
multipath {
wwid 36861a6dd5598d8cd3678d5e773451e4e
alias crsdg3
}
multipath {
wwid 36861a6dd5598d8d8367895e87345de7e
alias dsg4
}
multipath {
wwid 36861a6dd5598e8e0367825e97345eefa
alias datadg2
}
}

# The devices section - used to define per storage array model settings

devices {
device {
vendor "IBM"
product "2145"
path_grouping_policy group_by_prio
features "0"
prio alua
path_checker tur
failback immediate
no_path_retry "5"
rr_min_io_rq 1
# polling_interval 30
dev_loss_tmo 30
fast_io_fail_tmo 15
}
}

以上是关于multipath.conf的主要内容,如果未能解决你的问题,请参考以下文章