Friday, November 2, 2012

Restoring Voting Disks


If all of the voting disks are corrupted, then you can restore them, as follows:
1.      Restore OCR
This step is necessary only if OCR is also corrupted or otherwise unavailable, such as if OCR is on Oracle ASM and the disk group is no longer available.

2.      Run the following command as root from only one node to start the Oracle Clusterware stack in exclusive mode, which does not require voting files to be present or usable:
        # crsctl start crs -excl
3.      Run the crsctl query css votedisk command to retrieve the list of voting files currently defined, similar to the following:
$ crsctl query css votedisk
--  -----    -----------------                --------- ---------
##  STATE    File Universal Id                File Name Disk group
 1. ONLINE   7c54856e98474f61bf349401e7c9fb95 (/dev/sdb1) [DATA]
This list may be empty if all voting disks were corrupted, or may have entries that are marked as status 3 or OFF.
4.      Depending on where you store your voting files, do one of the following:
·         If the voting disks are stored in Oracle ASM, then run the following command to migrate the voting disks to the Oracle ASM disk group you specify:
    crsctl replace votedisk +asm_disk_group
The Oracle ASM disk group to which you migrate the voting files must exist in Oracle ASM. You can use this command whether the voting disks were stored in Oracle ASM or some other storage device.
·         If you did not store voting disks in Oracle ASM, then run the following command using the File Universal Identifier (FUID) obtained in the previous step:
    $ crsctl delete css votedisk FUID
       Add a voting disk, as follows:
    $ crsctl add css votedisk path_to_voting_disk

5.  Stop the Oracle Clusterware stack as root:

      # crsctl stop crs
Note:
If the Oracle Clusterware stack is running in exclusive mode, then use the -f option to force the shutdown of the stack.
6.      Restart the Oracle Clusterware stack in normal mode as root:
      # crsctl start crs

No comments:

Post a Comment