专栏首页乐沙弥的世界Oracle 11g RAC 执行root.sh时遭遇 CRS-0184/PRCR-1070

Oracle 11g RAC 执行root.sh时遭遇 CRS-0184/PRCR-1070

Oracle 11g RAC安装时,在第一个节点执行root.sh时遭遇了CRS-0184/PRCR-1070,Google了很多帖子也没有找到解决办法。呜呜,还是静下心来看日志!!最后的发现原来是一个不经意的小问题,如下面的描述。

1、故障现象

#安装环境
[root@linux1 ~]# more /etc/issue
Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
Kernel \r on an \m

[root@linux1 ~]# uname -a
Linux linux1.orasrv.com 2.6.18-194.el5PAE #1 SMP Mon Mar 29 20:19:03 EDT 2010 i686 athlon i386 GNU/Linux

[root@linux1 bin]# ./crsctl query crs activeversion
Oracle Clusterware active version on the cluster is [11.2.0.1.0]

#执行root时,出现了下面的错误,仅列出错误部分
CRS-0184: Cannot communicate with the CRS daemon.   #这个是主要的错误提示,不能同crs通信

PRCR-1070 : Failed to check if resource ora.asm is registered
Cannot communicate with crsd
add asm ... failed
clsr_start_dg return error at loc: 70 rc=0
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Create failed, or completed with errors.
create diskgroup DATA ... failed
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Add failed, or completed with errors.
Command return code of 1 (256) from command: /u01/app/11.2.0/grid/bin/crsctl add type ora.registry.acfs.type -basetype 
   ora.local_resource.type -file /u01/app/11.2.0/grid/crs/template/registry.acfs.type
add ora.registry.acfs.type ... failed
PRCR-1070 : Failed to check if resource ora.net1.network is registered
Cannot communicate with crsd
add scan=scan-cluster.orasrv.com ... failed
Preparing packages for installation...
cvuqdisk-1.0.7-1                                   #这里有个提示,需要安装cvuqdisk-1.0.7-1包
Configure Oracle Grid Infrastructure for a Cluster ... failed
Updating inventory properties for clusterware
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 3498 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'UpdateNodeList' was successful.

#使用crsctl check时收到了crs-4535错误
[root@linux1 bin]# ./crsctl check cluster      
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

2、分析日志

#查看grid的crsd部分的日志,注意该日志位于$CRS_HOME/log/node_name/crsd
[root@linux1 crsd]# tail -30 crsdOUT.log  
2013-07-16 16:27:21  
CRSD REBOOT
Unable to resolve address for localhost:2016
ONS runtime exiting
Fatal error: eONS: eonsapi.c: Aug  4 2009 21:09:36
2013-07-16 16:27:24  
Changing directory to /u01/app/11.2.0/grid/log/linux1/crsd
2013-07-16 16:27:24  
CRSD REBOOT
Unable to resolve address for localhost:2016
ONS runtime exiting
Fatal error: eONS: eonsapi.c: Aug  4 2009 21:09:36
2013-07-16 16:27:26  
Changing directory to /u01/app/11.2.0/grid/log/linux1/crsd
2013-07-16 16:27:26  
CRSD REBOOT
Unable to resolve address for localhost:2016
ONS runtime exiting
Fatal error: eONS: eonsapi.c: Aug  4 2009 21:09:36
2013-07-16 16:27:29  
Changing directory to /u01/app/11.2.0/grid/log/linux1/crsd
2013-07-16 16:27:29  
CRSD REBOOT
Unable to resolve address for localhost:2016
ONS runtime exiting
Fatal error: eONS: eonsapi.c: Aug  4 2009 21:09:36
2013-07-16 16:48:00  
Changing directory to /u01/app/11.2.0/grid/log/linux1/crsd
2013-07-16 16:48:00  
CRSD REBOOT
#上面的日志提示不能够解析localhost

#看看grid的主日志,也就是alert_nodename部分的描述
[root@linux1 linux1]# tail -100 alertlinux1.log | more
2013-07-16 16:27:13.688
[crsd(3913)]CRS-1201:CRSD started on node linux1.
2013-07-16 16:27:14.338
[/u01/app/11.2.0/grid/bin/oraagent.bin(3993)]CRS-5823:Could not initialize agent framework. Details at (:CRSAGF00120:) in
 /u01/app/11.2.0/grid/log/linux1/agent/crsd/oraagent_grid/oraagent_grid.log.
2013-07-16 16:27:14.932
[ohasd(2748)]CRS-2765:Resource 'ora.crsd' has failed on server 'linux1'.
# Meatlink [ID 1230899.1] 有关于该问题的描述,就是需要添加localhost到hosts文件
# Author : Robinson
# Blog   : http://blog.csdn.net/robinson_0612

3、解决故障

#查看本地的hosts文件,下面是更改后的hosts配置文件
[root@linux1 bin]# more /etc/hosts | grep 127.0
#127.0.0.1              linux1.orasrv.com linux1 localhost.localdomain localhost  #这个是安装OS时自动生成的
#127.0.0.1               linux1.orasrv.com linux1          #这个是安装rac之前配置的,看来这个写法有问题,一定要写localhost
127.0.0.1  localhost.orasrv.com localhost                  #添加一个新的关于localhost的解析entry

#尝试启动crs
[root@linux1 bin]# ./crsctl start res ora.crsd -init
CRS-2672: Attempting to start 'ora.crsd' on 'linux1'
CRS-2676: Start of 'ora.crsd' on 'linux1' succeeded

#crs成功启动
[root@linux1 bin]# ./crsctl check cluster
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

[root@linux1 bin]# ./crsctl stat res -t -init
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.asm
      1        ONLINE  ONLINE       linux1                   Started             
ora.crsd
      1        ONLINE  ONLINE       linux1                                       
ora.cssd
      1        ONLINE  ONLINE       linux1                                       
ora.cssdmonitor
      1        ONLINE  ONLINE       linux1                                       
ora.ctssd
      1        ONLINE  ONLINE       linux1                   ACTIVE:0            
ora.diskmon
      1        ONLINE  ONLINE       linux1                                       
ora.drivers.acfs
      1        ONLINE  ONLINE       linux1                                       
ora.evmd
      1        ONLINE  ONLINE       linux1                                       
ora.gipcd
      1        ONLINE  ONLINE       linux1                                       
ora.gpnpd
      1        ONLINE  ONLINE       linux1                                       
ora.mdnsd
      1        ONLINE  ONLINE       linux1      

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • Oracle 11g RAC crs_stat 命令结果完整显示

    Oracle 11g RAC中crs_stat命令较之前的版本多出了很多新的不同的资源类型,缺省情况下,使用crs_stat -t来查看资源是密密麻麻一大片,看...

    Leshami
  • dbms_lock.relase 无法释放自定义的锁?

          最近开发人员说使用dbms_lock.allocate_unique自定义的锁在使用dbms_lock.relase无法释放,下面来个演示的例子来看...

    Leshami
  • ORA-00119,ORA-00132 错误处理

    最近系统启动时,收到了ORA-00119以及ORA-00132的错误,该错误实际上跟LISTENER有关,通常的处理办法是将spfile转储为pfile然后从...

    Leshami
  • 11gRAC报错CRS-4535, CRS-4000解决

    使用crsctl查看集群各资源状态,在任一节点都会直接报错CRS-4535, CRS-4000;但此时数据库是可以被正常访问的。 具体故障现象如下:

    Alfred Zhao
  • 实用 | Apache Hadoop 3.0.0-alpha2版本发布

    作者:Andrew Wang,Ray Chiang Andrew Wang是Cloudera公司HDFS团队的一名软件工程师、Apache Hadoop PMC...

    小莹莹
  • SpringFramework之ClassPathBeanDefinitionScanner

                                                                                    ...

    克虏伯
  • [DeeplearningAI笔记]序列模型2.1-2.2词嵌入word embedding

    吴恩达老师课程原地址: https://mooc.study.163.com/smartSpec/detail/1001319001.htm

    DrawSky
  • python提供的几个很棒的高级函数

    用于筛选数据,只保留满足条件的值 filter(function, iterable)

    木又AI帮
  • 学习纲要:异步流程处理

    修改上面的代码,用 Promise,async/await,事件发布订阅 这几种方式实现下面的需求

    Joel
  • 编写Chrome扩展程序

    Chrome扩展程序商店地址为:https://chrome.google.com/webstore/category/extensions?hl=zh-CN

    书童小二

扫码关注云+社区

领取腾讯云代金券