一天sa打电话来说有台机器宕了,问我们是不是有
数据库出问题了,引起了主机的宕机,赶紧登上去,tail一下alter.log,发现数据库启动时报下面错误:
8k$tp,I2Y nZG0Interface type 1 eth1 192.168.11.0
configured from OCR for use as a cluster interconnect
ITPUB个人空间/~%C1uYs0A1x:RvWARNING 192.168.11.0
could not be translated to a network address error 1
ITPUB个人空间d'^e$F H6~XPHInterface type 1
eth0 10.23.11.0 configured from OCR for use as a public interface
ITPUB个人空间B_;aUK8@Cluster communication is
configured to use the following interface(s) for this instance
ITPUB个人空间Z!H5L1_-e"H,DP 10.23.11.33
ITPUB个人空间w[g\S%]j(Y.c
意思就是说私有网络192.168.11.0不能通信,现在集群使用共有网10.23.11.33
ITPUB个人空间ND0dr#t
G进行通信,联想到前几天主机的网卡坏了,把私有网卡换了一个,是不是这个引起的,ifconfig看了一下,私有网卡信息如下:
ITPUB个人空间SD2SjBw Deth2 Link
encap:Ethernet HWaddr 00:0C:22:3A:92:EF
Qh&\G R6_ K0 inet
addr:192.168.11.33 Bcast:192.168.11.255 Mask:255.255.255.0
ITPUB个人空间Z {)a zV%B{ vG
现在已经变成了eth2,看下ocr配置里使用的是那个网卡:oifcfg iflist -p -n,结果如下:
7_agA,ler%zg0eth0 10.23.11.0 PRIVATE
255.255.255.0
ITPUB个人空间)C7s"V\G%cO*Keth1 192.168.11.0
PRIVATE 255.255.255.0
ITPUB个人空间#@3Z1u-Z9]Q+R
这里的配置用的还是ech1,当然就报错了
ITPUB个人空间a
Gg:sl5e['r\/O 先把eth1的删掉:oifcfg delif -node oc1
eth1/192.168.11.0
ITPUB个人空间x/e2w@&V
Me 然后把eth2加进去:oifcfg setif -node oc1
eth2/192.168.11.0:cluster_interconnect
ITPUB个人空间{"M*[P'`P-ZG8o 重启了一下库srvctl
stop database -d dba srvctl start database -d dba
ITPUB个人空间7lw a@w"|'q/I
后台不再报错,原来上次网卡坏了后,把心跳IP换到另外一个空闲网卡上去了,当时处理问题的同时没想到这点,以为IP一样就可以了,呵呵,一个教训。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7836777/viewspace-723561/
,如需转载,请注明出处,否则将追究法律责任。