dbTalk Databases Forums  

Incremental Restore question

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Incremental Restore question in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
danfan46
 
Posts: n/a

Default Incremental Restore question - 06-09-2010 , 04:48 AM






db2 V9.5.5 on linux Red Hat 4 with 4 local Nodes (partitioned).

Backups taken:
Backup PRODDB (offline) --> Cold1
Backup PRODDB online incremental --> Hot1
Backup PRODDB online incremental --> Hot2
Backup PRODDB online incremental --> Hot3

Is this OK? Hot1 and Hot2 are not needed?
On each node
Restore db PRODDB incremental from hot3 into TESTDB
Restore db PRODDB incremental from cold1 into TESTDB
Restore db PRODDB incremental from hot3 into TESTDB

/dg

Reply With Quote
  #2  
Old   
Anwei Shen
 
Posts: n/a

Default Re: Incremental Restore question - 06-09-2010 , 08:48 AM






It will work, you dont need hot1 and hot2 if you want hot3 image, it
include hot1 and hot2.
On Jun 9, 5:48*am, danfan46 <danfa... (AT) hotmail (DOT) com> wrote:
Quote:
db2 V9.5.5 on linux Red Hat 4 with *4 local Nodes (partitioned).

Backups taken:
Backup PRODDB *(offline) * * * * * *--> Cold1
Backup PRODDB *online incremental * --> Hot1
Backup PRODDB *online incremental * --> Hot2
Backup PRODDB *online incremental * --> Hot3

Is this OK? *Hot1 and Hot2 are not needed?
On each node
Restore db PRODDB incremental from hot3 *into TESTDB
Restore db PRODDB incremental from cold1 into TESTDB
Restore db PRODDB incremental from hot3 *into TESTDB

/dg

Reply With Quote
  #3  
Old   
danfan46
 
Posts: n/a

Default Re: Incremental Restore question - 06-09-2010 , 08:55 AM



Yes, that is what I assumed from RTFM.
However, when I tried to do the restore, db2 kept pestering me about
restoring hot2 first, but then I hadn't dropped TESTDB nor pruned its history.
The current version of TESTDB was based on cold1 + hot1.
I'll see tomorrow if the script works OK, when I drop TESDB before trying to restore it.
/dg

Anwei Shen wrote:
Quote:
It will work, you dont need hot1 and hot2 if you want hot3 image, it
include hot1 and hot2.
On Jun 9, 5:48 am, danfan46 <danfa... (AT) hotmail (DOT) com> wrote:
db2 V9.5.5 on linux Red Hat 4 with 4 local Nodes (partitioned).

Backups taken:
Backup PRODDB (offline) --> Cold1
Backup PRODDB online incremental --> Hot1
Backup PRODDB online incremental --> Hot2
Backup PRODDB online incremental --> Hot3

Is this OK? Hot1 and Hot2 are not needed?
On each node
Restore db PRODDB incremental from hot3 into TESTDB
Restore db PRODDB incremental from cold1 into TESTDB
Restore db PRODDB incremental from hot3 into TESTDB

/dg

Reply With Quote
  #4  
Old   
Lennart Jonsson
 
Posts: n/a

Default Re: Incremental Restore question - 06-09-2010 , 09:16 AM



On 2010-06-09 15:55, danfan46 wrote:
Quote:
Yes, that is what I assumed from RTFM.
However, when I tried to do the restore, db2 kept pestering me about
restoring hot2 first, but then I hadn't dropped TESTDB nor pruned its history.
The current version of TESTDB was based on cold1 + hot1.
I'll see tomorrow if the script works OK, when I drop TESDB before trying to restore it.
/dg
Not sure whether this holds for partitioned database, but for non
partioned databases, I find:

restore db ... incremental auto ...

very nice. You might want to have a look at that.


/Lennart

[...]

Reply With Quote
  #5  
Old   
danfan46
 
Posts: n/a

Default Re: Incremental Restore question - 06-09-2010 , 10:55 AM



Yes it works with db2_all
first <<+0> for catalog partition and then <<-0< for the rest of them
/dg


Lennart Jonsson wrote:
Quote:
On 2010-06-09 15:55, danfan46 wrote:
Yes, that is what I assumed from RTFM.
However, when I tried to do the restore, db2 kept pestering me about
restoring hot2 first, but then I hadn't dropped TESTDB nor pruned its history.
The current version of TESTDB was based on cold1 + hot1.
I'll see tomorrow if the script works OK, when I drop TESDB before trying to restore it.
/dg

Not sure whether this holds for partitioned database, but for non
partioned databases, I find:

restore db ... incremental auto ...

very nice. You might want to have a look at that.


/Lennart

[...]

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.