Oracle RAC migration OCR
For how to add and delete Oracle rac ocr, see:
Oracle RAC backup and recovery OCR reference:
If you want to change an existing ocr location or a faulty ocr location, you can use the following procedure to migrate the ocr.
1. view the current ocr status
[Oracle @ node1 crs_1] $ ocrcheck
Status of Oracle Cluster Registry is as follows:
Version: 2
Total space (kbytes): 153496
Used space (kbytes): 3816
Available space (kbytes): 149680
ID: 497615595
Device/File Name:/dev/raw/raw7
Device/File integrity check succeeded
Device/File Name:/dev/raw/raw8
Device/File integrity check succeeded
Cluster registry integrity check succeeded
Here, raw7 is normal ocr, and raw8 is image ocr.
2. Run the following command on the node running Oracle clusterware:
[Oracle @ node1 crs_1] $ crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
3. migrate normal ocr
[Root @ node1 bin] #./ocrconfig-replace ocr/dev/raw/raw9
[Oracle @ node1 crs_1] $ ocrcheck
Status of Oracle Cluster Registry is as follows:
Version: 2
Total space (kbytes): 153496
Used space (kbytes): 3816
Available space (kbytes): 149680
ID: 497615595
Device/File Name:/dev/raw/raw9
Device/File integrity check succeeded
Device/File Name:/dev/raw/raw8
Device/File integrity check succeeded
Cluster registry integrity check succeeded
We can see that raw9 is normal ocr instead of raw7.
4. migrate the image ocr
[Root @ node1 bin] #./ocrconfig-replace ocrmirror/dev/raw/raw7
[Oracle @ node1 crs_1] $ ocrcheck
Status of Oracle Cluster Registry is as follows:
Version: 2
Total space (kbytes): 153496
Used space (kbytes): 3816
Available space (kbytes): 149680
ID: 497615595
Device/File Name:/dev/raw/raw9
Device/File integrity check succeeded
Device/File Name:/dev/raw/raw7
Device/File integrity check succeeded
Cluster registry integrity check succeeded
We can see that raw7 is the image ocr instead of raw8.
5. If a node is closed during ocr migration, you should execute the following command on the node after starting the closed node:
Ocrconfig-repair