Oracle RAC存储多路径的设置案例
以redhat6、centos6、oracle6及Asianux4为例
1.安装多路径的客户端
如果是FC SAN: yum install device-mapper device-mapper-multipath -y
如果是IP SAN: yum install iscsi-initiator-utils device-mapper device-mapper-multipath -y
2.设置一个多路径的配置文件:
/usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf的文件拷贝到/etc目录下面:
3.启动multipath服务
/etc/init.d/multipathd restart
4.将所有/etc/multipath/bindings 设置为一致,两边的内容一样
[root@rac81]# cat /etc/multipath/bindings
# Multipath bindings, Version : 1.0
# NOTE: this file is automatically maintained by the multipath program.
# You should not need to edit this file in normal circumstances.
#
# Format:
# aliaswwid
#
mpatha 3600605b005c1b03019ae96a616049c04
mpathb 3600143801259f9320000500000360000
mpathc 3600143801259f9320000500000420000
mpathd 3600143801259f9320000500000460000
mpathe 3600143801259f93200005000004a0000
mpathf 3600143801259f93200005000003e0000
mpathg 3600143801259f93200005000003a0000
mpathh 3600143801259f93200005000004e0000
mpathi 3600143801259f9320000500000520000
mpathj 3600143801259f9320000500000560000
mpathk 3600143801259f93200005000005a0000
mpathl 3600143801259f93200005000005e0000
mpathm 3600143801259f93200005000007a0000
4.配置multipath.conf文件的磁盘项目
devices {
device {
vendor "HP"
product "HSV2[01]0|HSV300|HSV4[05]0"