Importing Oracle Cluster Registry Content on Linux or UNIX Systems

 

Note:

This procedure assumes default installation of Oracle Clusterware on all nodes in the cluster, where Oracle Clusterware autostart is enabled.

Use the following procedure to import OCR on Linux or UNIX systems:

  1. List the nodes in your cluster by running the following command on one node:
    $ olsnodes
    
  2. Stop Oracle Clusterware by running the following command as root on all of the nodes:
    # crsctl stop crs
    

    If the preceding command returns any error due to OCR corruption, stop Oracle Clusterware by running the following command as root on all of the nodes:

    # crsctl stop crs -f
    
  3. Start the Oracle Clusterware stack on one node in exclusive mode by running the following command as root:
    # crsctl start crs -excl
    

    Ignore any errors that display.

    Check whether CRSD is running. If it is, stop it by running the following command as root:

    # crsctl stop resource ora.crsd -init

    Caution:

    Do not use the -init flag with any other command.

  4. Import OCR by running the following command as root:
    # ocrconfig -import file_name
    

    If you are importing OCR to a cluster or network file system, then skip to step 7.

    Note:

    • If the original OCR ___location does not exist, then you must create an empty (0 byte) OCR ___location before you run the ocrconfig -import command.

    • Ensure that the OCR devices that you specify in the OCR configuration exist and that these OCR devices are valid.

    • If you configured OCR in an Oracle ASM disk group, then ensure that the Oracle ASM disk group exists and is mounted.

    See Also:

  5. Verify the integrity of OCR:
    # ocrcheck
    
  6. Stop Oracle Clusterware on the node where it is running in exclusive mode:
    # crsctl stop crs -f
    
  7. Begin to start Oracle Clusterware by running the following command as root on all of the nodes:
    # crsctl start crs
    
  8. Verify OCR integrity of all of the cluster nodes that are configured as part of your cluster by running the following CVU command:
    $ cluvfy comp ocr -n all -verbose

Note:

You can only import an exported OCR. To restore OCR from a backup, you must instead use the -restore option, as described in "Backing Up Oracle Cluster Registry".

See Also:

Cluster Verification Utility Reference for more information about enabling and using CVU