vipoffline怎样解决CRS_1006CRS_0215-创新互联

这篇文章将为大家详细讲解有关vip offline怎样解决CRS_1006 CRS_0215,文章内容质量较高,因此小编分享给大家做个参考,希望大家阅读完这篇文章后对相关知识有一定的了解。

专业领域包括成都网站建设、网站建设、购物商城网站建设、微信营销、系统平台开发, 与其他网站设计及系统开发公司不同,创新互联的整合解决方案结合了帮做网络品牌建设经验和互联网整合营销的理念,并将策略和执行紧密结合,为客户提供全网互联网整合方案。

察看crs/bin/racgvip文件


[root@inth-rac02 oracle]# /opt/crs/product/10.2.0.1/crs_1/bin/racgvip
There is no VIP name

[root@inth-rac02 oracle]# /opt/crs/product/10.2.0.1/crs_1/bin/oifcfg getif -global
eth0 192.168.8.0 global public
eth2 192.168.1.0 global cluster_interconnect

[root@inth-rac02 oracle]# /opt/crs/product/10.2.0.1/crs_1/bin/cluvfy stage -post crsinst -n inth-rac02

[root@inth-rac02 oracle]# /opt/crs/product/10.2.0.1/crs_1/bin/crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

查看vip.log

[root@inth-rac01 ~]# vi /opt/crs/product/10.2.0.1/crs_1/log/inth-rac01/racg/ora.inth-rac01.vip.log
2009-11-25 13:07:49.037: [ RACG][3086912256] [10425][3086912256][ora.inth-rac01.vip]:01.vip]: Interface eth0 checked failed (host=inth-rac01)Invalid parameters, or failed to bring up VIP (host=inth-rac01)
结合网上的一些资料,是没有配置默认网关导致的,所以这里eth0在启动vip的时候没有check成功。

[root@inth-rac01 ~]# /sbin/ifconfig -a
现在找不到eth0:1的vip虚拟IP
root@inth-rac01 ~]# /sbin/ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0C:29:47:66:67
inet addr:192.168.8.129 Bcast:192.168.8.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe47:6667/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2334 errors:0 dropped:0 overruns:0 frame:0
TX packets:1996 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:261342 (255.2 KiB) TX bytes:287548 (280.8 KiB)
Interrupt:169 Base address:0x14a4

eth2 Link encap:Ethernet HWaddr 00:0C:29:47:66:71
inet addr:192.168.1.206 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe47:6671/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3166 (3.0 KiB) TX bytes:1014 (1014.0 b)
Interrupt:193 Base address:0x1824


用crs_stat查看状态
[root@inth-rac01 ~]# /opt/crs/product/10.2.0.1/crs_1/bin/crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....c01.gsd application ONLINE ONLINE inth-rac01
ora....c01.ons application ONLINE ONLINE inth-rac01
ora....c01.vip application ONLINE OFFLINE
ora....c02.gsd application ONLINE OFFLINE
ora....c02.ons application ONLINE OFFLINE
ora....c02.vip application OFFLINE OFFLINE

VIP是OFFLINE的

解决方法
添加默认网关

route add default gw 192.168.8.1

或者用另一种方法 修改racgvip
将参数FAIL_WHEN_DEFAULTGW_NOT_FOUND=0
[root@inth-rac01 ~]# vi /opt/crs/product/10.2.0.1/crs_1/bin/racgvip
将参数FAIL_WHEN_DEFAULTGW_NOT_FOUND=0


[root@inth-rac01 ~]# /opt/crs/product/10.2.0.1/crs_1/bin/crs_start ora.inth-rac01.vip
Attempting to start `ora.inth-rac01.vip` on member `inth-rac01`
Start of `ora.inth-rac01.vip` on member `inth-rac01` succeeded.

查看现在的ifconfig
[root@inth-rac01 ~]# /sbin/ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0C:29:47:66:67
inet addr:192.168.8.129 Bcast:192.168.8.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe47:6667/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2466 errors:0 dropped:0 overruns:0 frame:0
TX packets:2131 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:273195 (266.7 KiB) TX bytes:306026 (298.8 KiB)
Interrupt:169 Base address:0x14a4

eth0:1 Link encap:Ethernet HWaddr 00:0C:29:47:66:67
inet addr:192.168.8.29 Bcast:192.168.8.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:169 Base address:0x14a4

eth2 Link encap:Ethernet HWaddr 00:0C:29:47:66:71
inet addr:192.168.1.206 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe47:6671/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3473 (3.3 KiB) TX bytes:1014 (1014.0 b)
Interrupt:193 Base address:0x1824


[root@inth-rac01 ~]# /opt/crs/product/10.2.0.1/crs_1/bin/crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....c01.gsd application ONLINE ONLINE inth-rac01
ora....c01.ons application ONLINE ONLINE inth-rac01
ora....c01.vip application ONLINE ONLINE inth-rac02
ora....c02.gsd application ONLINE UNKNOWN inth-rac02
ora....c02.ons application ONLINE UNKNOWN inth-rac02
ora....c02.vip application ONLINE ONLINE inth-rac02


不过还是有些问题,导致另一个节点GSD和ONS的状态是unknown的,也就是还咩有通信到。

但是此时的CRS还是健康的
[root@inth-rac02 ~]# /opt/crs/product/10.2.0.1/crs_1/bin/olsnodes
inth-rac01
inth-rac02

[root@inth-rac02 ~]# /opt/crs/product/10.2.0.1/crs_1/bin/oifcfg iflist
eth0 192.168.8.0
eth2 192.168.1.0


[root@inth-rac02 ~]# /opt/crs/product/10.2.0.1/crs_1/bin/crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

日志里也很正常
2009-11-25 00:07:51.203
[cssd(7919)]CRS-1601:CSSD Reconfiguration complete. Active nodes are inth-rac02 .
2009-11-25 00:07:52.154
[evmd(7779)]CRS-1401:EVMD started on node inth-rac02.
2009-11-25 00:07:52.160
[crsd(6684)]CRS-1012:The OCR service started on node inth-rac02.
2009-11-25 00:07:56.740
[crsd(6684)]CRS-1201:CRSD started on node inth-rac02.
2009-11-25 15:19:51.290
[cssd(9945)]CRS-1605:CSSD voting file is online: /dev/raw/raw1. Details in /opt/crs/product/10.2.0.1/crs_1/log/inth-rac02/cssd/ocssd.log.
2009-11-25 15:19:59.278
[cssd(9945)]CRS-1601:CSSD Reconfiguration complete. Active nodes are inth-rac01 inth-rac02 .
2009-11-25 15:20:19.107
[crsd(6977)]CRS-1012:The OCR service started on node inth-rac02.
2009-11-25 15:20:30.953
[evmd(9804)]CRS-1401:EVMD started on node inth-rac02.
2009-11-25 15:20:53.798
[crsd(6977)]CRS-1201:CRSD started on node inth-rac02.

不过GSD和OTS确实有问题
[root@inth-rac02 ~]# /opt/crs/product/10.2.0.1/crs_1/bin/srvctl status nodeapps
-n inth-rac02
VIP is running on node: inth-rac02
GSD is not running on node: inth-rac02
PRKO-2016 : Error in checking condition of listener on node: inth-rac02
ONS daemon is not running on node: inth-rac02


查看ons的log
[root@inth-rac02 ~]# vi /opt/crs/product/10.2.0.1/crs_1/log/inth-rac02/racg/ora.inth-rac02.ons.log

Adding remote host inth-rac01:2009-11-25 00:08:23.787: [ RACG][3086912256] [8925][3086912256][ora.inth-rac02.ons]: 6200
onsctl: ons started
2009-11-25 15:21:16.873: [ RACG][3086912256] [11319][3086912256][ora.inth-rac02.ons]: onsctl: shutting down ons daemon ...
CONNECT: Connection refused
Number of onsconfiguration retrieved, numcfg = 1
onscfg[0]
{node = inth-rac01, port = 6200}Adding remote host inth-rac01:6200
onsctl: shutdown of ons failed!

$ORA_CRS_HOME/bin/crsctl check crs用于检查后台进程状态
$ORA_CRS_HOME/bin/crsctl start resources启动crs资源
$ORA_CRS_HOME/bin/crsctl start crs启动crs,需要超级用户操作。
$ORA_CRS_HOME/bin/crsctl stop crs关闭crs,需要超级用户操作。
$ORA_CRS_HOME/bin/crs_unregister取消注册crs
$ORA_CRS_HOME/bin/ocrcheck检查ocr设置信息用ocrcheck
$ORA_CRS_HOME/bin/crsctl query css votedisk检查表决磁盘信息

关于vip offline怎样解决CRS_1006 CRS_0215就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。


网页标题:vipoffline怎样解决CRS_1006CRS_0215-创新互联
网站网址:http://pwwzsj.com/article/dpsehd.html