Re: anyone using veritas do the online db2 backup ? how to set the policy for mutiple retention ? -
08-29-2003
, 09:03 AM
You have to set up a number of veritas policy classes for each
distinct retention period required into separate files. Then, right
before starting the backup, copy the correct class file into db2.conf
under $INSTHOME/. This will require one entry for each db2 node for an
MPP system. Then on the Veritas Masterserver, I believe, each policy
has a defined retention period, but I am not completely aware of how
that is set up.
Here's an example of how a client is set up
DATABASE prod1
OBJECTTYPE DATABASE
NODE 0
CLIENT_NAME aaaa0000
POLICY Prod_DB2_WOnFull
SCHEDULE Default-Policy
ENDOPER
This allows you to have different policies for different databases and
different policies for the same database. I believe archive logs are
like file backups, ie userbackups. An example being
OBJECTTYPE ARCHIVE
POLICY prod1_DB2_Logs
SCHEDULE UserBackup
ARCFUNC save
#ARCDIR /home/db2inst1/arcdir/
#RETDIR /home/db2inst1/arcdir
ENDOPER
When archiving directly to tape everytime you want to bring the db
down, it waits for tape mounts to archive the last log from each node.
Since these are usually small files, the tape mount time is far more
significant then the actual backup time. And, if the ratio of nodes to
tape drives isn't one to one, that compounds the situation. Veritas
can be configured to copy it to a disk pool and then a schedule based
backup of that directory to Veritas can be taken.
Hope this helps. |