Maintenance of OCR and Voting Disk

Oracle RAC

OCR

  1. Stop Oracle Clusterware
    [[email protected] ~]# crsctl stop crs
  2. Start Oracle Clusterware
    [[email protected] ~]# crsctl start crs
  3. Start Oracle Clusterware
    [[email protected] ~]# 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

  1. To find the backup
    [[email protected] ~]# ocrconfig -showbackup

ol5-112-rac2 2018/05/12 07:33:50 /u01/app/11.2.0/grid/cdata/ol5-112-scan/backup00.ocr

  1. To Perform manual backup
    [[email protected] ~]# ocrconfig -manualbackup
  2. To find the Manual backup only
    [[email protected] ~]# ocrconfig -showbackup manual

ol5-112-rac2 2018/05/12 07:33:50 /u01/app/11.2.0/grid/cdata/ol5-112-scan/backup_183340.ocr

  1. Change OCR backup location
    [[email protected] ~]# ocrconfig -backuploc /home/oracle
  2. Review its contents
    [[email protected] bin]# ocrdump -backupfile backup00.ocr
  3. Restore the physical OCR backup
    [[email protected] ~]# crsctl stop crs
    [[email protected] ~]# ocrconfig -restore /u01/app/11.2.0/grid/cdata/ol5-112-scan/backup00.ocr
    [[email protected] ~]# crsctl start crs
  4. Check Existing OCR Detail
    [[email protected] ol5-112-scan]# ocrcheck

Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2788
Available space (kbytes) : 259332
ID : 1488879956
Device/File Name : +DATA
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded

  1. Check OCR integrity
    [[email protected] ~]$ cluvfy comp ocr -n all

Verifying OCR integrity
Checking OCR integrity…
Checking the absence of a non-clustered configuration…
All nodes free of non-clustered, local-only configurations
ASM Running check passed. ASM is running on all cluster nodes
Checking OCR config file “/etc/oracle/ocr.loc”…
OCR config file “/etc/oracle/ocr.loc” check successful
Disk group for ocr location “+DATA” available on all the nodes
Checking size of the OCR location “+DATA” …
Size check for OCR location “+DATA” successful…
OCR integrity check passed
Verification of OCR integrity was unsuccessful on all the specified nodes.

Voting Disk

  1. Check existing Voting Disk
    [[email protected] ~]# crsctl query css votedisk

STATE File Universal Id File Name Disk group


  1. ONLINE 5d89f9b9a2d24f6cbfed2335d94877ed (/dev/oracleasm/disks/DISK1) [DATA]
  2. Add voting disk
    [[email protected] ~]# crsctl add votedisk /dev/oracleasm/disks/DISK2
  3. Delete voting disk
    [[email protected] ~]# crsctl add votedisk /dev/oracleasm/disks/DISK2