CRS-0184: Cannot communicate with the CRS daemon.之节点脱离集群问题解决

报错信息:

[grid@rac01 ~]$ crs_stat -t               
CRS-0184: Cannot communicate with the CRS daemon.   
报错原因查找:
在节点1节点查看IP地址,VIP已经不存在
 
在节点2上运行"crs_stat -t"发现,节点1好像已经退出集群环境
[root@rac02 ~]# su - grid
[grid@rac02 ~]$  crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora.DATA.dg    ora....up.type ONLINE    ONLINE    rac02      
ora....ER.lsnr ora....er.type ONLINE    OFFLINE               
ora....N1.lsnr ora....er.type ONLINE    ONLINE    rac02      
ora.asm        ora.asm.type   ONLINE    ONLINE    rac02      
ora.cvu        ora.cvu.type   ONLINE    ONLINE    rac02      
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE               
ora....network ora....rk.type ONLINE    ONLINE    rac02      
ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    rac02      
ora.ons        ora.ons.type   ONLINE    ONLINE    rac02      
ora.rac01.vip  ora....t1.type ONLINE    ONLINE    rac02      
ora....SM2.asm application    ONLINE    ONLINE    rac02      
ora....02.lsnr application    OFFLINE   OFFLINE               
ora.rac02.gsd  application    OFFLINE   OFFLINE               
ora.rac02.ons  application    ONLINE    ONLINE    rac02      
ora.rac02.vip  ora....t1.type ONLINE    ONLINE    rac02      
ora....ry.acfs ora....fs.type ONLINE    ONLINE    rac02      
ora.scan1.vip  ora....ip.type ONLINE    ONLINE    rac02      

问题解决

清理节点1的配置信息,重新运行root.sh

[root@rac01 ~]# /u01/app/11.2.0.4/grid/crs/install/rootcrs.pl -verbose -deconfig -force
[root@rac01 ~]# /u01/app/11.2.0.4/grid/crs/install/roothas.pl -verbose -deconfig -force
#环境清理后,root用户下运行root.sh
[root@rac01 grid]# /u01/app/11.2.0.4/grid/root.sh 
#如一直卡住在Adding daemon to inittab,
#并且报错 ADVM/ACFS is not supported on redhat-release-server-6Server-6.5.0.1.el6.x86_64
#oracle官网解释是BUG,所以要另开一个会话窗口,包括在部署安装时也有这个情况
#新的会话窗口执行如下命令
[root@rac01 ~]# /bin/dd if=/var/tmp/.oracle/npohasd  of=/dev/null bs=1024 count=1


Adding daemon to inittab

CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
ADVM/ACFS is not supported on redhat-release-server-6Server-6.9.0.4.el6.x86_64



CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node rac2, number 2, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac1'
CRS-2676: Start of 'ora.mdnsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'rac1'
CRS-2676: Start of 'ora.gipcd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac1'
CRS-2676: Start of 'ora.gpnpd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac1'
CRS-2676: Start of 'ora.ctssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac1'
CRS-2676: Start of 'ora.asm' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'rac1'
CRS-2676: Start of 'ora.crsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'rac1'
CRS-2676: Start of 'ora.evmd' on 'rac1' succeeded
PRKO-2190 : VIP exists for node rac1, VIP name rac1-vip

add vip -n rac1 -k 1 -A rac1-vip/255.255.255.0/eth0 on node=rac1 ... 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 1635 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'UpdateNodeList' was successful. 

验证

验证
[root@rac01 ~]# su - grid
[grid@rac01 ~]$ crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora.DATA.dg    ora....up.type ONLINE    ONLINE    rac01      
ora....ER.lsnr ora....er.type OFFLINE   OFFLINE               
ora....N1.lsnr ora....er.type ONLINE    ONLINE    rac02      
ora.asm        ora.asm.type   ONLINE    ONLINE    rac01      
ora.cvu        ora.cvu.type   ONLINE    ONLINE    rac02      
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE               
ora....network ora....rk.type ONLINE    ONLINE    rac01      
ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    rac02      
ora.ons        ora.ons.type   ONLINE    ONLINE    rac01      
ora....SM1.asm application    ONLINE    ONLINE    rac01      
ora....01.lsnr application    OFFLINE   OFFLINE               
ora.rac01.gsd  application    OFFLINE   OFFLINE               
ora.rac01.ons  application    ONLINE    ONLINE    rac01      
ora.rac01.vip  ora....t1.type ONLINE    ONLINE    rac01      
ora....SM2.asm application    ONLINE    ONLINE    rac02      
ora....02.lsnr application    OFFLINE   OFFLINE               
ora.rac02.gsd  application    OFFLINE   OFFLINE               
ora.rac02.ons  application    ONLINE    ONLINE    rac02      
ora.rac02.vip  ora....t1.type ONLINE    ONLINE    rac02      
ora....ry.acfs ora....fs.type ONLINE    ONLINE    rac01      
ora.scan1.vip  ora....ip.type ONLINE    ONLINE    rac02