Veritas Storage Foundation™ 5.0.1 for Oracle RAC Installation, Configuration, and Administrator's Guide Extracts for the HP Serviceguard Storage Management Suite on HP-UX 11i v3
By default, a snapplan’s SNAPSHOT_PLEX_TAG value is set as dbed_flashsnap. You
can use the -p option to assign a different tag name. Make use of the -p option when
creating the snapplan with the setdefaults option.
• In the following example, the -p option is used with setdefaults to assign my_tag as
the SNAPSHOT_PLEX_TAG value.
# dbed_vmchecksnap -S $ORACLE_SID -H $ORACLE_HOME -O \ setdefaults
-p my_tag -f snap1 -t PROD
Snapplan snap1 for PROD
=====================================================
SNAPSHOT_VERSION=5.0
PRIMARY_HOST=host1
SECONDARY_HOST=host2
PRIMARY_DG=PRODdg
SNAPSHOT_DG=SNAP_PRODdg
Using Database FlashSnap for backup and off-host processing 173
FlashSnap commands
ORACLE_SID=PROD
ARCHIVELOG_DEST=/arch_data
SNAPSHOT_ARCHIVE_LOG=yes
SNAPSHOT_MODE=online
SNAPSHOT_PLAN_FOR=database
SNAPSHOT_PLEX_TAG=my_tag
SNAPSHOT_VOL_PREFIX=SNAP_
ALLOW_REVERSE_RESYNC=no
SNAPSHOT_MIRROR=1
Creating Multi-mirror Snapshots
To make Database Snapshots highly available, the snapped snapshot volume should contain
more than one mirror. This makes the snapshot volumes available even if one of the mirrors gets
disabled. Snapshot volumes can be mounted and the entire database snapshot is usable even if
one of the mirror gets disabled. The multi-mirror snapshots are enabled by
SNAPSHOT_MIRROR=<n> in the snapplan.
NOTE: There are no changes to the command-line usage or arguments for the Flashsnap tools.
NOTE: Before taking the snapshot, make sure all tagged snapshot mirrors are in snapdone
state.
The following sample explains the setup and the procedure for taking multi-mirror snapshots.
To set up and take multi-mirror snapshots
1. Add the second mirror and DCO log. When allocating storage for the second mirror and
DCO logs, make sure the snap volumes are splittable. If snap volumes are not splittable,
dbed_vmchecksnap fails with appropriate errors.
Tag the newly added mirror with the same tag as that of the first mirror.
2. Assume that the volume has fastresync = on, has dcolog = on, and already has one
snapdone mirror and is tagged with dbed_flashsnap.
# vxsnap -g dg_a addmir dg_a_vol1 alloc=dg_a03
# vxedit -g dg_a set putil2=dbed_flashsnap dg_a_vol1-03
Add SNAPSHOT_MIRROR keyword to the snapplan. Here is a sample snapplan:
SNAPSHOT_VERSION=5.0
PRIMARY_HOST=host1
SECONDARY_HOST=host1
PRIMARY_DG=PRODdg
SNAPSHOT_DG=SNAP_PRODdg
68 Using FlashSnap for Backup and Recovery