2014-11-03 15:53:15.830: [ RACG][3086924000] [2200][3086924000][ora.rac10g2.vip]: Fri Nov 03 15:53:09 CST 2014 [ 2204 ] /sbin/mii-tool eth0 error
Fri Nov 18 15:53:09 CST 2014 [ 2204 ] defaultgw: started
Fri Nov 03 15:53:09 CST 2014 [ 2204 ] defaultgw: completed with 192.168.94.1
2014-11-03 15:53:15.830: [ RACG][3086924000] [2200][3086924000][ora.node2.vip]: ping to 192.168.94.1 via eth0 failed, rc = 1 (host=node2)
ping to 192.168.94.1 via eth0 failed, rc = 1 (host=rac10g2)
Fri Nov 03 15:53:15 CST 2014 [ 2204 ] checkIf: ping and RX packets checked if=eth0 failed
Interface eth0 checked failed (host=node2)
2014-11-03 15:53:15.830: [ RACG][3086924000] [2200][3086924000][ora.node2.vip]: Fri Dec 18 15:53:15 CST 2014 [ 2204 ] checkIf: end for if=eth0
Invalid parameters, or failed to bring up VIP (host=node2)
修改默认网关:
修改文件$ORA_CRS_HOME/bin/racgvip,将以下内容修改为想要指派的新的网关。
DEFAULTGW原本是没有值的,现在修改为192.168.1.1。
# hard code default gateway here if needed
DEFAULTGW=192.168.1.1
修改之后,在trace看到该部分已经检测ok。
2014-11-03 16:11:40.984: [ RACG][3086924000] [7808][3086924000][ora.rac10g2.vip]: Fri Nov 03 16:11:40 CST 2014 [ 7812 ] /sbin/mii-tool eth0 error
Fri Nov 03 16:11:40 CST 2014 [ 7812 ] checkIf: ping checked if=eth0 ok
Fri Nov 03 16:11:40 CST 2014 [ 7812 ] checkIf: end for if=eth0
该修改需要在节点1和节点2上同时修改,观察很长一段时间之后,没有再发现之前的问题。
其实该问题的出现,主要的原因是在eth1上配置了默认网关,用于私有网络的网卡不建议配置网关。所以该问题中,如果没有特别的必要,将私有网卡上的网关删除,删除默认路由网关,重启vip即可解决该问题。
在CentOS 6.4下安装Oracle 11gR2(x64)