redhat linux存储多路径,目前我了解的有两种方式:
(1)EMC powerpath
(2) HP securepath (没用过不做介绍)
(3)device-mapper-multipath
但要注册,如果不注册, 只有基本的failover功能,没有负责均衡功能,每次重启都要 powermt config 来使多路径生效。
备注: CLARiiON AX 系列阵列自动识别,不需要许可证注册
以下是一整套 PowerPath 文档集;所有手册均由 EMC Corporation 提供,
可以自己去百度或EMC官方网找:
◆PowerPath Product Guide
◆PowerPath Quick Reference
◆PowerPath for AIX Installation and Administration Guide
◆PowerPath for HP-UX Installation and Administration Guide
◆《PowerPath for Linux 安装指南》
◆PowerPath for Solaris Installation and Administration Guide
◆《PowerPath for Windows 安装和管理指南》
◆EMC PowerPath for AIX Release Notes
◆EMC PowerPath for HP-UX Release Notes
◆EMC PowerPath for Solaris Release Notes
◆EMC PowerPath for Linux Release Notes
◆EMC PowerPath for Windows Release Notes
yum install -y device-mapper device-mapper-multipath
cp /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf /etc/
/etc/ multipath.conf 建议配置文件:
service multipathd start
chkconfig multipathd on
备注:
查看HBA卡:
cat /sys/class/fc_host/host*/node_name
重新扫描
echo "1" > /sys/class/fc_host/host1/issue_lip
echo "- - -" > /sys/class/scsi_host/host1/scan
(1)EMC powerpath
(2) HP securepath (没用过不做介绍)
(3)device-mapper-multipath
EMC powerpath
优势在于能够实现负载均衡,而其他厂家仅支持基本故障切换。但要注册,如果不注册, 只有基本的failover功能,没有负责均衡功能,每次重启都要 powermt config 来使多路径生效。
备注: CLARiiON AX 系列阵列自动识别,不需要许可证注册
以下是一整套 PowerPath 文档集;所有手册均由 EMC Corporation 提供,
可以自己去百度或EMC官方网找:
◆PowerPath Product Guide
◆PowerPath Quick Reference
◆PowerPath for AIX Installation and Administration Guide
◆PowerPath for HP-UX Installation and Administration Guide
◆《PowerPath for Linux 安装指南》
◆PowerPath for Solaris Installation and Administration Guide
◆《PowerPath for Windows 安装和管理指南》
◆EMC PowerPath for AIX Release Notes
◆EMC PowerPath for HP-UX Release Notes
◆EMC PowerPath for Solaris Release Notes
◆EMC PowerPath for Linux Release Notes
◆EMC PowerPath for Windows Release Notes
device-mapper-multipath
linux 自带的多路径软件yum install -y device-mapper device-mapper-multipath
cp /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf /etc/
/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.9/multipath.conf.defaults
- # For a list of configuration options with descriptions, see
- # /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf.annotated
- #
- # REMEMBER: After updating multipath.conf, you must run
- #
- # service multipathd reload
- #
- # for the changes to take effect in multipathd
- ## By default, devices with vendor = "IBM" and product = "S/390.*" are
- ## blacklisted. To enable mulitpathing on these devies, uncomment the
- ## following lines.
- #blacklist_exceptions {
- # device {
- # vendor "IBM"
- # product "S/390.*"
- # }
- #}
- ## Use user friendly names, instead of using WWIDs as names.
- defaults {
- user_friendly_names yes
- }
- ##
- ## Here is an example of how to configure some standard options.
- ##
- #
- #defaults {
- # udev_dir /dev
- # polling_interval 10
- # path_selector "round-robin 0"
- # path_grouping_policy multibus
- # getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
- # prio alua
- # path_checker readsector0
- # rr_min_io 100
- # max_fds 8192
- # rr_weight priorities
- # failback immediate
- # no_path_retry fail
- # user_friendly_names yes
- #}
- ##
- ## 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 {
- # wwid 26353900f02796769
- # devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
- # devnode "^hd[a-z]"
- #}
- blacklist {
- devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
- devnode "^hd[a-z]"
- devnode "^cciss!c[0-9]d[0-9]*"
- }
- #multipaths {
- # multipath {
- # wwid 3600508b4000156d700012000000b0000
- # alias yellow
- # path_grouping_policy multibus
- # path_checker readsector0
- # path_selector "round-robin 0"
- # failback manual
- # rr_weight priorities
- # no_path_retry 5
- # }
- # multipath {
- # wwid 1DEC_____321816758474
- # alias red
- # }
- #}
- devices {
- # device {
- # vendor "COMPAQ "
- # product "HSV110 (C)COMPAQ"
- # path_grouping_policy multibus
- # getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
- # path_checker readsector0
- # path_selector "round-robin 0"
- # hardware_handler "0"
- # failback 15
- # rr_weight priorities
- # no_path_retry queue
- # }
- # device {
- # vendor "COMPAQ "
- # product "MSA1000 "
- # path_grouping_policy multibus
- # }
- # Device attributed for EMC CLARiiON and VNX series ALUA
- device {
- vendor "DGC"
- product "*"
- prio_callout "/sbin/mpath_prio_alua /dev/%n"
- path_grouping_policy group_by_prio
- features "1 queue_if_no_path"
- failback immediate
- hardware_handler "1 alua"
- }
- }
service multipathd start
chkconfig multipathd on
备注:
查看HBA卡:
cat /sys/class/fc_host/host*/node_name
重新扫描
echo "1" > /sys/class/fc_host/host1/issue_lip
echo "- - -" > /sys/class/scsi_host/host1/scan
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10995764/viewspace-2124556/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10995764/viewspace-2124556/