oracle 10g cluster rac vip始终在节点2的问题处理

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:118

oracle 10g cluster rac vip始终在节点2的问题处理

环境:oracle 10g crs+hp_unix+hacmp
用crs_stat -t 查看资源组状态

ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac2
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application OFFLINE OFFLINE rac2
可以看出rac1节点的vip漂在rac2节点上
用crs_relocate ora.rac1.vip -c rac1 也切不回来
用netstat -in 查看ip,发现vip地址全部在节点2上
检查rac1节点crs vip日志
2010-05-14 21:08:20.053: [ RACG][1] [16231][1][ora.rac1.vip]: checkIf: Default gateway is not defined (host=rac1)
Interface lan0 checked failed (host=rac1)
checkIf: Default gateway is not defined (host=rac1)
Interface lan2 checked failed (host=rac1)
Default gateway is not defined
rac1节点网关没定义
马上检查rac1和rac2网关设置

/oracle/product/RAC10g/log/rac2/racg]#netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 32808
172.16.1.2 172.16.1.2 UH 0 lan0 32808
192.168.200.2 192.168.200.2 UH 0 lan2 32808
192.168.200.3 192.168.200.3 UH 0 lan0:801 32808
192.168.200.0 192.168.200.2 U 2 lan2 1500
192.168.200.0 192.168.200.3 U 3 lan0:801 1500
172.16.1.0 172.16.1.2 U 3 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 32808
default 192.168.200.254 UG 0 lan2 1500
rac2有设置网关
rac1[/oracle/product/RAC10g/log/rac1/racg]#netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 32808
172.16.1.1 172.16.1.1 UH 0 lan0 32808
192.168.200.1 192.168.200.1 UH 0 lan2 32808
192.168.200.0 192.168.200.1 U 2 lan2 1500
172.16.1.0 172.16.1.1 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 32808
rac1节点没有设置网关
马上对rac1节点设置网关

rac1[/oracle/product/RAC10g/log/rac1/racg]#netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 32808
172.16.1.1 172.16.1.1 UH 0 lan0 32808
192.168.200.1 192.168.200.1 UH 0 lan2 32808
192.168.200.0 192.168.200.1 U 2 lan2 1500
172.16.1.0 172.16.1.1 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 32808
default 192.168.200.254 UG 0 lan2 1500
设置成功
停止节点资源
srvctl stop nodeapps -n rac1
srvctl stop nodeapps -n rac2
启动节点资源
srvctl start nodeapps -n rac1
srvctl start nodeapps -n rac2

检查,vip分配在各自节点上
./crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2

总结:vip和网关有很大的关系,公网ip一定要设置网关(每个节点)

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】