In case voting diskgroup is lost or corrupted we need to create new ASM diskgroup. But we cannot start ASM as voting disk is missing.
Here is how we can recover voting disk in this scenario:
Stop crs on all the nodes
# crsctl stop crs -f
Start crs in exclusive mode on one of the nodes (node1)
# crsctl start crs -excl <- For 11201 RAC
# crsctl start crs -excl -nocrs <- For 11202 RAC
If we don’t have the OCR DISK GROUP, then we need to create the disk group else move to restoring OCR DISK
Check latest auto backup of OCR:
$GRID_HOME/bin/ocrconfig –showbackup
Restore the latest OCR backup(root user)
# ocrconfig -restore $GRID_HOME/cdata/<hostname>/backup00.ocr
Recreate the Voting file (root user)
The Voting file needs to be initialized in the CRS disk group
# crsctl replace votedisk +OCR_DG <-- new or existing DG
Above command will Re-create/move your voting disk in the specified ASM Disk Group, if you query the voting disk it will display your voting disk location in the DISK Group which has been specified.
Here is how we can recover voting disk in this scenario:
Stop crs on all the nodes
# crsctl stop crs -f
Start crs in exclusive mode on one of the nodes (node1)
# crsctl start crs -excl <- For 11201 RAC
# crsctl start crs -excl -nocrs <- For 11202 RAC
If we don’t have the OCR DISK GROUP, then we need to create the disk group else move to restoring OCR DISK
Check latest auto backup of OCR:
$GRID_HOME/bin/ocrconfig –showbackup
Restore the latest OCR backup(root user)
# ocrconfig -restore $GRID_HOME/cdata/<hostname>/backup00.ocr
Recreate the Voting file (root user)
The Voting file needs to be initialized in the CRS disk group
# crsctl replace votedisk +OCR_DG <-- new or existing DG
Above command will Re-create/move your voting disk in the specified ASM Disk Group, if you query the voting disk it will display your voting disk location in the DISK Group which has been specified.
This comment has been removed by a blog administrator.
ReplyDelete