crs_stat -t CRS-0184: Cannot communicate with the CRS daemon

urgel_babay發表於2016-02-29
2015.06.09

這次搭建RAC遇見各種問題,好不容易把oracle軟體安裝好了,安裝例項的時候,找不到asm磁碟。

在rac2上面看到asm服務是起來的,但是在rac1上面就檢視不到。
[root@rac1 bin]# ./crs_stat -t      
CRS-0184: Cannot communicate with the CRS daemon.
[root@rac1 bin]# ./crsctl start cluster -all
CRS-4690: Oracle Clusterware is already running on 'rac1'
CRS-4690: Oracle Clusterware is already running on 'rac2'
CRS-4000: Command Start failed, or completed with errors.
[root@rac1 bin]# ./crs_stat -t      
CRS-0184: Cannot communicate with the CRS daemon.

[root@rac1 bin]# /etc/init.d/oracleasm scandisks   -----  重新掃描asm磁碟,還是不行
Scanning the system for Oracle ASMLib disks:               [  OK  ]
[root@rac1 bin]# ./crs_stat -t                  
CRS-0184: Cannot communicate with the CRS daemon.
[root@rac1 bin]# /etc/init.d/oracleasm listdisks  ----顯示asm磁碟是存在的。
CRS1
CRS2
CRS3
DATA
FLASH
[root@rac1 bin]# ./crsctl  start crs
CRS-4640: Oracle High Availability Services is already active
CRS-4000: Command Start failed, or completed with errors.
[root@rac1 bin]# ./crs_stat -t
CRS-0184: Cannot communicate with the CRS daemon.

取消安裝例項,重啟系統

[root@rac1 bin]# ./crs_stat -t   -----  還是不行
CRS-0184: Cannot communicate with the CRS daemon.
[root@rac1 bin]# ./crs_stop -all
CRS-0184: Cannot communicate with the CRS daemon.
[root@rac1 bin]# /etc/init.d/oracleasm 
Usage: /etc/init.d/oracleasm {start|stop|restart|enable|disable|configure|createdisk|deletedisk|querydisk|listdisks|scandisks|status}
[root@rac1 bin]# /etc/init.d/oracleasm scandisks   ---再次掃描asm磁碟
Scanning the system for Oracle ASMLib disks:               [  OK  ]
[root@rac1 bin]# /etc/init.d/oracleasm listdisks         
CRS1
CRS2
CRS3
DATA
FLASH
[root@rac1 bin]# /etc/init.d/oracleasm restart    -----  感覺不行,所以直接重啟asm
Dropping Oracle ASMLib disks:                              [  OK  ]
Shutting down the Oracle ASMLib driver:                    [FAILED]
[root@rac1 bin]# /etc/init.d/oracleasm start  
Initializing the Oracle ASMLib driver:                     [  OK  ]
Scanning the system for Oracle ASMLib disks:               [  OK  ]
[root@rac1 bin]# /etc/init.d/oracleasm listdisks
CRS1
CRS2
CRS3
DATA
FLASH
[root@rac1 bin]# /etc/init.d/oracleasm scandisks
Scanning the system for Oracle ASMLib disks:               [  OK  ]
[root@rac1 bin]# ./crs_stat -t        ----- 這才可以了
Name           Type           Target    State     Host        
------------------------------------------------------------
ora.CRS.dg     ora....up.type ONLINE    ONLINE    rac1        
ora.DATA.dg    ora....up.type ONLINE    ONLINE    rac1        
ora.FLASH.dg   ora....up.type ONLINE    ONLINE    rac1        
ora....ER.lsnr ora....er.type ONLINE    ONLINE    rac1        
ora....N1.lsnr ora....er.type ONLINE    ONLINE    rac1        
ora.asm        ora.asm.type   ONLINE    ONLINE    rac1        
ora.cvu        ora.cvu.type   ONLINE    ONLINE    rac1        
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE               
ora....network ora....rk.type ONLINE    ONLINE    rac1        
ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    rac1        
ora.ons        ora.ons.type   ONLINE    ONLINE    rac1        
ora....SM1.asm application    ONLINE    ONLINE    rac1        
ora....C1.lsnr application    ONLINE    ONLINE    rac1        
ora.rac1.gsd   application    OFFLINE   OFFLINE               
ora.rac1.ons   application    ONLINE    ONLINE    rac1        
ora.rac1.vip   ora....t1.type ONLINE    ONLINE    rac1        
ora....SM2.asm application    ONLINE    ONLINE    rac2        
ora....C2.lsnr application    ONLINE    ONLINE    rac2        
ora.rac2.gsd   application    OFFLINE   OFFLINE               
ora.rac2.ons   application    ONLINE    ONLINE    rac2        
ora.rac2.vip   ora....t1.type ONLINE    ONLINE    rac2        
ora.scan1.vip  ora....ip.type ONLINE    ONLINE    rac1     

問題分析。應該是獲取不到asm資訊,

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

相關文章