![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello , I have a scenario . consider we have a database for which we have taken a Full backup on monday. We have added tablespaces say on tuesday. Consider we want to do a redirect restore onto a different box which has compeltely different filesystems with different mount points Using the backup taken on monday . When we generate the script we dont get the new tablespaces *which were added on tuesday. So even the restore was successfull , how does the rollforward continue as the containers were not set for the newly added tablespaces *? Rollforward should be trying to add containers considering the source filesystems. but we dont have the same filesystem layout in the target . Thanks, Kamalnath.V |
#3
| |||
| |||
|
|
Hello , I have a scenario . consider we have a database for which we have taken a Full backup on monday. We have added tablespaces say on tuesday. Consider we want to do a redirect restore onto a different box which has compeltely different filesystems with different mount points Using the backup taken on monday . When we generate the script we dont get the new tablespaces *which were added on tuesday. So even the restore was successfull , how does the rollforward continue as the containers were not set for the newly added tablespaces *? Rollforward should be trying to add containers considering the source filesystems. but we dont have the same filesystem layout in the target . Thanks, Kamalnath.V |
#4
| |||
| |||
|
|
On Jun 24, 2:25*am, Gladiator <vkamalnath1... (AT) gmail (DOT) com> wrote: Hello , I have a scenario . consider we have a database for which we have taken a Full backup on monday. We have added tablespaces say on tuesday. Consider we want to do a redirect restore onto a different box which has compeltely different filesystems with different mount points Using the backup taken on monday . When we generate the script we dont get the new tablespaces *which were added on tuesday. So even the restore was successfull , how does the rollforward continue as the containers were not set for the newly added tablespaces *? Rollforward should be trying to add containers considering the source filesystems. but we dont have the same filesystem layout in the target . Thanks, Kamalnath.V I assume you are talking about ONLINE backup. *The GENERATE command won't extract the info after the backup...you have to manually key in for that tablespace. (at least that is what my tests are showing) As a matter of fact...why don't u try that...with sample table 1. Create a sample database db2sampl 2. Take a backup 3. Create a tabelspace 4. db2 "restore db sample from /XXX *taken at 20100624120142 redirect generate script test.clp" Cheers Shashi Mannepalli- Hide quoted text - - Show quoted text - |
#5
| |||
| |||
|
|
On Jun 24, 9:15*pm, whatever <audheya2... (AT) gmail (DOT) com> wrote: On Jun 24, 2:25*am, Gladiator <vkamalnath1... (AT) gmail (DOT) com> wrote: Hello , I have a scenario . consider we have a database for which we have taken a Full backup on monday. We have added tablespaces say on tuesday. Consider we want to do a redirect restore onto a different box which has compeltely different filesystems with different mount points Using the backup taken on monday . When we generate the script we dont get the new tablespaces *which were added on tuesday. So even the restore was successfull , how does the rollforward continue as the containers were not set for the newly added tablespaces *? Rollforward should be trying to add containers considering the source filesystems. but we dont have the same filesystem layout in the target . Thanks, Kamalnath.V I assume you are talking about ONLINE backup. *The GENERATE command won't extract the info after the backup...you have to manually key in for that tablespace. (at least that is what my tests are showing) As a matter of fact...why don't u try that...with sample table 1. Create a sample database db2sampl 2. Take a backup 3. Create a tabelspace 4. db2 "restore db sample from /XXX *taken at 20100624120142 redirect generate script test.clp" Cheers Shashi Mannepalli- Hide quoted text - - Show quoted text - HI Shasi , I am sure the tablespaces gets created and will be loaded with data during the rollforward if it is on the same server with the same filesystem layout. The question is if have to do this on a different system with a different filesystem layout.. Unfortunately i dont have 2 servers to test this . Kamal.- Hide quoted text - - Show quoted text - |
#6
| |||
| |||
|
|
I have a scenario . consider we have a database for which we have taken a Full backup on monday. We have added tablespaces say on tuesday. Consider we want to do a redirect restore onto a different box which has compeltely different filesystems with different mount points Using the backup taken on monday . When we generate the script we dont get the new tablespaces which were added on tuesday. So even the restore was successfull , how does the rollforward continue as the containers were not set for the newly added tablespaces ? Rollforward should be trying to add containers considering the source filesystems. but we dont have the same filesystem layout in the target . |
#7
| |||
| |||
|
|
Hi Kamalnath, I asked our master of backup and recovery (:-)) and he says the following: ----- If the tablespace is not in the backup then we will simply replay the add tablespace / add container operations as they appear in the log stream. If they fail then those tablespaces will be taken off line. We recommend that you create a backup after adding table spaces. ----- Cheers, Helmut |
#8
| |||
| |||
|
|
Or temporarily create a path that matches the path of the new tablespaces from the source server after the backup. You might be able to use a symbolic link on the target server with the path name you need. You can move the tables later to another tablespace. |
#9
| |||
| |||
|
|
Yes, this will work. Or temporarily create a path that matches the path of the new tablespaces from the source server after the backup. You might be able to use a symbolic link on the target server with the path name you need. You can move the tables later to another tablespace. -- Helmut K. C. Tessarek DB2 Performance and Development /* * *Thou shalt not follow the NULL pointer for chaos and madness * *await thee at its end. */ |
![]() |
| Thread Tools | |
| Display Modes | |
| |