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

38 Online database backup
Making an off-host backup of an online database
# vxsnap -g dbasedg make source=vol1/newvol=svol1 \
source=vol2/newvol=svol2 source=vol3/newvol=svol3 \
alloc=ctlr:c3,ctlr:c4
This step sets up the snapshot volumes ready for the backup cycle, and
starts tracking changes to the original volumes.
4 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.
5 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
...
6 On the primary host, deport the snapshot volumes disk group using the
following command:
# vxdg deport
snapvoldg
7 On the OHP host where the backup is to be performed, use the following
command to import the snapshot volume’s disk group:
# vxdg import
snapvoldg
8 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
...
9 On the OHP host, back up the snapshot volumes. If you need to remount the
file system in the volume to back it up, first run
fsck on the volumes. The
following are sample commands for checking and mounting a file system:
# fsck -F vxfs /dev/vx/rdsk/
snapvoldg
/
snapvol
# mount -F vxfs /dev/vx/dsk/
snapvoldg
/
snapvol
mount_point
Back up the file system using a command such as bpbackup in Symantec
NetBackup. After the backup is complete, use the following command to
unmount the file system.
# unmount
mount_point
10 On the OHP host, use the following command to deport the snapshot
volume’s disk group:
# vxdg deport
snapvoldg
11 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.