Restore OCR and Voting disk

Restore OCR disk

In case of the loss of the ASM diskgroups storing the OCR and Voting disks, restoration will have to be done using the following steps. With the loss of these file the cluster will not start.

The OCR backups are normally stored in the $GRID_HOME/cdata directory. Using these backups we should be able restore the OCR and Voting disk files. These backups are done at a 4 hour, daily and weekly interval and can very very handy in this situation. Without this a complete cluster install may be required!
$ ls -lrt $GRID_HOME/cdata/OLTPCLUSTER1/
-rw------- 1 root root 6321840 Jun 17 14:57 week.ocr

-rw------- 1 root root 6153487 Jun 30 09:31 backup00.ocr
1. Ensure that all nodes in the cluster have been shut down and that there are no Oracle processes running. If there are any processes running execute the stop crs force command.
$GRID_HOME/bin/crsctl stop crs -f 2. Next start the CRS in exclusive mode (without voting disk)
$GRID_HOME/bin/crsctl start crs -excl -nocrs
CRS-4123: Oracle High Availability Services has been started.
...
CRS-2672: Attempting to start 'ora.asm' on 'oltpcluster1'
...
3. Tag the ASM disk block device which is going to be the part of the CRS diskgroup.
/usr/sbin/oracleasm createdisk ASM_OCR01 /dev/sdh31
Writing disk header: done
Instantiating disk: done
4. Run the create diskgroup command
SQL>create diskgroup OCR_DG external redundancy \
disk 'ORCL:ASM_OCR01' attribute 'COMPATIBLE.ASM' = '11.2';
5. Create new OCR disk.
cd $GRID_HOME/cdata/rac_cluster1/
sudo $GRID_HOME/bin/ocrconfig -restore backup00.ocr
6. Initialize the Voting disks.
$GRID_HOME/bin/crsctl replace votedisk +CRS
...
Successfully replaced voting disk group with +CRS.
CRS-4266: Voting file(s) successfully replaced
7. Remove the CRS from exclusive mode by shutting down and restart the node
$GRID_HOME/bin/crsctl stop crs -f
...
CRS-4133: Oracle High Availability Services has been stopped.
8. On other remaining nodes rescan the ASM disks and start the CRS.
/usr/sbin/oracleasm scandisks
Reloading disk partitions: done
...
Instantiating disk "ASM_OCR01"

$GRID_HOME/bin/crsctl start crs
CRS-4123: Oracle High Availability Services has been started.
9. Verify cluster status and confirm status of resources
$GRID_HOME/bin/crsctl check cluster -all
$GRID_HOME/bin/crsctl status resource -t


jQuery(document).ready(function($) { $.post('http://www.vitalsofttech.com/wp-admin/admin-ajax.php', {action: 'wpt_view_count', id: '1046'}); });

Leave a Reply

Your email address will not be published.