OCR/ Vote disk Maintenance Operations
OCR/ Vote disk Maintenance Operations: (ADD/REMOVE/REPLACE/MOVE) [ID 428681.1]
1. ADD/REMOVE/REPLACE/MOVE OCR Device
1). OCR backup
Make sure there isa recent copy of the OCR file before making any changes:
ocrconfig-showbackupIf there is not a recent backup copy of the OCR file, an export canbe taken for the current OCR file. Use the following command to generate anexport of the online OCR file:
In 10.2
# ocrconfig-export <OCR export_filename> -s onlineIn 11.1 and 11.2
# ocrconfig-manualbackup
node1 2008/08/0606:11:58 /crs/cdata/crs/backup_20080807_003158.ocr
2) OCR recover
To recover usingthis file, the following command can be used:
# ocrconfig-import <OCR export_filename>
From 11.2+, pleasealso refer How to restore ASM based OCR after complete loss of the CRSdiskgroup on Linux/Unix systems Document 1062983.1
To see whether OCRis healthy, run an ocrcheck, which should return with like below.
# ocrcheck
Status of OracleCluster Registry is as follows :
Version : 2
Total space(kbytes) : 497928
Used space(kbytes) : 312
Available space(kbytes) : 497616
ID : 576761409
Device/File Name :/dev/raw/raw1
Device/Fileintegrity check succeeded
Device/File Name :/dev/raw/raw2
Device/Fileintegrity check succeeded
Cluster registryintegrity check succeeded
For 11.1+,ocrcheck as root user should also show:
Logical corruptioncheck succeeded
2. ADD/DELETE/MOVE Voting Disk
For pre 11.2, totake a backup of voting disk:
$ dd if=voting_disk_nameof=backup_file_name
For Windows:
ocopy \\.\votedsk1o:\backup\votedsk1.bakFor 11.2+, it is no longer required to back up the votingdisk. The voting disk data is automatically backed up in OCR as part of anyconfiguration change. The voting disk files are backed up automatically byOracle Clusterware if the contents of the files have changed in the followingways:
Configurationparameters, for example misscount, have been added or modified
After performingvoting disk add or delete operations
The voting diskcontents are restored from a backup automatically when a new voting disk isadded or replaced.