OCR Backup and Restore
OCR is a binary file and cannot be edited manually.
By Default, OCR is backed up automatically every 4 hours (from Instance Startup time).
OCR backups are cached across all nodes of a cluster.
However,Only Master RAC node can write to OCR.
OCR backups are overwritten automatically. Clusterware maintains last 3 backups of OCR.
Backup location can be defined using the below command.
$ocrconfig -backuploc <backup location>
It is recommended to use shared location for storing OCR backups.
To view the current OCR backups available, use the below commands
$ocrconfig –showbackup auto
$ocrconfig –showbackup manual
After any clusterware related changes, OCR backup can be taken manually.
$ocrconfig –manualbackup
If OCR file is Corrupted or lost, CRS Instance may crash.
To restore OCR from Backup,follow the procedure below
1.Using ocrconfig identify the latest OCR backup using command below
$ocrconfig -showbackup
2.Shutdown CRS Services on all RAC nodes
$crsctl stop crs
3.Start CRS on one node in exclusive mode
$crsctl start crs -excl
Stop crsd , if it is running
$ crsctl stop resource ora.crsd -init
4.Restore the OCR
$ocrconfig –restore <backuplocation/backupfilename>
5. Verify the integrity of OCR
$ocrcheck
6. Shutdown CRS Services on the node where you had started in exclusive mode
$crsctl stop crs
7.Start CRS on all RAC nodes
$crsctl start crs
8. Verify the restored OCR
$cluvfy comp ocr –n all -verbose
No comments:
Post a Comment