风哥教程

培训 . 交流 . 分享
Make progress together!

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

[复制链接]
内容发布:paulyi| 发布时间:2014-2-15 18:48:54
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一定要设置网关(每个节点)


上一篇:oracle 11gR2 RAC for linux x86_64 grid运行root.sh 失败问题处理
下一篇:oracle 10g 中如何添加与删除votedisk镜像盘
回复

使用道具 举报

1框架
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

热门文章教程

  • Oracle19c数据库发布与下载地址
  • 风哥Oracle数据库巡检工具V1.0(附2.6网页
  • Oracle Database 12c 数据库100个新特性与
  • Oracle 12cR2 九大新功能全面曝光_详解云数
  • 实战PHP与MySQL权威指南PDF电子书下载
  • 大数据技术与应用入门培训教程(电子版下载
快速回复 返回顶部 返回列表