RAC解決單節點報 CRS-4047: No Oracle Clusterware components configured.

muxinqing發表於2014-02-20

 

[root@linux1 install]# ./rootcrs.pl -h 
Unknown option: h 
Usage: 
      rootcrs.pl [-verbose] [-upgrade | -patch] [-hahome
                 [-paramfile ]  
                 [-deconfig | -downgrade] [-force] [-lastnode] 
                 [-downgrade] [-oldcrshome ] [-version ]   
                 [-unlock [-crshome ]] 
   
      Options: 
       -verbose    Run this script in verbose mode 
       -upgrade    Oracle HA is being upgraded from previous version 
       -patch      Oracle HA is being upgraded to a patch version 
       -hahome     Complete path of Oracle Clusterware home 
       -paramfile  Complete path of file specifying HA parameter values 
       -lastnode   Force the node this is executing on to be considered the 
                   last node of the install and perform actions associated 
                   with configurig the last node 
       -downgrade  Downgrade the clusterware 
       -version    For use with downgrade; special handling is required if 
                   downgrading to 9i. This is the old crs version in the format 
                   A.B.C.D.E (e.g 11.1.0.6.0). 
       -deconfig   Remove Oracle Clusterware to allow it to be uninstalled or reinstalled. 
       -force      Force the executon of steps in delete that cannot be verified  
                   to be safe 
       -unlock     Unlock CRS home  
       -crshome    Complete path of crs home. Use with unlock option. 
       -oldcrshome For use with downgrade. Complete path of the old crs home. 
   
      If neither -upgrade nor -patch is supplied, a new install is performed 
   
      To see the full manpage for this program, execute: 
        perldoc rootcrs.pl      
#對於執行root.sh失敗時,我們可以透過該命令以-deconfig 引數來清除crs的配置資訊,然後根據log修復故障或使用patch之後再重新執行root.sh
#對於該命令的patch,upgrade,downgrade用法再此不作詳細介紹
#重新配置Grid Infrastructure並不會移除已經複製的二進位制檔案,僅僅是回覆到配置crs之前的狀態,下面是其步驟 
   
a、使用root使用者登入,並執行下面的命令(所有節點,但最後一個節點除外) 
  # perl $GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force 
     
b、同樣使用root使用者在最後一個節點執行下面的命令。該命令將清空ocr 配置和voting disk   
  # perl $GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force -lastnode 

[root@his2 bin]# ./crsctl check crs  檢查服務狀態
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Check failed, or completed with errors.
[root@his2 bin]# ./crsctl stat res -t
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Status failed, or completed with errors.
[root@his2 bin]# ./crs_stat -t
CRS-0184: Cannot communicate with the CRS daemon.

/app/grid/product/11.2.0/grid/crs/install/rootcrs.pl -deconfig -force 重置crs登錄檔
Using configuration parameter file: /app/grid/product/11.2.0/grid/crs/install/crsconfig_params
Network exists: 1/192.168.20.0/255.255.255.0/eth0, type static
VIP exists: /his1-vip/192.168.20.6/192.168.20.0/255.255.255.0/eth0, hosting node his1
VIP exists: /his2-vip/192.168.20.7/192.168.20.0/255.255.255.0/eth0, hosting node his2
GSD exists
ONS exists: Local port 6100, remote port 6200, EM port 2016
ACFS-9200: Supported
CRS-2673: Attempting to stop 'ora.registry.acfs' on 'his2'
CRS-2677: Stop of 'ora.registry.acfs' on 'his2' succeeded
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'his2'
CRS-2673: Attempting to stop 'ora.crsd' on 'his2'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'his2'
CRS-2673: Attempting to stop 'ora.ORACRS.dg' on 'his2'
CRS-2673: Attempting to stop 'ora.crds3db.db' on 'his2'
CRS-2677: Stop of 'ora.ORACRS.dg' on 'his2' succeeded
CRS-2677: Stop of 'ora.crds3db.db' on 'his2' succeeded
CRS-2673: Attempting to stop 'ora.ORAARCH.dg' on 'his2'
CRS-2673: Attempting to stop 'ora.ORADATA.dg' on 'his2'
CRS-2677: Stop of 'ora.ORAARCH.dg' on 'his2' succeeded
CRS-2677: Stop of 'ora.ORADATA.dg' on 'his2' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'his2'
CRS-2677: Stop of 'ora.asm' on 'his2' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'his2' has completed
CRS-2677: Stop of 'ora.crsd' on 'his2' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'his2'
CRS-2673: Attempting to stop 'ora.evmd' on 'his2'
CRS-2673: Attempting to stop 'ora.asm' on 'his2'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'his2'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'his2'
CRS-2677: Stop of 'ora.asm' on 'his2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'his2'
CRS-2677: Stop of 'ora.evmd' on 'his2' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'his2' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'his2' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'his2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'his2'
CRS-2677: Stop of 'ora.cssd' on 'his2' succeeded
CRS-2673: Attempting to stop 'ora.diskmon' on 'his2'
CRS-2673: Attempting to stop 'ora.crf' on 'his2'
CRS-2677: Stop of 'ora.diskmon' on 'his2' succeeded
CRS-2677: Stop of 'ora.crf' on 'his2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'his2'
CRS-2677: Stop of 'ora.drivers.acfs' on 'his2' succeeded
CRS-2677: Stop of 'ora.gipcd' on 'his2' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'his2'
CRS-2677: Stop of 'ora.gpnpd' on 'his2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'his2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Successfully deconfigured Oracle clusterware stack on this node
[root@his1 ~]# su - grid
[grid@his1 ~]$ crs_stat -t         在節點1上面只能看到節點1的服務這說明節點2有問題了
Name           Type           Target    State     Host       
------------------------------------------------------------
ora....ER.lsnr ora....er.type ONLINE    ONLINE    his1       
ora....N1.lsnr ora....er.type ONLINE    ONLINE    his1       
ora.ORAARCH.dg ora....up.type ONLINE    ONLINE    his1       
ora.ORACRS.dg  ora....up.type ONLINE    ONLINE    his1       
ora.ORADATA.dg ora....up.type ONLINE    ONLINE    his1       
ora.asm        ora.asm.type   ONLINE    ONLINE    his1       
ora.crds3db.db ora....se.type ONLINE    ONLINE    his1       
ora.cvu        ora.cvu.type   ONLINE    ONLINE    his1       
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE              
ora....SM1.asm application    ONLINE    ONLINE    his1       
ora....S1.lsnr application    ONLINE    ONLINE    his1       
ora.his1.gsd   application    OFFLINE   OFFLINE              
ora.his1.ons   application    ONLINE    ONLINE    his1       
ora.his1.vip   ora....t1.type ONLINE    ONLINE    his1       
ora....network ora....rk.type ONLINE    ONLINE    his1       
ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    his1       
ora.ons        ora.ons.type   ONLINE    ONLINE    his1       
ora....ry.acfs ora....fs.type ONLINE    ONLINE    his1       
ora.scan1.vip  ora....ip.type ONLINE    ONLINE    his1       

[grid@his1 ~]$ crsctl stat res -t        在1節點上面只能看到1資源說明節點2有問題了
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
               ONLINE  ONLINE       his1                                        
ora.ORAARCH.dg
               ONLINE  ONLINE       his1                                        
ora.ORACRS.dg
               ONLINE  ONLINE       his1                                        
ora.ORADATA.dg
               ONLINE  ONLINE       his1                                        
ora.asm
               ONLINE  ONLINE       his1                     Started            
ora.gsd
               OFFLINE OFFLINE      his1                                        
ora.net1.network
               ONLINE  ONLINE       his1                                        
ora.ons
               ONLINE  ONLINE       his1                                        
ora.registry.acfs
               ONLINE  ONLINE       his1                                        
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       his1                                        
ora.crds3db.db
      1        ONLINE  ONLINE       his1                     Open               
      2        ONLINE  OFFLINE                               Instance Shutdown  
ora.cvu
      1        ONLINE  ONLINE       his1                                        
ora.his1.vip
      1        ONLINE  ONLINE       his1                                        
ora.oc4j
      1        ONLINE  ONLINE       his1                                        
ora.scan1.vip
      1        ONLINE  ONLINE       his1                 

[root@his2 bin]# /app/grid/product/11.2.0/grid/root.sh   執行roo.sh重新配置叢集所有服務
Running Oracle 11g root script...

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

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/product/11.2.0/grid/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
OLR initialization - successful
Adding daemon to inittab
ACFS-9200: Supported
ACFS-9300: ADVM/ACFS distribution files found.
ACFS-9307: Installing requested ADVM/ACFS software.
ACFS-9308: Loading installed ADVM/ACFS drivers.
ACFS-9321: Creating udev for ADVM/ACFS.
ACFS-9323: Creating module dependencies - this may take some time.
ACFS-9327: Verifying ADVM/ACFS devices.
ACFS-9309: ADVM/ACFS installation correctness verified.
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node his1, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
Preparing packages for installation...
cvuqdisk-1.0.9-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded  

[root@his2 bin]# ./crsctl stat res -t    看結果已經恢復正常
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
               ONLINE  ONLINE       his1                                        
               ONLINE  ONLINE       his2                                        
ora.ORAARCH.dg
               ONLINE  ONLINE       his1                                        
               ONLINE  ONLINE       his2                                        
ora.ORACRS.dg
               ONLINE  ONLINE       his1                                        
               ONLINE  ONLINE       his2                                        
ora.ORADATA.dg
               ONLINE  ONLINE       his1                                        
               ONLINE  ONLINE       his2                                        
ora.asm
               ONLINE  ONLINE       his1                     Started            
               ONLINE  ONLINE       his2                                        
ora.gsd
               OFFLINE OFFLINE      his1                                        
               OFFLINE OFFLINE      his2                                        
ora.net1.network
               ONLINE  ONLINE       his1                                        
               ONLINE  ONLINE       his2                                        
ora.ons
               ONLINE  ONLINE       his1                                        
               ONLINE  ONLINE       his2                                        
ora.registry.acfs
               ONLINE  ONLINE       his1                                        
               ONLINE  ONLINE       his2                                        
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       his1                                        
ora.crds3db.db
      1        ONLINE  ONLINE       his1                     Open               
      2        ONLINE  ONLINE       his2                     Open               
ora.cvu
      1        ONLINE  ONLINE       his1                                        
ora.his1.vip
      1        ONLINE  ONLINE       his1                                        
ora.his2.vip
      1        ONLINE  ONLINE       his2                                        
ora.oc4j
      1        ONLINE  ONLINE       his1                                        
ora.scan1.vip
      1        ONLINE  ONLINE       his1            
-----------------------------------------------------------end--------------------------------------------------------
轉載時候提示原作者或者以路徑連線方式        請您尊重筆記
技術群:132304250

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

相關文章