Veritas FlashSnap Point-In-Time Copy Solutions 5.0 AdministratorÆs Guide, HP-UX 11i v3, First Edition, May 2008

55Decision support
Creating an off-host replica database
12 Copy any required log files from the primary host to the OHP host. For an
Oracle database on the OHP host, copy the archived log files that were
generated while the database was in hot backup mode to the new database’s
archived log directory (for example, /rep/archlog).
13 As the database administrator, start the new database. For an Oracle
database, use a script such as that shown in “Script to complete, recover and
start a replica Oracle database” on page 70. (This script also creates the
control file for the new database by executing the SQL script that you
created using the procedure in “Preparing a replica Oracle database on
page 73.)
Resynchronizing the data with the primary host
To resynchronize a snapshot with the primary database
1 On the OHP host, shut down the replica database, and use the following
command to unmount each of the snapshot volumes:
# unmount mount_point
2 On the OHP host, use the following command to deport the snapshot
volume’s disk group:
# vxdg deport snapvoldg
3 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.
4 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
5 The snapshot volumes are initially disabled following the join. Use the
following command on the primary host to recover and restart a snapshot
volume:
# vxrecover -g
volumedg
-m snapvol
6 Use step 3 on page 53 through step 5 on page 54 to refresh the contents of
the snapshot from the original volume.
The snapshots are now ready to be re-used for backup or for other decision
support applications.