VERITAS Storage Foundation 4.1 Oracle Administrator's Guide

Preparing Hosts and Storage for Database FlashSnap Prerelease 8 September 2005, 8:55am
208 VERITAS Storage Foundation for Oracle Administrator’s Guide
Example
The following example shows the steps involved in creating a snapshot mirror for the volume
data_vol belonging to the disk group PRODdg.
Prepare the volume data_vol for mirroring:
# vxsnap -g PRODdg prepare data_vol alloc=PRODdg01
Verify that FastResync is enabled:
# vxprint -g PRODdg -F%fastresync data_vol
on
Verify that a DCO and a DCO log are attached to the volume:
# vxprint -g PRODdg -F%hasdcolog data_vol
on
Create a snapshot mirror of data_vol:
# vxsnap -g PRODdg addmir data_vol alloc=PRODdg02
List the data plexes:
# vxprint -g PRODdg -F%name -e"pl_v_name in \"data_vol\""
data_vol-01
data_vol-02
Note 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.
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
Verify that the dbed_flashsnap tag has been set to the desired data plex, data_vol-02:
# vxprint -g PRODdg -F%name -e"pl_v_name in \"data_vol\" \
&& p2 in \"
dbed_flashsnap\""
data_vol-02
To verify that the snapshot volume was created successfully, use the vxprint -g <dg>
command as follows:
# vxprint -g PRODdg
v data_vol fsgen ENABLED 4194304 - ACTIVE - -
pl data_vol-01 data_vol ENABLED 4194304 - ACTIVE - -
sd PRODdg03-01 data_vol-01 ENABLED 4194304 0 - - -
pl data_vol-02 data_vol ENABLED 4194304 - SNAPDONE - -
sd PRODdg02-01 data_vol-02 ENABLED 4194304 0 - - -
dc data_vol_dco data_vol - - - - - -
v data_vol_dcl gen ENABLED 560 - ACTIVE - -
pl data_vol_dcl-01 data_vol_dcl ENABLED 560 - ACTIVE - -