Oracle 11gR2 RAC 執行root.sh時遭遇 CRS-0184/PRCR-1070

pxbibm發表於2014-05-11

在安裝Oracle 11g RAC時,在第一個節點執行root.sh時遭遇了CRS-0184/PRCR-1070的錯誤,錯誤如下面的描述。

1、故障現象

執行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                                 
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/rac1/crsd
[root@linux1 crsd]# tail -30 crsdOUT.log 
2014-05-10 12:50:22 
CRSD REBOOT
Unable to resolve address for localhost:2016
ONS runtime exiting
Fatal error: eONS: eonsapi.c: Aug  4 2009 21:09:36
2014-05-10 12:50:22   
Changing directory to /u01/app/11.2.0/grid/log/rac1/crsd
2014-05-10 12:50:22   
CRSD REBOOT
Unable to resolve address for localhost:2016
ONS runtime exiting
Fatal error: eONS: eonsapi.c: Aug  4 2009 21:09:36
2014-05-10 12:50:24 
Changing directory to /u01/app/11.2.0/grid/log/rac1/crsd
2014-05-10 12:50:24 
CRSD REBOOT
Unable to resolve address for localhost:2016
ONS runtime exiting
Fatal error: eONS: eonsapi.c: Aug  4 2009 21:09:36
2014-05-10 12:55:28 
Changing directory to /u01/app/11.2.0/grid/log/rac1/crsd
2014-05-10 12:55:28 
CRSD REBOOT
Unable to resolve address for localhost:2016
ONS runtime exiting
Fatal error: eONS: eonsapi.c: Aug  4 2009 21:09:36
2014-05-10 12:59:22 
Changing directory to /u01/app/11.2.0/grid/log/rac1/crsd
2014-05-10 12:59:22
CRSD REBOOT
#上面的日誌提示不能夠解析localhost

#看看grid的主日誌,也就是alert_nodename部分的描述
[root@linux1 linux1]# tail -100 alertrac1.log | more
2014-05-10 13:30:23.550
[crsd(3913)]CRS-1201:CRSD started on node rac1.
2014-05-10 13:30:28.340
[/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/rac1/agent/crsd/oraagent_grid/oraagent_grid.log.
2014-05-10 13:30:34.932
[ohasd(2748)]CRS-2765:Resource 'ora.crsd' has failed on server 'rac1'.
Meatlink [ID 1230899.1] 有關於該問題的描述,就是需要新增localhost到hosts檔案
3、解決故障

#檢視本地的hosts檔案,下面是更改後的hosts配置檔案
[root@rac1 ~]#cat /etc/hosts | grep 127.0
#127.0.0.1              linux1.orasrv.com linux1 localhost.localdomain localhost  #這個是安裝OS時自動生成的
#127.0.0.1              rac1           #這個是安裝rac之前配置的,這樣配置是有問題的,一定要寫localhost
127.0.0.1                 rac1           localhost                  #新增一個新的關於localhost的解析entry

#嘗試啟動crs
[root@rac1 bin]# ./crsctl start res ora.crsd -init
CRS-2672: Attempting to start 'ora.crsd' on 'rac1'
CRS-2676: Start of 'ora.crsd' on 'rac1' succeeded

#crs成功啟動
[root@rac1 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@rac1 bin]# ./crsctl stat res -t -init
------------------------------------------------------------------------------------------------------
NAME            TARGET      STATE        SERVER    STATE_DETAILS   Cluster Resources   
------------------------------------------------------------------------------------------------------
ora.asm                1              ONLINE  ONLINE      rac1                  Started           
ora.crsd                1              ONLINE  ONLINE      rac1                                     
ora.cssd                1              ONLINE  ONLINE      rac1                                     
ora.cssdmonit        1             ONLINE  ONLINE      rac1                                     
ora.ctssd               1             ONLINE  ONLINE      rac1                  ACTIVE:0           
ora.diskmon           1            ONLINE  ONLINE      rac1                                     
ora.drivers.acfs       1           ONLINE  ONLINE      rac1                                     
ora.evmd               1            ONLINE  ONLINE      rac1                                           
ora.gipcd               1            ONLINE  ONLINE      rac1                                           
ora.gpnpd            1            ONLINE  ONLINE      rac1                                           
ora.mdnsd            1            ONLINE  ONLINE      rac1    
-----------------------------------------------------------------------------------------------------------------------
pxboracle@live.com
2014.5.11 10:51
share you knowledge with the world.


 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12798004/viewspace-1158401/,如需轉載,請註明出處,否則將追究法律責任。

相關文章