1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
| [468][root@pl123:tools]# cat -A /etc/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 "*"$
#}$
$
## By default, devices with vendor = "IBM" and product = "S/390.*" are$
## blacklisted. To enable mulitpathing on these devies, uncomment the$
## following lines.$
#blacklist_exceptions {$
#^Idevice {$
#^I^Ivendor^I"IBM"$
#^I^Iproduct^I"S/390.*"$
#^I}$
#}$
$
## Use user friendly names, instead of using WWIDs as names.$
#defaults {$
#^Iuser_friendly_names yes$
#}$
##$
## Here is an example of how to configure some standard options.$
##$
#$
defaults {$
^Iudev_dir^I^I/dev$
^Ipolling_interval ^I5$
^Iselector^I^I"round-robin 0"$
^Ipath_grouping_policy^Imultibus$
^Igetuid_callout^I^I"/sbin/scsi_id -g -u -s /block/%n"$
^Iprio_callout^I^I/bin/true$
^Ipath_checker^I^Ireadsector0$
^Irr_min_io^I^I100$
^Imax_fds^I^I^I8192$
^Irr_weight^I^Ipriorities$
^Ifailback^I^Iimmediate$
^Ino_path_retry^I^Ifail$
^Iuser_friendly_names^Iyes$
}$
##$
## 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.$
##$
blacklist {$
^Idevnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"$
^Idevnode "^hd[a-z]"$
^Idevnode "^cciss!c[0-9]d[0-9]*"$
}$
multipaths {$
^Imultipath { $
^I^I^I wwid ^I^I350002ac12b732b$
^I^I^I alias ^I^IKNB400_dtest1_bvg^I$
^I}$
^Imultipath { $
^I^I^I wwid ^I^I350002ac12b722b$
^I^I^I alias ^I^IKNB400_dtest1_vg^I$
^I}$
}$ |
Partager