免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2295 | 回复: 0
打印 上一主题 下一主题

CRS-0184: Cannot communicate with the CRS daemon [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-21 08:44 |只看该作者 |倒序浏览

今天不小心重新启动了windows机器,导致用vmware做的2node redhat linux 4AS的oracle RAC其中一起机器重启后运行crs_stat -t时出现

CRS-0184: Cannot communicate with the CRS daemon错误。

使用$ORA_CRS_HOME/bin/crsctl stop crs和$ORA_CRS_HOME/bin/crsctl start crs后,仍然不起作用,查看$ORA_CRS_HOME/log/rac1/crsd/crsd.log发现:

2009-09-04 03:11:29.256: [  CRSEVT][3676748720]0CAAMonitorHandler :: 0:Could not join /u01/app/oracle/product/10.2.0/crs_1/bin/racgwrap(check)
category: 1234, operation: scls_process_join, loc: childcrash, OS error: 0, other: Abnormal termination of the child

2009-09-04 03:11:29.261: [  CRSEVT][3676748720]0CAAMonitorHandler :: 0:Action Script. /u01/app/oracle/product/10.2.0/crs_1/bin/racgwrap(check) timed out for ora.rac1.vip! (timeout=60)
2009-09-04 03:11:29.263: [  CRSAPP][3676748720]0CheckResource error for ora.rac1.vip error code = -2
2009-09-04 03:11:32.414: [  CRSRES][3623582640]0rac1 : CRS-1019: Resource ora.test.test2.inst (application) cannot run on rac1

2009-09-04 03:11:34.534: [  CRSRES][3676748720]0startRunnable: setting CLI values
2009-09-04 03:11:34.584: [  CRSRES][3676748720]0Attempting to start `ora.test.test1.inst` on member `rac1`
2009-09-04 03:11:35.692: [  CRSEVT][3740548016]0CAAMonitorHandler :: 0:Could not join /u01/app/oracle/product/10.2.0/crs_1/bin/racgwrap(start)
category: 1234, operation: scls_process_join, loc: childcrash, OS error: 0, other: Abnormal termination of the child

2009-09-04 03:11:35.691: [  CRSEVT][3740548016]0CAAMonitorHandler :: 0:Action Script. /u01/app/oracle/product/10.2.0/crs_1/bin/racgwrap(start) timed out for ora.rac2.vip! (timeout=60)
2009-09-04 03:11:35.693: [  CRSAPP][3740548016]0StartResource error for ora.rac2.vip error code = -2
2009-09-04 03:12:09.148: [  CRSRES][3751037872]0Start of `ora.rac1.gsd` on member `rac1` succeeded.
2009-09-04 03:12:38.965: [  CRSEVT][3740548016]0CAAMonitorHandler :: 0:Could not join /u01/app/oracle/product/10.2.0/crs_1/bin/racgwrap(stop)
category: 1234, operation: scls_process_join, loc: childcrash, OS error: 0, other: Abnormal termination of the child

2009-09-04 03:12:38.971: [  CRSEVT][3740548016]0CAAMonitorHandler :: 0:Action Script. /u01/app/oracle/product/10.2.0/crs_1/bin/racgwrap(stop) timed out for ora.rac2.vip! (timeout=60)
2009-09-04 03:12:38.972: [  CRSAPP][3740548016]0StopResource error for ora.rac2.vip error code = -2
2009-09-04 03:12:39.005: [  CRSRES][3740548016]0X_OP_StopResourceFailed : Stop Resource failed
(File: rti.cpp, line: 1803

2009-09-04 03:12:39.005: [  CRSRES][3740548016][ALERT]0`ora.rac2.vip` on member `rac1` has experienced an unrecoverable failure.
2009-09-04 03:12:39.007: [  CRSRES][3740548016]0Human intervention required to resume its availability.
2009-09-04 03:12:39.345: [  CRSRES][3740548016]0CRS-1028: Dependency analysis failed because of:
'Resource in UNKNOWN state: ora.rac2.vip'

后到google上搜索了一下,还真有解决办法:

the reason why it was unable to start was that each time server reboots it creates a socket at /tmp/.oracle or /var/tmp/.oracle directory .

Also if there are previously existing sockets they cannot be reused or deleted automatically from this directory .oracle.

Therefore the solution to above problem was obtained by deleting all the files ins

the reason why it was unable to start was that each time server reboots it creates a socket at /tmp/.oracle or /var/tmp/.oracle directory .

Also if there are previously existing sockets they cannot be reused or deleted automatically from this directory .oracle.

Therefore the solution to above problem was obtained by deleting all the files inside .oracle directoery in /var/tmp or /tmp.

ide .oracle directoery in /var/tmp or /tmp.

然后重新启动机器就可以了。

问题解决了,
删除node1机器上的/etc/oracle/scls_scr/rac1/oracle/cssfatal 文件
如果不删这个文件,运行root.sh 脚本时会报错。
然后重新运行下$ORA_CRS_HOME/root.sh脚本
inode1:root::/db> cd oracle/product/10.2.0/crs
inode1:root::/db/oracle/product/10.2.0/crs> ./root.sh
WARNING: directory '/db/oracle/product/10.2.0' is not owned by root
WARNING: directory '/db/oracle/product' is not owned by root
WARNING: directory '/db/oracle' is not owned by root
WARNING: directory '/db' is not owned by root
Checking to see if Oracle CRS stack is already configured
Checking to see if any 9i GSD is up

Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/db/oracle/product/10.2.0' is not owned by root
WARNING: directory '/db/oracle/product' is not owned by root
WARNING: directory '/db/oracle' is not owned by root
WARNING: directory '/db' is not owned by root
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: inode1 inode1-priv inode1
node 2: inode2 inode2-priv inode2
clscfg: Arguments check out successfully.

NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.
Oracle Cluster Registry for cluster has already been initialized
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
        inode1
        inode2
CSS is active on all nodes.
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)
Running vipca(silent) for configuring nodeapps
IP address "inode1-vip" has already been used. Enter an unused IP address.
inode1:root::/db/oracle/product/10.2.0/crs> cd bin
inode1:root::/db/oracle/product/10.2.0/crs/bin> ./crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP