how to backup vote disk and ocr

vote disk could be backup by dd,you can following this:

check the information msg of vote disk

[oracle@rac1 ~]$ crsctl query css votedisk
0. 0 /opt/app/config/votingdisk

located 1 votedisk(s).

the vote disk is located in /opt/app/config/votingdisk

using dd to backup the vote disk:

[oracle@rac1 ~]$ dd if=/opt/app/config/votingdisk of=votediskBak
20000+0 records in
20000+0 records out

[oracle@rac1 ~]$ ll vot*
-rw-r–r– 1 oracle oinstall 10240000 Aug 20 14:38 votediskBak

it’s quite easy.

How about the OCR? following below:

//show the backup information of OCR

[oracle@rac1 ~]$ ocrconfig -showbackup

rac2 2012/08/20 14:39:02 /opt/app/crs/product/10.2.0/crs/cdata/crs

rac2 2012/08/20 10:38:58 /opt/app/crs/product/10.2.0/crs/cdata/crs

rac2 2012/08/20 06:38:55 /opt/app/crs/product/10.2.0/crs/cdata/crs

rac2 2012/08/18 18:38:16 /opt/app/crs/product/10.2.0/crs/cdata/crs

rac2 2012/08/07 06:05:05 /opt/app/crs/product/10.2.0/crs/cdata/crs

//you can see the backup history information

[oracle@rac1 crs]$ ls -lrt
total 29428
-rw-r–r– 1 root root 4292608 Aug 7 06:12 week.ocr
-rw-r–r– 1 root root 4292608 Aug 14 07:44 week_.ocr
-rw-r–r– 1 root root 4292608 Aug 18 18:46 day.ocr
-rw-r–r– 1 root root 4292608 Aug 19 18:46 day_.ocr
-rw-r–r– 1 root root 4292608 Aug 20 06:46 backup02.ocr
-rw-r–r– 1 root root 4292608 Aug 20 10:46 backup01.ocr
-rw-r–r– 1 root root 4292608 Aug 20 2012 backup00.ocr

// the ocr was backup automaticlly every four hours as the basic backup policy which is showing above

//you need to use root to export the ocr config message as following

[root@rac1 bin]# ./ocrconfig -export /home/oracle/ocrBak.exp

if the ocr was corrupted,you can import the config of backup files into the ocr.

export and import is the logical backup and restore method,ocrconfig provide the “restore” command,but the “restore” command can only restore from the “physical backup” which is the backup made by the automatic policy.