Friday, November 2, 2012

To migrate OCR to Oracle ASM using OCRCONFIG

  • Ensure the upgrade to Oracle Clusterware 11g release 2 (11.2) is complete. Run the following command to verify the current running version: 
    • $ crsctl query crs activeversion 

  • Use the Oracle ASM Configuration Assistant (ASMCA) to configure and start Oracle ASM on all nodes in the cluster. 


  • To add OCR to an Oracle ASM disk group, ensure that the Oracle Clusterware stack is running and run the following command as root: 
    • Before that shutdown the database and also see the rdbms and other compatibity attributes through asmca
        # ocrconfig -add +new_disk_group
    • You can run this command more than once if you add multiple OCR locations. You can have up to five OCR locations. However, each successive run must point to a different disk group.

  • To remove storage configurations no longer in use, run the following command as root:
    # ocrconfig -delete old_storage_location
    Run the above command for every configured OCR.

The following example shows how to migrate two OCRs to Oracle ASM using OCRCONFIG.
# ocrconfig -add +new_disk_group
# ocrconfig -delete /dev/raw/raw2
# ocrconfig -delete /dev/raw/raw1




No comments:

Post a Comment