CRS-0184:CRS-4639: Could not contact Oracle High Availability Services

Michael_DD發表於2014-11-24
CRS-0184:CRS-4639: Could not contact Oracle High Availability Services


RAC 報錯:
[grid@rac1 ~]:+ASM> crs_stat -t -v
CRS-0184: Cannot communicate with the CRS daemon.
[grid@rac1 ~]:+ASM> crsctl check crs
CRS-4639: Could not contact Oracle High Availability Services


[grid@rac2 ~]:+ASM> crs_stat -t -v
CRS-0184: Cannot communicate with the CRS daemon.
[grid@rac2 ~]:+ASM> crsctl check crs
CRS-4639: Could not contact Oracle High Availability Services

Orc 叢集配置資訊錯誤

原因:強制虛擬機器rac1 rac2 關閉電源,出現/app 目錄掛載不上
重新掛載mout後,出現叢集配置資訊錯誤


解決辦法:rac1 rac2 同樣方法處理
清除之前的配置資訊,重新執行root.sh來配置


清除之前的配置資訊:

[grid@rac1 ~]:+ASM> cd /app/grid/grid11g/crs/install
[grid@rac1 install]:+ASM> ll
total 8328
-rwxr-xr-x 1 grid oinstall    1273 Nov 20 19:39 cmdllroot.sh
-r-xr-xr-x 1 grid oinstall     797 Nov 20 17:46 crsconfig_addparams.sbs
-rwxr-xr-x 1 root oinstall  497715 Nov 20 17:46 crsconfig_lib.pm
-rwxr-xr-x 1 grid oinstall    4157 Nov 20 17:46 crsconfig_params
-rwxr-xr-x 1 grid oinstall    4877 Nov 20 17:46 crsconfig_params.sbs
-rwxr-xr-x 1 root oinstall   41420 Nov 20 17:46 crsdelete.pm
-rwxr-xr-x 1 root oinstall   24317 Nov 20 17:46 crspatch.pm
-rwxr-xr-x 1 root oinstall    8334 Nov 20 17:46 hasdconfig.pl
-rw-r--r-- 1 grid oinstall      68 Nov 20 17:46 inittab
-rwxr-xr-x 1 grid oinstall     115 Nov 20 17:46 install.excl
-rwxr-xr-x 1 grid oinstall       0 Nov 20 17:46 install.incl
-rwxr-xr-x 1 grid oinstall      17 Nov 20 17:46 installRemove.excl
-r-xr-xr-- 1 grid oinstall    2144 Nov 20 19:39 onsconfig
-rwxr-xr-x 1 root oinstall   25147 Nov 20 17:46 oraacfs.pm
-rw-r--r-- 1 grid oinstall     220 Nov 20 17:46 oracle-ohasd.conf
-rwxr-xr-x 1 root oinstall   13478 Nov 20 17:46 oracss.pm
-rw-r--r-- 1 grid oinstall     414 Nov 20 17:46 paramfile.crs
-rw-r--r-- 1 root oinstall      55 Nov 20 19:39 ParentDirPerm_rac2.txt
-rwxr-xr-x 1 root oinstall    5332 Nov 20 19:39 preupdate.sh
-rwxr-xr-x 1 root oinstall   36870 Nov 20 17:46 rootcrs.pl
-rwxr-xr-x 1 root oinstall   17679 Nov 20 17:46 roothas.pl
-rwxr-xr-x 1 root oinstall     915 Nov 20 17:46 rootofs.sh
-rwxr-xr-x 1 grid oinstall    3278 Nov 20 17:46 s_crsconfig_defs
-rwxr-xr-x 1 root oinstall  102572 Nov 20 17:46 s_crsconfig_lib.pm
-rwxr-x--- 1 root oinstall     397 Nov 20 19:39 s_crsconfig_rac2_env.txt
-rwxr-xr-x 1 root oinstall 7636861 Nov 20 17:46 tfa_setup.sh

[grid@rac1 install]:+ASM> ./roothas.pl -deconfig -force -verbose
You must be logged in as root to run this script.
2014-11-24 10:58:17: ###### Begin Error Stack Trace ######
2014-11-24 10:58:17:     Package         File                 Line Calling   
2014-11-24 10:58:17:     --------------- -------------------- ---- ----------
2014-11-24 10:58:17:  1: crsconfig_lib   s_crsconfig_lib.pm    253 crsconfig_lib::error
2014-11-24 10:58:17:  2: crsconfig_lib   crsconfig_lib.pm     1495 crsconfig_lib::s_check_SuperUser
2014-11-24 10:58:17:  3: main            roothas.pl            228 crsconfig_lib::check_SuperUser
2014-11-24 10:58:17: ####### End Error Stack Trace #######

Log in as root and rerun this script.
2014-11-24 10:58:17: ###### Begin Error Stack Trace ######
2014-11-24 10:58:17:     Package         File                 Line Calling   
2014-11-24 10:58:17:     --------------- -------------------- ---- ----------
2014-11-24 10:58:17:  1: crsconfig_lib   s_crsconfig_lib.pm    254 crsconfig_lib::error
2014-11-24 10:58:17:  2: crsconfig_lib   crsconfig_lib.pm     1495 crsconfig_lib::s_check_SuperUser
2014-11-24 10:58:17:  3: main            roothas.pl            228 crsconfig_lib::check_SuperUser
2014-11-24 10:58:17: ####### End Error Stack Trace #######

2014-11-24 10:58:17: Not running as authorized user
Insufficient privileges to execute this script
2014-11-24 10:58:17: ###### Begin Error Stack Trace ######
2014-11-24 10:58:17:     Package         File                 Line Calling   
2014-11-24 10:58:17:     --------------- -------------------- ---- ----------
2014-11-24 10:58:17:  1: main            roothas.pl            230 crsconfig_lib::error
2014-11-24 10:58:17: ####### End Error Stack Trace #######

[grid@rac1 install]:+ASM> exit
logout
[root@rac1 ~]# cd /app/grid/grid11g/crs/install
[root@rac1 install]# ./roothas.pl -deconfig -force -verbose
Using configuration parameter file: ./crsconfig_params
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Stop failed, or completed with errors.
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Delete failed, or completed with errors.
CRS-4544: Unable to connect to OHAS
CRS-4000: Command Stop failed, or completed with errors.
Successfully deconfigured Oracle Restart stack

重新配置
[root@rac1 install]# cd /app/grid/grid11g/
[root@rac1 grid11g]# ll
total 292
drwxr-xr-x  6 grid oinstall  4096 Nov 20 17:44 assistants
drwxrwxrwt  6 root oinstall  4096 Nov 20 19:39 auth
drwxr-xr-x  2 root oinstall 12288 Nov 20 19:39 bin
drwxrwxr-x  5 grid oinstall  4096 Nov 24 11:00 cdata
drwxrwxr-x  4 grid oinstall  4096 Nov 20 19:39 cfgtoollogs
drwxr-xr-x  4 grid oinstall  4096 Nov 20 17:44 clone
drwxr-x---  4 root oinstall  4096 Nov 20 19:39 crf
drwxr-xr-x 17 root oinstall  4096 Nov 20 19:39 crs
drwxr-xr-x  3 grid oinstall  4096 Nov 20 17:44 csmig
drwx--x--x  6 grid oinstall  4096 Nov 20 17:44 css
drwxr-xr-x  3 root oinstall  4096 Nov 20 19:39 ctss
drwxrwxr-x 10 grid oinstall  4096 Nov 20 19:39 cv
drwxr-xr-x  2 grid oinstall  4096 Nov 21 09:22 dbs
drwxr-xr-x  2 grid oinstall  4096 Nov 20 17:48 dc_ocm
drwxr-xr-x  4 grid oinstall  4096 Nov 20 17:45 deinstall
drwxr-xr-x  3 grid oinstall  4096 Nov 20 17:44 demo
drwxr-xr-x  3 grid oinstall  4096 Nov 20 17:44 diagnostics
drwxr-x---  3 grid oinstall  4096 Nov 20 19:39 eons
drwxr-x---  7 grid oinstall  4096 Nov 20 17:44 evm
drwxr-x---  3 grid oinstall  4096 Nov 20 19:39 gipc
drwxr-x---  3 root oinstall  4096 Nov 20 19:39 gnsd
drwxr-x---  6 grid oinstall  4096 Nov 20 19:39 gpnp
drwxr-xr-x  3 grid oinstall  4096 Nov 20 17:44 has
drwxr-xr-x  3 grid oinstall  4096 Nov 20 17:43 hs
drwxr-xr-x  7 grid oinstall  4096 Nov 20 19:39 install
drwxr-xr-x  2 grid oinstall  4096 Nov 20 17:46 instantclient
drwxrwx--- 14 grid oinstall  4096 Nov 20 17:45 inventory
drwxr-xr-x  7 grid oinstall  4096 Nov 20 17:44 javavm
drwxr-xr-x  3 grid oinstall  4096 Nov 20 17:46 jdbc
drwxr-xr-x  6 grid oinstall  4096 Nov 20 17:46 jdk
drwxr-xr-x  2 grid oinstall  4096 Nov 20 19:39 jlib
lrwxrwxrwx  1 grid oinstall    26 Nov 20 17:44 JRE -> /app/grid/grid11g/jdk/jre/
drwxr-xr-x 12 grid oinstall  4096 Nov 20 17:43 ldap
drwxr-xr-x  3 root oinstall 12288 Nov 20 19:39 lib
drwxrwxr-x  5 grid oinstall  4096 Nov 20 19:39 log
drwxr-xr-x  5 grid oinstall  4096 Nov 20 17:43 md
drwxr-x---  3 grid oinstall  4096 Nov 20 19:39 mdns
drwxr-xr-x  2 grid oinstall  4096 Nov 20 17:46 mesg
drwxr-xr-x 11 grid oinstall  4096 Nov 20 17:43 network
drwxr-xr-x  6 grid oinstall  4096 Nov 20 17:44 nls
drwxr-xr-x 20 grid oinstall  4096 Nov 20 17:48 oc4j
drwxr-x---  3 grid oinstall  4096 Nov 20 19:39 ohasd
drwxr-xr-x  3 root oinstall  4096 Nov 20 19:39 ologgerd
drwxr-xr-x  8 grid oinstall  4096 Nov 20 17:46 OPatch
drwxr-xr-x  7 grid oinstall  4096 Nov 20 17:44 opmn
drwxr-xr-x  4 grid oinstall  4096 Nov 20 17:44 oracore
-rw-r-----  1 grid oinstall    57 Nov 20 17:50 oraInst.loc
drwxr-xr-x  7 grid oinstall  4096 Nov 20 17:44 ord
drwxr-xr-x  3 root oinstall  4096 Nov 20 19:39 osysmond
drwxr-xr-x  8 grid oinstall  4096 Nov 20 17:46 oui
drwxr-xr-x  4 grid oinstall  4096 Nov 20 17:44 owm
drwxr-xr-x  5 grid oinstall  4096 Nov 20 17:43 perl
drwxr-xr-x  6 grid oinstall  4096 Nov 20 17:45 plsql
drwxr-xr-x  6 grid oinstall  4096 Nov 20 17:44 precomp
drwxr-xr-x  9 grid oinstall  4096 Nov 20 17:45 racg
drwxr-xr-x 13 grid oinstall  4096 Nov 20 17:44 rdbms
drwxr-xr-x  3 grid oinstall  4096 Nov 20 17:44 relnotes
-rwxr-x---  1 grid oinstall   449 Nov 20 17:44 root.sh
-rwxr-xr-x  1 grid oinstall   462 Nov 20 17:44 rootupgrade.sh
drwxr-xr-x  4 grid oinstall  4096 Nov 20 17:44 scheduler
drwxr-xr-x  3 grid oinstall  4096 Nov 20 17:44 slax
drwxr-xr-x  7 grid oinstall  4096 Nov 20 17:43 sqlplus
drwxr-xr-x  9 grid oinstall  4096 Nov 20 17:44 srvm
drwxr-xr-x  3 grid oinstall  4096 Nov 20 17:44 suptools
drwxr-xr-x  5 grid oinstall  4096 Nov 20 17:44 sysman
drwxr-xr-x  4 root root      4096 Nov 20 19:40 tfa
drwxr-xr-x  5 grid oinstall  4096 Nov 20 17:43 usm
drwxr-xr-x  2 grid oinstall  4096 Nov 20 17:45 utl
drwxr-xr-x  3 grid oinstall  4096 Nov 20 17:44 wwg
drwxr-xr-x  5 grid oinstall  4096 Nov 20 17:46 xdk
[root@rac1 grid11g]# ./root
root.sh         rootupgrade.sh  
[root@rac1 grid11g]# ./root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /app/grid/grid11g

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /app/grid/grid11g/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
Adding Clusterware entries to inittab
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node rac1, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
PRKO-2190 : VIP exists for node rac2, VIP name rac2-vip
Configure Oracle Grid Infrastructure for a Cluster ... succeeded


檢測成功!!!
[root@rac1 grid11g]# su - grid
[grid@rac1 ~]$ . pro_asm2
[grid@rac1 ~]:+ASM> crs_stat -t -v
Name           Type           R/RA   F/FT   Target    State     Host        
----------------------------------------------------------------------
ora.BACK.dg    ora....up.type 0/5    0/     ONLINE    ONLINE    rac1        
ora.DATA.dg    ora....up.type 0/5    0/     ONLINE    ONLINE    rac1        
ora....ER.lsnr ora....er.type 0/5    0/     OFFLINE   OFFLINE               
ora....N1.lsnr ora....er.type 0/5    0/0    ONLINE    ONLINE    rac1        
ora.OCR.dg     ora....up.type 0/5    0/     ONLINE    ONLINE    rac1        
ora.asm        ora.asm.type   0/5    0/     ONLINE    ONLINE    rac1        
ora.cvu        ora.cvu.type   0/5    0/0    ONLINE    ONLINE    rac1        
ora.gsd        ora.gsd.type   0/5    0/     OFFLINE   OFFLINE               
ora....network ora....rk.type 0/5    0/     ONLINE    ONLINE    rac1        
ora.oc4j       ora.oc4j.type  0/1    0/2    ONLINE    ONLINE    rac1        
ora.ons        ora.ons.type   0/3    0/     ONLINE    ONLINE    rac1        
ora....SM1.asm application    0/5    0/0    ONLINE    ONLINE    rac1        
ora....C1.lsnr application    0/5    0/0    OFFLINE   OFFLINE               
ora.rac1.gsd   application    0/5    0/0    OFFLINE   OFFLINE               
ora.rac1.ons   application    0/3    0/0    ONLINE    ONLINE    rac1        
ora.rac1.vip   ora....t1.type 0/0    0/0    ONLINE    ONLINE    rac1        
ora....SM2.asm application    0/5    0/0    ONLINE    ONLINE    rac2        
ora....C2.lsnr application    0/5    0/0    OFFLINE   OFFLINE               
ora.rac2.gsd   application    0/5    0/0    OFFLINE   OFFLINE               
ora.rac2.ons   application    0/3    0/0    ONLINE    ONLINE    rac2        
ora.rac2.vip   ora....t1.type 0/0    0/0    ONLINE    ONLINE    rac2        
ora....ry.acfs ora....fs.type 0/5    0/     ONLINE    ONLINE    rac1        
ora.scan1.vip  ora....ip.type 0/0    0/0    ONLINE    ONLINE    rac1        
[grid@rac1 ~]:+ASM>

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

相關文章