crsctl
olsnodes
cluvfy
RACcheck


csrctl

Amongst other things, the crsctl command allows you to check the health of the cluster. The following command displays the top-level view of the cluster.

# cd /u01/app/11.2.0/grid/bin

# ./crsctl check cluster -all
************************************************** ************
ol6-112-rac1:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
************************************************** ************
ol6-112-rac2:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
************************************************** ************
#

The following command gives information about the individual resources.

# ./crsctl stat res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE ol6-112-rac1
ONLINE ONLINE ol6-112-rac2
ora.LISTENER.lsnr
ONLINE ONLINE ol6-112-rac1
ONLINE ONLINE ol6-112-rac2
ora.asm
ONLINE ONLINE ol6-112-rac1 Started
ONLINE ONLINE ol6-112-rac2 Started
ora.gsd
OFFLINE OFFLINE ol6-112-rac1
OFFLINE OFFLINE ol6-112-rac2
ora.net1.network
ONLINE ONLINE ol6-112-rac1
ONLINE ONLINE ol6-112-rac2
ora.ons
ONLINE ONLINE ol6-112-rac1
ONLINE ONLINE ol6-112-rac2
ora.registry.acfs
ONLINE ONLINE ol6-112-rac1
ONLINE ONLINE ol6-112-rac2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE ol6-112-rac1
ora.LISTENER_SCAN2.lsnr
1 ONLINE ONLINE ol6-112-rac2
ora.LISTENER_SCAN3.lsnr
1 ONLINE ONLINE ol6-112-rac2
ora.cvu
1 ONLINE ONLINE ol6-112-rac2
ora.oc4j
1 ONLINE ONLINE ol6-112-rac2
ora.ol6-112-rac1.vip
1 ONLINE ONLINE ol6-112-rac1
ora.ol6-112-rac2.vip
1 ONLINE ONLINE ol6-112-rac2
ora.rac.db
1 ONLINE ONLINE ol6-112-rac1 Open
2 ONLINE ONLINE ol6-112-rac2 Open
ora.scan1.vip
1 ONLINE ONLINE ol6-112-rac1
ora.scan2.vip
1 ONLINE ONLINE ol6-112-rac2
ora.scan3.vip
1 ONLINE ONLINE ol6-112-rac2
#

olsnodes

Run the olsnodes command on all cluster nodes and see that it returns a list of all the nodes in each case.

# cd /u01/app/11.2.0/grid/bin

# ./olsnodes
ol6-112-rac1
ol6-112-rac2
#

cluvfy

You have probably run the runcluvfy.sh utility from the installation media before the installing the clusterware software. Once the Oracle software is installed, the cluvfy utility is available to provide useful post-installation information. Use the "-help" flag for usage information.

$ cluvfy stage -help

USAGE:
cluvfy stage {-pre|-post} [-verbose]

SYNTAX (for Stages):
cluvfy stage -pre cfs -n -s [-verbose]
cluvfy stage -pre
crsinst -file [-fixup [-fixupdir ]] [-verbose]
crsinst -upgrade [-n ] [-rolling] -src_crshome -dest_crshome
-dest_version [-fixup [-fixupdir ]] [-verbose]
crsinst -n [-r {10gR1|10gR2|11gR1|11gR2}]
[-c ] [-q ]
[-osdba ] [-orainv ]
[-asm [-asmgrp ] [-asmdev ]] [-crshome ]
[-fixup [-fixupdir ]] [-networks ]
[-verbose]
cluvfy stage -pre acfscfg -n [-asmdev ] [-verbose]
cluvfy stage -pre
dbinst -n [-r {10gR1|10gR2|11gR1|11gR2}] [-osdba ] [-d ]
[-fixup [-fixupdir ]] [-verbose]
dbinst -upgrade -src_dbhome [-dbname ] -dest_dbhome -dest_version
[-fixup [-fixupdir ]] [-verbose]
cluvfy stage -pre dbcfg -n -d [-fixup [-fixupdir ]] [-verbose]
cluvfy stage -pre hacfg [-osdba ] [-orainv ] [-fixup [-fixupdir ]] [-verbose]
cluvfy stage -pre nodeadd -n [-vip ] [-fixup [-fixupdir ]] [-verbose]
cluvfy stage -post hwos -n [-s ] [-verbose]
cluvfy stage -post cfs -n -f [-verbose]
cluvfy stage -post crsinst -n [-verbose]
cluvfy stage -post acfscfg -n [-verbose]
cluvfy stage -post hacfg [-verbose]
cluvfy stage -post nodeadd -n [-verbose]
cluvfy stage -post nodedel -n [-verbose]

$

Two examples are shown below.

$ cluvfy stage -post crsinst -n ol6-112-rac1,ol6-112-rac2
$ cluvfy stage -pre dbcfg -n ol6-112-rac1,ol6-112-rac2 -d /u01/app/oracle/product/11.2.0/db_1

In all cases, check through the output and correct any errors produced.
RACcheck

Oracle provide the RACcheck tool (MOS [ID 1268927.1]) to audit the configuration of RAC, CRS, ASM, GI etc. It supports database versions from 10.2-11.2, making it a useful starting point for most analysis. The MOS note includes the download and setup details.

$ unzip raccheck.zip
$ cd rachcheck
$ chmod 755 raccheck
$ ./raccheck -a

CRS stack is running and CRS_HOME is not set. Do you want to set CRS_HOME to /u01/app/11.2.0/grid?[y/n][y]

Checking ssh user equivalency settings on all nodes in cluster

Node ol6-112-rac2 is configured for ssh user equivalency for oracle user


Searching for running databases . . . . .

.
List of running databases registered in OCR
1. RAC
2. None

Select databases from list for checking best practices. For multiple databases, select 1 for All or comma separated number like 1,2 etc [1-2][1].
. .


Checking Status of Oracle Software Stack - Clusterware, ASM, RDBMS

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-------------------------------------------------------------------------------------------------------
Oracle Stack Status
-------------------------------------------------------------------------------------------------------
Host Name CRS Installed ASM HOME RDBMS Installed CRS UP ASM UP RDBMS UP DB Instance Name
-------------------------------------------------------------------------------------------------------
ol6-112-rac1 Yes Yes Yes Yes Yes Yes RAC1
ol6-112-rac2 Yes Yes Yes Yes Yes Yes RAC2
-------------------------------------------------------------------------------------------------------
.
.