Oracle 11g RAC执行root.sh时遭遇CRS-0184/PRCR-1070问题(一)

2014-11-24 14:40:40 · 作者: · 浏览: 4
Oracle 11g RAC执行root.sh时遭遇CRS-0184/PRCR-1070问题
Oracle 11g RAC安装时,在第一个节点执行root.sh时遭遇了CRS-0184/PRCR-1070,Google了很多帖子也没有找到解决办法。呜呜,还是静下心来看日志!!最后的发现原来是一个不经意的小问题,如下面的描述。
1、故障现象
[python] 
#安装环境  
[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、分析日志
[python] 
#查看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  
  
#看