你好,游客 登录 注册 搜索
背景:
阅读新闻

11.2.0.3 Linux RAC 报错 CRS-5018:(:CLSN00037:) Removed unused HAIP route:

[日期:2014-06-03] 来源:Linux社区  作者:evils798 [字体:大 中 小]

crsd日志

 

    MESSAGE:

    TextMessage[CRS-2672: Attempting to start 'ora.asm' on 'rac2'

CRS-5017: The resource action "ora.asm start" encountered the following error:

ORA-03113: end-of-file on communication channel

Process ID: 0

Session ID: 0 Serial number: 0

. For details refer to "(:CLSN00107:)" in "/u01/app/11.2/product/crs_1/log/rac2/agent/ohasd/oraagent_grid/oraagent_grid.log".

 

CRS-2674: Start of 'ora.asm' on 'rac2' failed

CRS-2679: Attempting to clean 'ora.asm' on 'rac2'

CRS-2681: Clean of 'ora.asm' on 'rac2' succeeded

 

+ASM2实例的日志

 

Time drift detected. Please check VKTM trace file for more details.

Wed Feb 26 09:52:57 2014

IPC Send timeout detected. Sender: ospid 17566 [Oracle@yyzfrac2 (RBAL)]

Receiver: inst 1 binc 436769961 ospid 3983

IPC Send timeout to 1.0 inc 28 for msg type 8 from opid 18

Wed Feb 26 09:53:01 2014

Communications reconfiguration: instance_number 1

Detected an inconsistent instance membership by instance 2

 

 

 

整个过程asm磁盘组始终无法mount磁盘,导致crsd无法启动,有个奇怪的报错CRS-5018:(:CLSN00037:) Removed unused HAIP route

 

于是查询主机网络,本系统用了多块网卡bond绑定,IBM pc独有的usb0的网卡占用了169.254.xxx.xxx的ip,Oracle在11.2.0.2以上的GI上使用多网卡构成的HAIP技术,那么不同网卡应该在不同的子网上,如果所有的网卡在同一个子网上,那么拔掉其中一个网卡可能导致节点被踢出

 

注:IBM的PC服务器使用USB0做为管理网络的特性。没有连接USB网卡的时候会不停向DHCP申请IP,如果没有发现DHCP时就会默认分配一个169.254.xxx.xxx的IP地址会和ORACLE的HAIP产生冲突,造成路由信息丢失。

 

[root@rac2 ~]# ifconfig

bond0    Link encap:Ethernet  HWaddr 40:F2:E9:63:14:98 

          inet addr:10.118.7.32  Bcast:10.118.7.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1

          RX packets:6349 errors:0 dropped:0 overruns:0 frame:0

          TX packets:8373 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:909372 (888.0 KiB)  TX bytes:7154180 (6.8 MiB)

 

bond1    Link encap:Ethernet  HWaddr 40:F2:E9:63:14:9A 

          inet addr:10.10.10.20  Bcast:10.10.10.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1

          RX packets:14396 errors:0 dropped:0 overruns:0 frame:0

          TX packets:13380 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:7089083 (6.7 MiB)  TX bytes:5387148 (5.1 MiB)

 

bond1:1  Link encap:Ethernet  HWaddr 40:F2:E9:63:14:9A 

          inet addr:169.254.112.114  Bcast:169.254.255.255  Mask:255.255.0.0

          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1

 

eth0      Link encap:Ethernet  HWaddr 40:F2:E9:63:14:98 

          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1

          RX packets:222 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:42708 (41.7 KiB)  TX bytes:0 (0.0 b)

          Interrupt:169 Memory:94000000-94012800

 

eth1      Link encap:Ethernet  HWaddr 40:F2:E9:63:14:9A 

          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1

          RX packets:209 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:41610 (40.6 KiB)  TX bytes:0 (0.0 b)

          Interrupt:217 Memory:92000000-92012800

 

eth4      Link encap:Ethernet  HWaddr 40:F2:E9:63:14:98 

          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1

          RX packets:6127 errors:0 dropped:0 overruns:0 frame:0

          TX packets:8376 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:866664 (846.3 KiB)  TX bytes:7154738 (6.8 MiB)

          Memory:c0300000-c0380000

 

eth5      Link encap:Ethernet  HWaddr 40:F2:E9:63:14:9A 

          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1

          RX packets:14187 errors:0 dropped:0 overruns:0 frame:0

          TX packets:13380 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:7047473 (6.7 MiB)  TX bytes:5387148 (5.1 MiB)

          Memory:c0380000-c0400000

 

lo        Link encap:Local Loopback 

          inet addr:127.0.0.1  Mask:255.0.0.0

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:6584 errors:0 dropped:0 overruns:0 frame:0

          TX packets:6584 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:9343532 (8.9 MiB)  TX bytes:9343532 (8.9 MiB)

 

usb0      Link encap:Ethernet  HWaddr 42:F2:E9:64:94:9B 

          inet addr:169.254.95.120  Bcast:169.254.95.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:907 errors:0 dropped:0 overruns:0 frame:0

          TX packets:81 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:59498 (58.1 KiB)  TX bytes:14668 (14.3 KiB)

 

 

注:在ora.cluster_interconnect.haip资源启动之前,cssd进程会检查私有网络来判定是否启动cssd进程,当ora.cluster_interconnect.haip资源启动之后,ora.asm的LMON进程会检查私有网络的通信状况,来判断是否启动集群ora.asm,

这时interconnect_IP地址是169.254网段的地址,如果节点间的169.254网段的地址不通,asm实例必定只能在部分节点运行,asm实例不能启动,Clusterware和数据库实例都无法启动,

本次故障的原因就是USB0的网卡占用的169.254网段IP导致,私有网络的HAIP无法正常绑定通信,集群驱逐了节点2,

 

我们可以通过使用netsta -rn命令在所有节点来查看HAIP绑定的信息,在节点2上bond1确实没有绑定HAIP

 

[root@rac2 bin]# netstat -rn                                                                                                                                            Kernel IP routing table                                                                                                                         

Destination    Gateway        Genmask        Flags  MSS Window  irtt Iface                                                                                          10.10.10.0      0.0.0.0        255.255.255.0  U        0 0          0 bond1                                                                                          10.118.7.0      0.0.0.0        255.255.255.0  U        0 0          0 bond0                                                                                          0.0.0.0        10.118.7.1      0.0.0.0        UG        0 0          0 bond0                                                                                          [root@rac2 bin]# ./crsctl stat res ora.cluster_interconnect.haip -init                                                                                                  NAME=ora.cluster_interconnect.haip                                                                                                                                      TYPE=ora.haip.type                                                                                                                                                      TARGET=ONLINE                                                                                                                                                          STATE=ONLINE on rac2                                                                                                                                                 

在节点2上手动增加HAIP到bond1上                                                                                                                                                     

[root@rac2 bin]# route add -net 169.254.0.0 netmask 255.255.0.0 dev bond1

 

再次使用netstat查看,HAIP已经绑定在bond1上了                                                                                                                          [root@rac2 bin]# netstat -rn                                                                                                                                            Kernel IP routing table                                                                                                                                                Destination    Gateway        Genmask        Flags  MSS Window  irtt Iface                                                                                        10.10.10.0      0.0.0.0        255.255.255.0  U        0 0          0 bond1                                                                                          10.118.7.0      0.0.0.0        255.255.255.0  U        0 0          0 bond0                                                                                          169.254.0.0    0.0.0.0        255.255.0.0    U        0 0          0 bond1                                                                                          0.0.0.0        10.118.7.1      0.0.0.0        UG        0 0          0 bond0 

 

手动down掉usb0,修改配置文件将ONBOOT改为no

 

[root@rac2 bin]#ifdown usb0                                                                                                                                            [root@rac2 bin]# vi /etc/sysconfig/network-scripts/ifcfg-usb0                                                                                                          # File created by IBM     

# IMM_DRIVER_STATUS=1                         

# IMM_IFACE_STATUS=0

# IBM RNDIS/CDC ETHER                                                                                                                                   

NM_CONTROLLED=no                                                                                                                         

DEVICE=usb0                                                                                 

ONBOOT=no                                                                                                                                                           

BOOTPROTO=dhcp                                                                                                                                                   

HWADDR=42:f2:e9:64:96:df                                                                                                                                           

TYPE=Ethernet         

重启grid,集群正常启动

总结

在使用ibm X系列服务器时候,要将无用的USB0网卡禁掉,保证HAIP除了私有网卡不被其他设备使用

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-06/102596.htm

linux
相关资讯       CRS-5018 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款