ocr restore test

//rm the ocr file

[root@rac1 config]# rm -rf  ocr

[root@rac1 bin]# ./ocrcheck
PROT-602: Failed to retrieve data from the cluster registry

[root@rac1 bin]# ./crsctl stop crs
OCR initialization failed accessing OCR device: PROC-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]

//the ocr is gone and the crs status is incorrect

//create a ocr file,as I use NFS as share storage,so just touch a ocr file

[root@rac1 bin]# touch /opt/app/config/ocr
//change the owner

chown root:oinstall /opt/app/config/ocr
use the physical backup to restore ocr

[root@rac1 bin]# ./ocrconfig -restore ../cdata/crs/backup00.ocr
start the crs
[root@rac1 bin]# ./crsctl start crs

//check the crs stack
[root@rac1 bin]# ./crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

//maybe, u need toe crs_stat -all to pull up all the resource

 

[oracle@rac2 ~]$ crs_stat -t
Name Type Target State Host
————————————————————
ora.rac.db application ONLINE ONLINE rac1
ora….c1.inst application ONLINE ONLINE rac1
ora….c2.inst application ONLINE ONLINE rac2
ora….C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora….C2.lsnr application ONLINE ONLINE rac2
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2

 

–EOF–