DRM Recovery: Prepare vs DB Snapshot

TSMCON

ADSM.ORG Member
Joined
Oct 29, 2008
Messages
43
Reaction score
1
Points
0
Hi

I am doing my first recovery using DRM.

The process they have here is that we run:
DAY1
1. Database backup source=dbs
2. Prepare wait=yes
3. Prepare source=dbs devc=<name> wait=yes
then the following day:
DAY2
1. Database backup source=dbs
2. Prepare wait=yes
3. Prepare source=dbs devc=<name> wait=yes

So, if i want to restore the database backup from day 2, which prepare file would i use, The one from day 1 or day 2? I'm trying to figure out if the db backup needs to know about the prepare (so that would be the previous one) or if the prepare relates to the database snapshot taken beforehand

Thanks in advance for any suggestions
 
The DB doesn't care about the prepare. Understand if you are using the prepare the DB is gone/nonexistent anyway. Which prepare file you use to help you with the restore is going to determine which DBS volume is used when restoring the DB. So if you want to restore day 2's DB then use day 2's prepare. Just make sure the prepare runs after the DBS is taken (which you are doing) then you'll have the most current DBS listed in the prepare file for that day.

Note: The prepare should have the volhist in it so Day 2's prepare although asking for Day 2's DBS, will have Day 1's DBS volume listed in the volhistory section. If the DBS for Day 2 is corrupt you could fall back to the Day 1 snapshot.
 
Back
Top