Checking CRS Status:
The below two commands are generally used to check the status of CRS. The first command lists the status of CRS on the local node whereas the other command shows the CRS status across all the nodes in Cluster.
crsctl check crs <<– for the local node
crsctl check cluster <<– for remote nodes in the cluster
[root@node1-ser ~]# crsctl check crs
Cluster Synchronization Services appears healthy
Cluster Ready Services appears healthy
Event Manager appears healthy
[root@node1-ser ~]#
For the below command to run, CSS needs to be running on the local node. The “ONLINE” status for remote node says that CSS is running on that node. When CSS is down on the remote node, the status of “OFFLINE” is displayed for that node.
[root@node1-ser ~]# crsctl check cluster
node1-ser ONLINE
node2-ser ONLINE
Viewing Cluster name:
I use below command to get the name of Cluster. The similar information can be retrieved from the dump file.
ocrdump -stdout -keyname SYSTEM | grep -A 1 clustername | grep ORATEXT | awk ‘{print $3}’
OR
ocrconfig -export /tmp/ocr_exp.dat -s online
for i in `strings /tmp/ocr_exp.dat | grep -A 1 clustername` ; do if [ $i != ‘SYSTEM.css.clustername’ ]; then echo $i; fi; done
OR
Oracle creates a directory with the same name as Cluster under the $ORA_CRS_HOME/cdata.
No. Of Nodes configured in Cluster:
The below command can be used to find out the number of nodes registered into the cluster. It also displays the node’s Public name, Private name and Virtual name along with their numbers.
olsnodes -n -p -i
[root@node1-ser ~]# olsnodes -n -p -i
node1-ser 1 node1-prv node1-vip
node2-ser 2 node2-prv node2-vip
Checking Votedisk Information:
The below command is used to view the no. of Voting disks configured in the Cluster.
crsctl query css votedisk
Checking OCR Disk Information:
The ocrcheck command displays the no. of OCR files configured in the Cluster. It is primarily used to chck the integrity of the OCR files. It also displays the version of OCR as well as storage space information. You can only have 2 OCR files at max.
[root@node1-ser ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 362120
Used space (kbytes) : 3848
Available space (kbytes) : 358272
ID : 845417276
Device/File Name : /u02/ocfs2/ocr/OCRfile_0
Device/File integrity check succeeded
Device/File Name : /u02/ocfs2/ocr/OCRfile_1
Device/File integrity check succeeded
Cluster registry integrity check succeeded