Veritas FlashSnap Point-In-Time Copy Solutions 5.0 AdministratorÆs Guide, HP-UX 11i v3, First Edition, May 2008
54 Decision support
Creating an off-host replica database
5 Release all the tablespaces or databases from suspend, hot backup or
quiesce mode. As the Oracle database administrator, release all the
tablespaces from hot backup mode using a script such as that shown in
“Script to end Oracle database hot backup mode” on page 66.
6 Use the following command to wait for the contents of the snapshot to be
fully synchronous with the contents of the original volume:
# vxsnap -g
volumedg
syncwait
snapvol
For example, to wait for synchronization to finish for all the snapshots
svol1, svol2 and svol3, you would issue three separate commands:
# vxsnap -g dbasedg syncwait svol1
# vxsnap -g dbasedg syncwait svol2
# vxsnap -g dbasedg syncwait svol3
Note: You cannot move a snapshot volume into a different disk group until
synchronization of its contents is complete. You can use the
vxsnap print
command to check on the progress of synchronization.
7 On the primary host, use the following command to split the disks
containing the snapshot volumes into a separate disk group, snapvoldg,
from the original disk group, volumedg:
# vxdg split volumedg snapvoldg snapvol ...
8 On the primary host, deport the snapshot volume’s disk group using the
following command:
# vxdg deport snapvoldg
9 On the OHP host where the replica database is to be set up, use the following
command to import the snapshot volume’s disk group:
# vxdg import snapvoldg
10 The snapshot volumes are initially disabled following the split. Use the
following command on the OHP host to recover and restart the snapshot
volumes:
# vxrecover -g
snapvoldg
-m snapvol ...
11 On the OHP host, for each snapshot volume containing tablespaces, check
the file system that it contains, and mount the volume using the following
commands:
# fsck -F vxfs /dev/vx/rdsk/diskgroup/snapvol
# mount -F vxfs /dev/vx/dsk/diskgroup/snapvol mount_point
For example, to check the file system in the snapshot volume
snap1_dbase_vol, and mount it on /rep/dbase_vol:
# fsck -F vxfs /dev/vx/rdsk/dbasedg/snap1_dbase_vol
# mount -F vxfs /dev/vx/dsk/dbasedg/snap1_dbase_vol \
/rep/dbase_vol