Backup and Restore of Clusterware Files

Oracle RAC

OCR FILE:

> By default oracle takes the backup of OCR for every 4 hours ,at the end of the day
and at the end of the week.
> The default backup location is CRS_HOME in 10g (i.e:$ORA_CRS_HOME/cdata/crs)
> To know the master node and default backup location
$ ocrconfig -showbackup
> For Taking the backup of OCR Manually
# ocrconfig -export /opt/ocr.bkp

NOTE: whenever we make some structural changes to the cluster it is recommended
to take the backup of OCR Manually.

RESTORING OCR FROM AUTOBACKUP:

# ocrconfig -restore $ORA_CRS_HOME/cdata/crs/day.ocr

RESTORING OCR FROM THE MANUAL BACKUP

# ocrconfig -import /opt/ocr.bkp

VOTING FILE:

> In 10g, by default oracle will not take the backup of voting file
> If the voting file is in raw partition use dd command to take the backup
#dd if=/dev/sda5 of=/opt/voting.bkp

> If the voting file is in a cluster file system use cp command to take
the backup

RESTORING VOTING FILE:
# dd if=/opt/voting.bkp of=/dev/sda5