oracle cluster n,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一定要设置网关(每个节点)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值