Thursday, November 28, 2013

Backup a Voting Disk in Oracle 11g & 10g Versions


##########################
## Objective
##########################

Backup a Voting Disk

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Voting Disk Backup @@@@@@@@@@@@@@
s
##########################
## From 11g R2 Onwards
##########################

Backing up voting disks manually is no longer required because voting disk data is backed up automatically in the OCR as part of any configuration change and voting disk data is automatically restored to any added voting disks.

##########################
## In 10g
##########################


======================================================================================================================

Step  1 : Backup Voting Disk
Step  2 : Find Voting disks in the Database

======================================================================================================================

======================================================================================================================
Step 1 :
--------
Find Voting disks in the Database
======================================================================================================================

Set crs environment,

crsctl query css votedisk

crs10g @ hostu03:/opt/oracle/admin
> crsctl query css votedisk
 0.     0    /dev/raw/vot1
 1.     0    /dev/raw/vot2
 2.     0    /dev/raw/vot3

located 3 votedisk(s).
crs10g @ hostu03:/opt/oracle/admin

======================================================================================================================
Step 2 :
--------
Backup Voting Disk
======================================================================================================================

dd if=/dev/raw/vot1 of=/opt/oracle/admin/voting.bkp

crs10g @ hostu03:/opt/oracle/admin
> dd if=/dev/raw/vot1 of=/opt/oracle/admin/voting.bkp

280709+0 records in
280709+0 records out

crs10g @ hostu03:/opt/oracle/admin
> du -sh voting.bkp
 137M   voting.bkp
crs10g @ hostu03:/opt/oracle/admin

======================================================================================================================

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ END @@@@@

No comments: