In windows, how does one restore a damaged cluster (oracle 11g grid) by using ocr voting?
Oracle 11 GB later ocr can be placed on the asm disk, and the start of the ASM depends on ocr and votedisk. Therefore, if the ocr or votedisk is lost, the cluter cannot be started normally.
If the original ocr position does not exist, you must use the same name to create an empty OCR at the original position.
We recommend that you follow these steps to restore OCR:
1. determine the number of nodes in the current cluster
C: \> olsnodes
2. Disable oracle clusterware (all of the nodes)
C: \ crsctl stop crs
The cluster may not be shut down due to ocr damage. You can use the following command to force the cluster to be shut down:
C: \> crsctl stop crs-f
3. Start the cluster in exclusive mode
C: \> crsctl start crs-excl-nocrs
-Nocrs indicates that crsdprocess and OCR does not start with the cluster stack, but the ASM instance starts
You can ignore the error message returned when the preceding command is executed.
4. Restore ocr
Before restoration, make sure that the ocr device or asm diskgroup already exists or has been mounted.
For asm disk group, you can use the asmca graphic interface to create dg.
--- Determine the ocr backup location first
Ocrconfig-showbackup
--- Restore ocr
C: \> ocrconfig-restore file_name
5. Verify ocr integrity
C: \> ocrcheck
6. Disable 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
The test environment of the liunx Based on the detection information is similar to that of the window environment.
$ 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 deployments
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 'crcheck' as a privileged user to verify
Contents of OCR.
OCR integrity check passed
Verification of OCR integrity was successful.