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 on AIX

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-20-04, 11:08
bjverzal bjverzal is offline
Registered User
 
Join Date: Apr 2004
Location: Near Chicago
Posts: 4
DB2 backup question on AIX

I have a DB2 database backup I create every night. It is a full backup to disk images. Here is the command:

db2 backup database 'PR1' TO '/bk01,/bk02,/bk03' WITH '6' BUFFERS BUFFER '2048' PARALLELISM '6'

Well, '/bk01' .. '/bk03' are 3 journaled filesystems that are 113GB each.

Every night, I get 1 or 2 of these filled, while the third one has 10GB free.

On my other system, which has identical filesystems, only called '/dv01' ... '/dv03' we do a backup with the same command, except 'PR1' is replaced by 'DV1' and the filesystems are allocated much more evenly.

My host machine for both backups is a RS/6000 H80 with 6 processors and 8GB of memory.

Can anyone offer any thoughts on this ?

Thanks, Bill.
Reply With Quote
  #2 (permalink)  
Old 04-20-04, 11:33
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I believe that specifying multiple directories causes the backup to be done in parallel to the specified locations, at the tablespace level. This is not the same as if each tablespace is striped across all the directories (the way it works with multiple tablespace containers). So if the tablespace sizes are not the same on each database, this could cause the sizes to be unbalanced.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 04-20-04, 11:37
bjverzal bjverzal is offline
Registered User
 
Join Date: Apr 2004
Location: Near Chicago
Posts: 4
Quote:
Originally posted by Marcus_A
I believe that specifying multiple directories causes the backup to be done in parallel to the specified locations, at the tablespace level. This is not the same as if each tablespace is striped across all the directories (the way it works with multiple tablespace containers). So if the tablespace sizes are not the same on each database, this could cause the sizes to be unbalanced.
I see your point.

The database instances are roughly the same. Filesystem names are identical, however the "PR1" database is about 13GB larger. But table names are identical - just larger.

I am just perplexed that the 2 'bk' filesystems literally fill up to 100% used and the last one is only ~90% used, whereas the 'dv' filesystems are all in the 90% range. They seem to balance more.

Thanks- Bill.
Reply With Quote
  #4 (permalink)  
Old 04-20-04, 11:42
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Do you know what happens if the file systems are different sizes. Does the backup fully utilize all the space even if they are different sizes?
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 04-20-04, 11:52
bjverzal bjverzal is offline
Registered User
 
Join Date: Apr 2004
Location: Near Chicago
Posts: 4
Quote:
Originally posted by Marcus_A
Do you know what happens if the file systems are different sizes. Does the backup fully utilize all the space even if they are different sizes?
The other admin just made a discovery...the filesystems are all striped I knew that much). However, the stripe size on the 'bk' filesystems is larger than the 'dv' filesystems. I'm going to re-create the 'bk' filesystems with the smaller stripe size then post the results tomorrow after tonight's backup.

Thanks for everything.

BV
Reply With Quote
  #6 (permalink)  
Old 04-21-04, 11:21
bjverzal bjverzal is offline
Registered User
 
Join Date: Apr 2004
Location: Near Chicago
Posts: 4
Quote:
Originally posted by bjverzal
The other admin just made a discovery...the filesystems are all striped I knew that much). However, the stripe size on the 'bk' filesystems is larger than the 'dv' filesystems. I'm going to re-create the 'bk' filesystems with the smaller stripe size then post the results tomorrow after tonight's backup.

Thanks for everything.

BV
When I corrected the disk striping parameters, my problem was resolved. Thanks to everyone.

BV
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