VERITAS FlashSnap Point-In-Time-Copy Solutions Administrator's Guide

Making an Off-Host Backup of an Online Database
36 VERITAS FlashSnap Point-In-Time Copy Solutions Administrators Guide
11. On the OHP host, use the following command to deport the snapshot volume’s disk group:
# vxdg deport snapvoldg
12. On the primary host, re-import the snapshot volume’s disk group using the following
command:
# vxdg [-s] import snapvoldg
Note Specify the -s option if you are reimporting the disk group to be rejoined with a shared
disk group in a cluster.
13. On the primary host, use the following command to rejoin the snapshot volume’s disk group
with the original volume’s disk group:
# vxdg join snapvoldg volumedg
14. The snapshot volume is initially disabled following the join. Use the following commands on
the primary host to recover and restart a snapshot volume:
# vxrecover -g volumedg -m snapvol
# vxvol -g volumedg start snapvol
Repeat steps 2 through 14 each time that you need to back up the volume.
For an example of a script that uses this method, see “Script to Initiate Online Off-Host Oracle
Database Backup” on page 67.
In some instances, such as recovering the contents of a corrupted volume, it may be useful to
resynchronize a volume from its snapshot volume (which is used as a hot standby):
# vxsnap -g diskgroup restore volume source=snapvol destroy=yes|no
The destroy attribute specifies whether the plexes of the snapshot volume are to be reattached to
the original volume. For example, to resynchronize the volume dbase_vol from its snapshot
volume snap2_dbase_vol without removing the snapshot volume:
# vxsnap -g dbasedg restore dbase_vol source=snap2_dbase_vol \
destroy=no
Note You must shut down the database and unmount the file system that is configured on the
original volume before attempting to resynchronize its contents from a snapshot.