How the Windows environment recovers (Oracle 11g Grid) OCR voting corrupted clusters
After the Oracle 11g OCR can be placed on the ASM disk, and ASM boot relies on OCR and Votedisk, so the loss of OCR or Votedisk will cause cluter not start properly
If the original OCR location does not already exist, you must create an empty OCR in the same location using the same name.
We recommend that you use the following steps to restore OCR:
1. Determine the current cluster node count
C:\>olsnodes
2. Turn off Oracle Clusterware (all of the nodes)
C:\crsctl Stop CRS
You may not be able to shut down the cluster because of OCR corruption, you can force the cluster to shut down by using the following command:
C:\>crsctl Stop Crs-f
3. Start the cluster in exclusive mode
C:\>crsctl Start Crs-excl-nocrs
-nocrs indicates that crsdprocess and OCR do not start with the cluster stack, but the ASM instance starts
You can ignore the above command to execute the error message from the Times.
4. Restore OCR
Ensure that the appropriate OCR device or ASM DiskGroup already exists or is already mount before you recover
If ASM Disk group can use the ASMCA graphical interface to create a DG
---Determine the backup location of OCR first
Ocrconfig-showbackup
---restore OCR
C:\>ocrconfig-restore file_name
5, verify the integrity of the OCR
C:\>ocrcheck
6. Close the cluster running in exclusive mode
C:\>crsctl Stop Crs-f
7. Restart the cluster
C:\>crsctl Start CRS
8. Use the CVU component to verify the integrity of OCR across all nodes:
C:\>cluvfy Comp Ocr-n All-verbose
Inspection information to the liunx of the test Environment, window environment is similar
$cluvfy Comp Ocr-n All-verbose
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 specified nodes
Checking OCR config file "/etc/oracle/ocr.loc" ...
OCR config file "/etc/oracle/ocr.loc" Check Successful
Disk Group for OCR location ' +crs ' available on all the nodes
Note:
This check does not verify the integrity of the OCR contents. Execute ' Ocrcheck ' as a privileged user to verify the
Contents of OCR.
OCR Integrity Check Passed
Verification of OCR Integrity was successful.