只从成功在虚拟机安装了双节点RAC后 能全部启动起来 STATE ONLINE. 可每次重启机器后 总是有几个UNKNOWN的,如果手工就能启动.crs_start ora.xxxxx, 或则是crs_start -f xxxxx
如果不报错都能成功启动起来. 然后网上寻找了下,有人说可能是时间同步问题,如果10秒就没有问题. 想下时间同步,可虚拟机做了时间同步机制啊. 当这个10秒钟的差距,在虚拟机上启动系统本来就有些慢,而且同时启动的时候总有先后区别. 估计两个节点之间因为启动资源快慢程度而导致10秒以上超时.
那么如果一个个节点启动会如何呢?
先启动节点1的机器
[Oracle@node1 ~]$ cd $DBSRCIPTHOME [oracle@node1 dbsrcipt]$ sh crs_stat_unknow.sh
--看到LINUX已经起来了,迫不及待地查看下状态 HA Resource Target State ----------- ------ ----- ora.MYRAC.MYRAC1.inst ONLINE OFFLINE ora.MYRAC.MYRAC2.inst ONLINE OFFLINE ora.MYRAC.db ONLINE OFFLINE ora.node1.ASM1.asm ONLINE ONLINE on node1 ora.node1.LISTENER1_NODE1.lsnr ONLINE OFFLINE ora.node1.gsd ONLINE OFFLINE ora.node1.ons ONLINE ONLINE on node1 ora.node1.vip ONLINE ONLINE on node1 ora.node2.ASM2.asm ONLINE OFFLINE ora.node2.LISTENER1_NODE2.lsnr ONLINE OFFLINE ora.node2.gsd ONLINE OFFLINE ora.node2.ons ONLINE OFFLINE ora.node2.vip ONLINE ONLINE on node1
--结果节点1的 ONS VIP ASM1都起来了,而其他的正在启动中,可以看到VIP2已经挂在节点1上
[oracle@node1 dbsrcipt]$ sh crs_stat_unknow.sh
--在过几分钟看看,发现节点1的服务全部起来了,GSD和LSNR并没有同时启动的UNKNOWS状态 HA Resource Target State ----------- ------ ----- ora.MYRAC.MYRAC1.inst ONLINE ONLINE on node1 ora.MYRAC.MYRAC2.inst ONLINE OFFLINE ora.MYRAC.db ONLINE ONLINE on node1 ora.node1.ASM1.asm ONLINE ONLINE on node1 ora.node1.LISTENER1_NODE1.lsnr ONLINE ONLINE on node1 ora.node1.gsd ONLINE ONLINE on node1 ora.node1.ons ONLINE ONLINE on node1 ora.node1.vip ONLINE ONLINE on node1 ora.node2.ASM2.asm ONLINE OFFLINE ora.node2.LISTENER1_NODE2.lsnr ONLINE OFFLINE ora.node2.gsd ONLINE OFFLINE ora.node2.ons ONLINE OFFLINE ora.node2.vip ONLINE ONLINE on node1
--开始启动节点2机器 过了几分种看 如下节点2启动了3个服务,其他服务正在启动中 [oracle@node1 dbsrcipt]$ sh crs_stat_unknow.sh HA Resource Target State ----------- ------ ----- ora.MYRAC.MYRAC1.inst ONLINE ONLINE on node1 ora.MYRAC.MYRAC2.inst ONLINE OFFLINE ora.MYRAC.db ONLINE ONLINE on node1 ora.node1.ASM1.asm ONLINE ONLINE on node1 ora.node1.LISTENER1_NODE1.lsnr ONLINE ONLINE on node1 ora.node1.gsd ONLINE ONLINE on node1 ora.node1.ons ONLINE ONLINE on node1 ora.node1.vip ONLINE ONLINE on node1 ora.node2.ASM2.asm ONLINE ONLINE on node2 ora.node2.LISTENER1_NODE2.lsnr ONLINE OFFLINE ora.node2.gsd ONLINE OFFLINE ora.node2.ons ONLINE ONLINE on node2 ora.node2.vip ONLINE ONLINE on node2 [oracle@node1 dbsrcipt]$ sh crs_stat_unknow.sh
-- 在过几分钟 节点2服务全启动了,而且没有一个UNKNOWNS 而且VIP2已经转回到节点2身上 HA Resource Target State ----------- ------ ----- ora.MYRAC.MYRAC1.inst ONLINE ONLINE on node1 ora.MYRAC.MYRAC2.inst ONLINE ONLINE on node2 ora.MYRAC.db ONLINE ONLINE on node1 ora.node1.ASM1.asm ONLINE ONLINE on node1 ora.node1.LISTENER1_NODE1.lsnr ONLINE ONLINE on node1 ora.node1.gsd ONLINE ONLINE on node1 ora.node1.ons ONLINE ONLINE on node1 ora.node1.vip ONLINE ONLINE on node1 ora.node2.ASM2.asm ONLINE ONLINE on node2 ora.node2.LISTENER1_NODE2.lsnr ONLINE ONLINE on node2 ora.node2.gsd ONLINE ONLINE on node2 ora.node2.ons ONLINE ONLINE on node2 ora.node2.vip ONLINE ONLINE on node2 [oracle@node1 dbsrcipt]$
更多Oracle相关信息见 专题页面