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 > problems with online backup...include logs option

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-10-08, 12:16
rangupt rangupt is offline
Registered User
 
Join Date: Jan 2008
Posts: 96
problems with online backup...include logs option

Hello Gurus,

I am a newbie to this forum.

ENV: DB2 v9, AIX 5.3

We are backing up the database to TSM. The archive logs go to a different managementclass (primary DISK stgpool -- BUPOOL3) where as backups are going to tape. This is the backup command that I am using:
db2 backup database $Dbname online use tsm parallelism 4 include logs

Sometimes (there is no pattern) the backup fails with the following error:
SQL2025N An I/O error "-50" occurred on media "TSM".

Earlier we thought that probably there are insufficient tape drives (mount points) available but that wasn't the case. The db2diag.log shows the following error:
ADM8010E Backup was unable to copy requested log file "S0000086.LOG" for inclusion in the backup image. The backup has been aborted.

Now it seems the problem is the "include logs" option that we are using with the backup command. After researching there's not much I could find other than "The error occurs when archiving and retrieving happen simultaneously".

Is there a way to get around this problem? How can I set up a different management class for the logs that are included with the backup. Will this affect the backup performance and the restore?

Thanks in advance for the help

rangupt
Reply With Quote
  #2 (permalink)  
Old 01-10-08, 13:48
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Just an idea, as I do not know aix or tsm, how about setting logarchmeth1 to disk, logarchmeth2 to tsm, and clean up the archive logs from logarchmeth1 when appropriate?

Andy
Reply With Quote
  #3 (permalink)  
Old 01-10-08, 16:11
rangupt rangupt is offline
Registered User
 
Join Date: Jan 2008
Posts: 96
Thanks Andy,

I could use that, but I really want to use the "include logs" option.

Say, does "include logs" include only the active logs at the time of the backup or does it include any archived logs also?
Reply With Quote
  #4 (permalink)  
Old 01-10-08, 16:21
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You should be able to use the "include logs" option this way. The problem is that during the backup, DB2 might determine that it needs to include an archived log and thus needs to retrieve it. Like I said, I do not know tsm, but it might have a problem trying to retrieve a log file while it is backing up the same server. Using this method, it will try the retrieve from disk first, then tsm if that fails, although retrieving from disk almost never fails.

Andy
Reply With Quote
  #5 (permalink)  
Old 01-11-08, 08:12
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,
maybe this can help:
http://www-128.ibm.com/developerwork...ageID=14017064
Hope this helps,
Grofaty
Reply With Quote
  #6 (permalink)  
Old 01-11-08, 14:36
rangupt rangupt is offline
Registered User
 
Join Date: Jan 2008
Posts: 96
Thanks Andy and grofaty

I *think* I have figured out the problem about the backups failing occasionally.

The problem is that the archive logs even though go to disk but eventually ending up on the same tape where backup is being written to. So backup fails when the tape is trying to read and write at the same time.

So I think allocating a different storage pool to backups could help solve the issue.

Thanks again
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