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 > rebalancing

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-07-06, 13:51
AnilKale AnilKale is offline
Registered User
 
Join Date: Feb 2005
Posts: 118
rebalancing

Hi All,

Can somebody explain to be the concept of rebalancing (DB2 for LUW). It sounds like redistributing data across the available containers.
For example:
Let's say
I have a DMS TS S1, using container file F1.
F1 is 600 MB (as per disk utilization)
I add two more containers F2 AND F3 (same size as F1)
based on my interpretation of the term rebalancing, after rebalancing, I expect to see the usage as
file F1 is 200MB
file F2 is 200MB
file F3 is 200MB
However, I don't see what I thought I might see.
Could someone please explain this concept of rebalancing to me ? Is this something specific to the LUW world, or does it also exist in the z/OS world ?

Thanks
Anil
Reply With Quote
  #2 (permalink)  
Old 04-07-06, 15:54
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 04-09-06, 11:56
hq_l hq_l is offline
Registered User
 
Join Date: Apr 2006
Posts: 1
when you add containers F2 ,F3 (600M) to TS S1, OS will alloc file ,its sizewill be 600M as you see.
rebalance means DB2 will move Extents from f1 to f2,f3,in order to improve IO performance. F1 may be not fully used before rebalance,for example , it is only used 300M,other 300M space is empty. After rebalance , F1 will be used 100M by DB2,other 500M space is not used. F2,F3 too.
But when we see F1,F2,F3 from OS, it still is 600M.
Reply With Quote
  #4 (permalink)  
Old 04-10-06, 06:20
msundaram msundaram is offline
Registered User
 
Join Date: Jun 2003
Location: Chennai
Posts: 26
Rebalance takesplace...

The information is documented
in the infocenter at:
http://publib.boulder.ibm.com/infoce...help/index.jsp
In that page search for "rebalancing"

Check the document "How containers are added and extended in DMS table
spaces.

It tells the following:

"if you have a number of containers that are the same size, and you ex
tend each of them by the same amount, the relative positions of the
extents will not change, and a rebalance will occur."

Therefore, instead of adding 50000 to one container, if you added
12500 pages each in all 4 containers when all the containers were of
same size, then rebalance would not occurr.

The actual issue is if an extent needs to move from one strip set to
another, then rebalance occurrs.
__________________
MS
Reply With Quote
  #5 (permalink)  
Old 04-10-06, 07:20
ggnanaraj ggnanaraj is offline
Registered User
 
Join Date: Aug 2002
Location: Chennai, India
Posts: 171
You could also avoid rebalancing, by use of BEGIN STRIP SET option of the ALTER command when you add a container to the DMS table space.

HTH.
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