Migrating Oracle Cluster Registry from Oracle ASM to Other Types of Storage
To migrate OCR from Oracle ASM to another storage type:
Ensure the upgrade to Oracle Clusterware 12c is complete. Run the following command to verify the current running version:
$ crsctl query crs activeversion
Create a file in a shared or cluster file system with the following permissions: root, oinstall, 640.
Note:
Create at least two mirrors of the primary storage location to eliminate a single point of failure for OCR. OCR supports up to five locations.
Ensure there is at least 500 MB of space on the mount partition.
Ensure that the file you created is visible from all nodes in the cluster.
To add the file as an OCR location, ensure that the Oracle Clusterware stack is running and run the following command as root:
# ocrconfig -add file_location
You can run this command more than once if you add more than one OCR location. Each successive run of this command must point to a different file location.
Ensure that the OCR backup location is not configured on an Oracle ASM disk group.
To migrate the OCR backup location to a file system, run the following command as root:
# ocrconfig –backuploc file_location
To remove storage configurations no longer in use, run the following command as root:
# ocrconfig -delete +asm_disk_group
You can run this command more than once if there is more than one OCR location configured.
The following example shows how to migrate OCR from Oracle ASM to NAS using OCRCONFIG.
# ocrconfig -add /nas/ocr
For OCRs not stored on Oracle ASM, Oracle recommends that you mirror OCR on different devices.