checkIf: Default gateway is not defined (Host=p595a1) Interface eth0 checked
最近帮客户巡检一套RAC数据库,用crs_stat -t查看双机状态ora.rac.db application ONLINE ONLINE p595b1
ora....s1.inst application ONLINE ONLINE p595a1
ora....s2.inst application ONLINE ONLINE p595b1
ora....SM1.asm application ONLINE ONLINE p595a1
ora....A1.lsnr application ONLINE ONLINE p595a1
ora.p595a1.gsd application ONLINE ONLINE p595a1
ora.p595a1.ons application ONLINE ONLINE p595a1
ora....SM2.asm application ONLINE ONLINE p595b1
ora....B1.lsnr application ONLINE ONLINE p595b1
ora.p595b1.gsd application ONLINE ONLINE p595b1
ora.p595b1.ons application ONLINE ONLINE p595b1
发现少了两个节点的vip服务,vip服务应该是没起来
检查数据库参数
remote_listener参数指定的ip为公网ip,而不是vip,这样会导致
oracle节点实例发生故障时,不会发生漂移,从而引起应用故障
检查crs日志以下信息
checkIf: [color=#cc0033]Default gateway is not defined (Host=p595a1) Interface eth0 checked failed
看来vip起不来跟[color=#cc0033]Default gateway is not defined 网关设置有关
检查两个节点的public ip网关设置,正常
ifconfig -a
发现下面有eth0 下面有两个ip,除了public ip,还有另外个ip
但这个ip也不是vip,
所以vip起不来的原因初步判断是eth0网口设置了两个ip引起的。