Thursday, 27 April 2017

How to recreate OCR and Voting disk

Restore/Recreate OCR and Voting disk

Restore OCR

1 Locate physical the OCR backups using –showbackup command
[root@ol5-db-host1 bin]#./ocrconfig – showbackup

2 Review the contents
[root@ol5-db-host1 bin]#./ocrdump –backupfile /u01/app/11.2.0.4/grid/cdata/<cluster_name>/week.ocr

3 Stop the Oracle clusterware on all the nodes.
[root@ol5-db-host1 bin]#./crsctl stop crs

4 As the OCR is in ASM disk, we need to start ASM in exclusive mode during restoring OCR
[root@ol5-db-host1 bin]#./crsctl check cluster -all

CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Check failed, or completed with errors.

[root@ol5-db-host1 bin]#./crsctl start crs -excl -nocrs

5 Restore the OCR backup
[root@ol5-db-host1 bin]#./ocrconfig –restore /u01/app/11.2.0.4/grid/cdata/<cluster_name>/backup.ocr

6 Stop and Start the crs normally.
[root@ol5-db-host1 bin]#./crsctl stop crs
[root@ol5-db-host1 bin]#./crsctl start crs

7 Check the OCR entry
ocrdump => this will generate OCRDUMPFILE

*******************************************************************
Restore/Recreate Voting Disk

cd $GRID_HOME/bin

1. Shutdown CRS as root user on all nodes.
[root@ol5-db-host1 bin]#./crsctl stop crs

2. start clusterware in exclusive mode
[root@ol5-db-host1 bin]#./crsctl start crs -excl -nocrs

3. remove the voting disks via
[root@ol5-db-host1 bin]#./crsctl delete css votedisk +DBFS_DG

4. check they are removed via
[root@ol5-db-host1 bin]#./crsctl query css votedisk

5. Readd the voting file in DGFS_DG
[root@ol5-db-host1 bin]#./crsctl replace votedisk +DBFS_DG

6. Stop and start the crs normally on all nodes
[root@ol5-db-host1 bin]#./crsctl stop crs
[root@ol5-db-host1 bin]#./crsctl start crs

*******************************************************************

Validate the OCR and Voting Disks using below link.

How to Validate OCR and Voting Disks

No comments:

Post a Comment