Saturday, May 30, 2015

How to recover corrupted OCR & Voting Disk

As root user
crsctl stop crs -f => all nodes
crsctl start crs -excl -nocrs => from one node
format OCR & Voting disk
dd if=/dev/zero of=/dev/raw/raw1 count=10004 bs=1024

As grid user

sqlplus "/as sysasm"

create diskgroup ocr_vote external redundancy disk '/dev/raw/raw1' attribute 'COMPATIBLE.ASM' = '11.2';

root user
Restore OCR from the backup

$GRID_HOME/bin/ocrconfig -restore /u01/app/11.2.0.4/cdata/abc-scan/backup00.ocr

Recreate the voting Disk

crsctl replace votedisk +ocr_vote


root user

crsctl stop crs -f
crsctl start crs

No comments: