Veritas Storage Foundation 5.0 for Oracle RAC Configuration Guide Extracts for HP Serviceguard Storage Management Suite, Second Edition, May 2008

Using FlashSnap for Backup and Recovery
Preparing Hosts and Storage for Database FlashSnap
Chapter 5
77
# vxsnap -g diskgroup addmir volume_name alloc= diskname
There is no option for creating multiple mirrors at the same time. Only one mirror
can be created at a time.
5. List the available mirrors:
# vxprint -g diskgroup -F%name -e"pl_v_name in \"volume_name\""
The following two steps enable database FlashSnap to locate the correct mirror
plexes when creating snapshots.
6. Set the dbed_flashsnap tag for the data plex you want to use for breaking off the
mirror. You can choose any tag name you like, but it needs to match the tag name
specified in the snapplan.
# vxedit -g diskgroup set putil2=dbed_flashsnap plex_name
7. Verify that the dbed_flashsnap tag has been set to the desired data plex:
# vxprint -g diskgroup -F%name -e"pl_v_name in \"volume_name\" \
&& p2 in \"dbed_flashsnap\""
If you require a backup of the data in the snapshot, use an appropriate utility or
operating system command to copy the contents of the snapshot to tape or to some other
backup medium.
This example shows the steps involved in creating a snapshot mirror for the volume
data_vol belonging to the disk group PRODdg.
1. Prepare the volume data_vol for mirroring:
# vxsnap -g PRODdg prepare data_vol alloc=PRODdg01
2. Verify that FastResync is enabled:
# vxprint -g PRODdg -F%fastresync data_vol
on
3. Verify that a DCO and a DCO log are attached to the volume:
# vxprint -g PRODdg -F%hasdcolog data_vol
on
4. Create a snapshot mirror of data_vol:
# vxsnap -g PRODdg addmir data_vol alloc=PRODdg02
5. List the data plexes:
# vxprint -g PRODdg -F%name -e"pl_v_name in \"data_vol\""
data_vol-01
data_vol-02
6. Choose the plex that is in the snapdone state. Use the vxprint -g diskgroup
command to identify the plex that is in the snapdone state.
7. Decide which data plex you want to use and set the dbed_flashsnap tag for it:
# vxedit -g PRODdg set putil2=dbed_flashsnap data_vol-02
8. Verify that the dbed_flashsnap tag has been set to the desired data plex, data_vol-02: