Home > Uncategorized > Useful notes for oracle CRS

Useful notes for oracle CRS

To find out cluster and daemon status:
=========================================


$GRID_HOME/bin/crsctl check crs

CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

To find out clusterware processes state:
===========================================


$GRID_HOME/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.cssdmonitor
      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                                        

Use the following command to query the resource state of all user resources:
============================================================================


[oracle@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.cssdmonitor
      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                                        

 
[oracle@rac1 bin]$ ./crsctl stat res -t

-----------------------------------------------------------------
NAME           TARGET  STATE        SERVER       STATE_DETAILS      
------------------------------------------------------------------
Local Resources
------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       rac1                                        
               ONLINE  ONLINE       rac2                                        
ora.FLASH.dg
               ONLINE  ONLINE       rac1                                        
               ONLINE  ONLINE       rac2                                        
ora.LISTENER.lsnr
               ONLINE  ONLINE       rac1                                        
               ONLINE  ONLINE       rac2                                        
ora.asm
               ONLINE  ONLINE       rac1           Started            
               ONLINE  ONLINE       rac2           Started            
ora.eons
               ONLINE  ONLINE       rac1                                        
               ONLINE  ONLINE       rac2                                        
ora.gsd
               OFFLINE OFFLINE      rac1                                        
               OFFLINE OFFLINE      rac2                                        
ora.net1.network
               ONLINE  ONLINE       rac1                                        
               ONLINE  ONLINE       rac2                                        
ora.ons
               ONLINE  ONLINE       rac1                                        
               ONLINE  ONLINE       rac2                                        
ora.registry.acfs
               ONLINE  ONLINE       rac1                                        
               ONLINE  ONLINE       rac2                                        
---------------------------------------------------------------
Cluster Resources
---------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       rac1                                        
ora.oc4j
      1        OFFLINE OFFLINE                                                  
ora.rac1.vip
      1        ONLINE  ONLINE       rac1                                        
ora.rac2.vip
      1        ONLINE  ONLINE       rac2                                        
ora.scan1.vip
      1        ONLINE  ONLINE       rac1                                        
ora.testrac.db
      1        ONLINE  ONLINE       rac1            Open               
      2        ONLINE  ONLINE       rac2            Open               

 

To start an offline daemon – if ora.crsd is OFFLINE:
$GRID_HOME/bin/crsctl start res ora.crsd -init
If this fails, try with “-f” option:
$GRID_HOME/bin/crsctl stop res ora.crsd -init -f

If a critical clusterware process fails to start and there’s no obvious reason,
the next action is to restart clusterware on local node:
$GRID_HOME/bin/crsctl stop crs -f
If above command fails, you may kill all clusterware processes by executing:
ps -ef | grep keyword | grep -v grep | awk ‘{print $2}’ | xargs kill -9
As a last resort, you can take out local node by rebooting it.

OHASD.BIN
==========

spawns 4 agent monitors to start level resource


oraagent: responsible for ora.asm, ora.evmd, ora.gipcd,
ora.gpnpd, ora.mdnsd etc
orarootagent: responsible for ora.crsd, ora.ctssd,
ora.diskmon, ora.drivers.acfs etc
cssdagent / cssdmonitor: responsible for ora.cssd(for ocssd.bin) and ora.cssdmonitor(for cssdmonitor itself)


Useful Documentation from oracle for RAC 
==========================================
How to Troubleshoot Grid Infrastructure Startup Issues [ID 1050908.1]
What to Do if 11gR2 Clusterware is Unhealthy [ID 1068835.1]
How to Proceed from Failed 11gR2 Grid Infrastructure (CRS) Installation [ID 942166.1]
11gR2 Clusterware and Grid Home - What You Need to Know [ID 1053147.1]
How to recreate OCR/Voting disk accidentally deleted [ID 399482.1]
How to Proceed from Failed 11gR2 Grid Infrastructure (CRS) Installation [ID 942166.1]
Troubleshooting 11.2 Grid Infastructure Installation Root.sh Issues [ID 1053970.1]
How to Troubleshoot Connectivity Issue with 11gR2 SCAN Name [ID 975457.1]

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: