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 > Move DMS Container from one dir to another ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-29-09, 07:43
vilius vilius is offline
Registered User
 
Join Date: Nov 2007
Posts: 55
Move DMS Container from one dir to another ?

Hi,

How to move container from one dir to another ?

thanks
Vilius
Reply With Quote
  #2 (permalink)  
Old 01-29-09, 07:49
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
DB2RELOCATEDB command. - Refer documentation.

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 01-29-09, 09:49
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
...or perform a redirected restore.
Reply With Quote
  #4 (permalink)  
Old 02-03-09, 02:05
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Add containers (large enough to hold everything) on the new location and wait for the "rebalance" to finish. 50% of your data is transferred now.
Drop the old/original containers. The next rebalance operation will transfer the remaining 50% of your data.
There is a performance impact, but the database does not have to be brought down.
Reply With Quote
  #5 (permalink)  
Old 02-04-09, 22:30
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
What you can do is:

1) alter tablespace to add a new container of the same size (specify a different filesystem/directory) and specify "begin new stripe set" so that rebalancing doesn't kick in

2) alter tablespace to remove the original container


At the end, all data will be moved from the original container to the new container without rebalancing.
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