Home > Veritas Storage Foundation™ for DB2 Manual Pages
Table of contents
db2ed_vmsnapplan - the file containing a snapplan for a DB2 database
The db2ed_vmsnapplan file specifies the snapshot scenarios for a DB2
database (such as offline, online_snapshot, or online_mirror).
The file name of the db2ed_vmsnapplan file is specified by the user. Before using
the db2ed_vmsnap(1M) command to create the snapshot image, a db2ed_vmsnapplan
file needs to be validated by running the db2ed_vmchecksnap(1M) command. Each entry in the
db2ed_vmsnapplan file is a line in key=value format.
The following parameters are specified in the db2ed_vmsnapplan file:
Specifies the snapshot version for this release of
Veritas Storage Foundation for DB2.
Specifies the name of the host where the primary database resides.
Specifies the name of the host where the clone database will reside. When the primary and secondary
hosts are the same, the snapshot volumes will not be deported.
Specifies the name of the Volume Manager disk group used by the primary database.
Specifies the name of the disk group containing the snaphot volumes.
The snapshot volumes will be put into this disk group on the primary
host and deported. The secondary host will import this
disk group to start a clone database.
Specifies the name of the DB2 database.
Specifies the home directory of the database.
Specifies the full path of the redo logs.
SNAPSHOT_MODE (offline | online_snapshot | online_mirror)
Specifies whether the database should be offline, online_snapshot, or online_mirror
when the snapshot is created.
If the snapshot is created while the SNAPSHOT_MODE for the database is set to
online_snapshot or online_mirror,
the db2ed_vmsnap command will first put the database into WRITE SUSPEND
mode. After db2ed_vmsnap finishes creating the snapshot, it will take
the database out of WRITE SUSPEND mode. If the
database is offline, it is not necessary to put the database into WRITE SUSPEND
The default value is database and cannot be changed.
Specifies the database object to create a snapshot of.
To clone a database using a snapshot image, set
Specifies the name of the tag set to the plexes that will be used by
db2ed_vmsnap to take the snapshot. The db2ed_vmchecksnap
command will use this tag name to search if all the volumes in the
database have the plexes with this tag name set.
Specifies the snapshot volume prefix.
Use this variable to specify a prefix for the snapshot volumes split
from the primary disk group. A volume name cannot be more than 32 characters.
By default, reverse resynchronization is off (set equal to NO).
If it is set to YES, this parameter allows you to restore the
original volume from a snapshot. The original database, however, must
be down for this operation.
Specifies the number of snapshot mirrors. The default value is 1.
To make the snapshots highly available, the snapshot volume should contain
more than one mirror. Multiple mirrors allow the snapshot volume to be
available even if one of the mirrors is disabled. Before taking
a snapshot, make sure all tagged snapshot mirrors are in the SNAPDONE state.
The following example shows how to create a snapplan and set the
default values for a single host. In this example, the working
directory is /export/snap_dir.
$ /opt/VRTS/bin/db2ed_vmchecksnap -D PROD \.br
-f snap1 -o setdefaults -t host2 -p PRODtag
Snapplan snap1 for PROD.
Veritas Storage Foundation for DB2 Administrator's Guide
Last updated: 13 Dec 2004
Copyright ©2009 Symantec Corporation
All rights reserved.