If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 backup question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-12-07, 13:38
anksagr anksagr is offline
Registered User
 
Join Date: Jul 2005
Posts: 102
DB2 backup question

Hi All,

ENV: AIX 5.3, DB2 8.2 FP 7

If i want to backup by database to tsm and also send archived logs to tsm i just set up the db cfg LOGARCHMETH1 to TSM, but if i don't want to send my logs to tsm and keep them on disk only, what database parameters I can change?

Also by not sending the archived logs to tsm and sending backups to tsm, can this cause any issues with database recovery, like slow recovery, etc?

Thanks

Anks
Reply With Quote
  #2 (permalink)  
Old 10-12-07, 15:05
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
The parameter you need to set is LOGARCHMETH1.

The answer to your second question is that by keeping the archived logs on disk you will speed up recovery because you do not have to get them from tsm. You run the risk that in the event that the disk crashes, you could lose your logs making recovery almost impossible.

Andy
Reply With Quote
  #3 (permalink)  
Old 10-12-07, 16:14
anksagr anksagr is offline
Registered User
 
Join Date: Jul 2005
Posts: 102
Thanks

The database that I am talking about is set up for HA. And the reason for keeping the archive logs on disk is that in case of a failure, these archived logs are shipped to the standy.

Is it possible to send the archived logs to tsm and still be able to retrieve the logs from tsm on the standby machine? Can this be achieved through creating a virtual node on TSM which is accessible from both primary and standby machines? What db parameters needs to be taken care of in such a scenario?

Thanks again for your help

Anks
Reply With Quote
  #4 (permalink)  
Old 10-12-07, 16:31
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I have not used tsm but I should hope that you should be able to access the logs on another server, otherwise what would be the point.

You should also note that you have dual log archive methods (LOGARCHMETH2). You might be able to set up both tsm archiving and disk.

Andy
Reply With Quote
  #5 (permalink)  
Old 10-12-07, 16:52
anksagr anksagr is offline
Registered User
 
Join Date: Jul 2005
Posts: 102
Okay

If I set up, LOGARCHMETH1 to TSM and LOGARCHMETH2 to DISK:/home/db2inst1/archive_logs/ and I need to constantly send logs to the standby machine also. What happens when the failover occurs, how the restore will take place?

I am sorry but i have never worked on a hot standby scenario, and thats why I am asking these questions.

Thanks again

Anks
Reply With Quote
  #6 (permalink)  
Old 10-12-07, 17:05
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Take a look at this link. It is old but it might help.

You can also look into HADR at this link:

http://www.redbooks.ibm.com/redpiece...7363.html?Open

Andy
Reply With Quote
  #7 (permalink)  
Old 10-17-07, 15:24
anksagr anksagr is offline
Registered User
 
Join Date: Jul 2005
Posts: 102
Thanks.

I have another question if I am updating the userprofile and adding the dsmi vars in the userprofile, do i have to bounce the instance after making changes to the userprofile?

If I just do "set dsmi vars" as an instance owner wouldn't that set my variables at the shell?

Please advise

Thanks
Anks
Reply With Quote
  #8 (permalink)  
Old 10-17-07, 15:39
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I do not know AIX at all, but if you change any parameters that affect how the instance is running, then you will need to bounce it.

Andy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On