OCR
- Stop Oracle Clusterware
[[email protected] ~]# crsctl stop crs - Start Oracle Clusterware
[[email protected] ~]# crsctl start crs - 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
- 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
- To Perform manual backup
[[email protected] ~]# ocrconfig -manualbackup - 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
- Change OCR backup location
[[email protected] ~]# ocrconfig -backuploc /home/oracle - Review its contents
[[email protected] bin]# ocrdump -backupfile backup00.ocr - 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 - 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
- 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
- Check existing Voting Disk
[[email protected] ~]# crsctl query css votedisk
STATE File Universal Id File Name Disk group
- ONLINE 5d89f9b9a2d24f6cbfed2335d94877ed (/dev/oracleasm/disks/DISK1) [DATA]
- Add voting disk
[[email protected] ~]# crsctl add votedisk /dev/oracleasm/disks/DISK2 - Delete voting disk
[[email protected] ~]# crsctl add votedisk /dev/oracleasm/disks/DISK2