標籤:multipath oracle rac
本文是一次兩台IBM x240安裝OEL6.5x64串連IBM V3500儲存多重路徑配置過程記錄,當時用於安裝Oracle 11g rac叢集環境的。
IBM v3500系列儲存由於官方不再提供多重路徑軟體,比原來DS系列的儲存麻煩一點了,只好採用發行版內建的device-mapper多重路徑軟體包實現。 本文出自:http://koumm.blog.51cto.com/
1. 本機環境
650) this.width=650;" style="border-bottom:0px;border-left:0px;border-top:0px;border-right:0px;" title="image" border="0" alt="image" src="http://img1.51cto.com/attachment/201407/17/703525_1405613881wuBB.png" height="91" />
適用於RHEL/CentOS 6.x系統。
2. 安裝device-mapper軟體包如下,缺包自行安裝。
[[email protected] ~]# rpm -qa|grep device-mapper
device-mapper-libs-1.02.79-8.el6.x86_64
device-mapper-multipath-libs-0.4.9-72.0.1.el6.x86_64
device-mapper-event-libs-1.02.79-8.el6.x86_64
device-mapper-event-1.02.79-8.el6.x86_64
device-mapper-persistent-data-0.2.8-2.el6.x86_64
device-mapper-multipath-0.4.9-72.0.1.el6.x86_64
device-mapper-1.02.79-8.el6.x86_64
[[email protected] ~]#
3. 串連儲存配置過程略。
抄下伺服器兩塊HBA的wwn號碼後在儲存上進行配置,能適別到盤就可以了,儲存上劃分了一個2G,450G,450G,450G,450G,其它都是多重路徑重複。
650) this.width=650;" style="border-bottom:0px;border-left:0px;border-top:0px;border-right:0px;" title="image" border="0" alt="image" src="http://img1.51cto.com/attachment/201407/17/703525_14056138879PWZ.png" height="424" />
4. 識別磁碟udev號碼
for i in a b c d e f g h i j k l m n o p q ; do echo "KERNEL==\"sd*\", BUS==\"scsi\", PROGRAM==\"/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/\$name\", RESULT==\"`/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/sd$i`\", NAME=\"asm-disk$i\", OWNER=\"grid\", GROUP=\"asmadmin\", MODE=\"0660\"" ; done
說明:號碼都是8,9,a,b,c重複,f是單獨掛載磁碟不用列入。找到磁碟UDEV號碼。
上面本來是想採用udev方式配置oracle grid磁碟的,沒有成功,最後採用asm磁碟進行配置成功。
650) this.width=650;" style="border-bottom:0px;border-left:0px;border-top:0px;border-right:0px;" title="image" border="0" alt="image" src="http://img1.51cto.com/attachment/201407/17/703525_14056139008hpe.png" height="270" />
可以直接手動收集號碼
650) this.width=650;" style="border-bottom:0px;border-left:0px;border-top:0px;border-right:0px;" title="image" border="0" alt="image" src="http://img1.51cto.com/attachment/201407/17/703525_1405613906HSAJ.png" height="159" />
5. 根據udev號碼建立multipath設定檔
設定檔如下:
[[email protected] ~]# cat /etc/multipath.conf
defaults {
user_friendly_names no
queue_without_daemon no
flush_on_last_del yes
max_fds max
}
blacklist {
devnode "^hd[a-z]"
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
devnode "^cciss.*"
}
devices {
device {
vendor "IBM "
product "LUN"
path_grouping_policy group_by_prio
features "3 queue_if_no_path pg_init_retries 50"
getuid_callout "/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/%n"
path_checker tur
path_selector "round-robin 0"
hardware_handler "1 alua"
failback immediate
rr_weight uniform
rr_min_io 128
}
}
multipaths {
multipath {
wwid 360050763008080cd2000000000000008
alias crs
uid 501
gid 504
}
multipath {
wwid 360050763008080cd2000000000000009
alias data1
uid 501
gid 504
}
multipath {
wwid 360050763008080cd200000000000000a
alias data2
uid 501
gid 504
}
multipath {
wwid 360050763008080cd200000000000000b
alias data3
uid 501
gid 504
}
multipath {
wwid 360050763008080cd200000000000000c
alias recovery
uid 501
gid 504
}
}
配置multipath服務。
chkconfig multipathd on
chkconfig --level 345 multipathd on
modprobe dm-multipath
service multipathd restart
查看結果,配置成功。
650) this.width=650;" style="border-bottom:0px;border-left:0px;border-top:0px;border-right:0px;" title="image" border="0" alt="image" src="http://img1.51cto.com/attachment/201407/17/703525_1405613908yo5w.png" height="185" />
本文出自 “koumm的linux技術部落格” 部落格,請務必保留此出處http://koumm.blog.51cto.com/703525/1439760