两台曙光a840-r,一台曙光ds800-f10,操作系统选用oracle linux 6.9 x64,怕7.X太新驱动不匹配没用。存储划分3个10G,5个500G并作好映射。
因rdac多路径软件目前支持6.3,内核2.6.32-279,没有对应的驱动包;用udev+multipath替代oracleasm。
multipath.conf 里取别名ocrdisk,dbdisk..,然后用 udev 绑定权限。
安装过程顺利,但重启时,只能启动一个节点,另一节点卡在ora.asm处。
从/var/log/message发现device-mapper: multipath: Failing path 8:0 和device-mapper: multipath: Failing path 8:144,这是ocrdisk,不能启动asm。
经查multipath官方资料,双方多路径绑定一致才行。
在节点1, 保证节点不用存储分区
crsctl stop cluster
crsctl stop has
multipath -F
service multipathd stop
scp /etc/multipath/* db2:/etc/multipath
service multipath start
multipath -v2
multipath -ll
各映射的分区都是running
crsctl start has
crsctl start cluster
节点2
service multipathd start
multipath -v2
multipath -ll
各映射的分区都是running
crsctl start has
crsctl start cluster
crsctl stat res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.ARCH.dg
ONLINE ONLINE db1
ONLINE ONLINE db2
ora.LISTENER.lsnr
ONLINE ONLINE db1
ONLINE ONLINE db2
ora.OCVOTE.dg
ONLINE ONLINE db1
ONLINE ONLINE db2
ora.VGDATA.dg
ONLINE ONLINE db1
ONLINE ONLINE db2
ora.asm
ONLINE ONLINE db1 Started
ONLINE ONLINE db2 Started
ora.gsd
OFFLINE OFFLINE db1
OFFLINE OFFLINE db2
ora.net1.network
ONLINE ONLINE db1
ONLINE ONLINE db2
ora.ons
ONLINE ONLINE db1
ONLINE ONLINE db2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE db2
ora.cvu
1 ONLINE ONLINE db2
ora.db1.vip
1 ONLINE ONLINE db1
ora.db2.vip
1 ONLINE ONLINE db2
ora.oc4j
1 ONLINE ONLINE db2
ora.rac.db
1 ONLINE ONLINE db1 Open
2 ONLINE ONLINE db2 Open
ora.scan1.vip
1 ONLINE ONLINE db2