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 > Restoring DB2 Image - File System Challenge

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-20-05, 02:04
chaisikar chaisikar is offline
Registered User
 
Join Date: Dec 2003
Location: Kuching/Malaysia
Posts: 17
Restoring DB2 Image - File System Challenge

Hi All,

Do have one question.

I do have one ABC Database db2 image file which is backup by command below:

ABC_User> db2 backup db ABCDB online to /ABCDB_Archive

the ABCDB database detail as below

Database alias = ABCDB
Database name = ABCDB
Local database directory = /database/abcdb
Database release level = 9.00

The challenge now I have is when come to restore this image to another development environment

My virtual "/database/abcdb" file system is too small to restore back the image which had been backup before. No way to increase, because no disk.

The question is

Can I restore my images from the previous backup from "/database/abcdb" to two difference local database directory? How to do it?

What I mean here is my one mount point is not enough space, but I do have some mount point balance from others, so can I do that?

Any good suggestion for me?

Thank

Regards
SiKar
Reply With Quote
  #2 (permalink)  
Old 01-20-05, 02:26
jacampbell jacampbell is offline
Registered User
 
Join Date: Jan 2005
Posts: 191
Create a symbolic link from /database/abcdb to a file system with enough space.
mkdir /big-fs/abcdb
ln -s /big-fs/abcdb /ABCDB_Archive/.../lastname
now anything written into /ABCDB_Archive/.../lastname will actually go into big-fs.

James Campbell
Reply With Quote
  #3 (permalink)  
Old 01-20-05, 05:21
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
You may use a redirected restore
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 01-25-05, 07:05
chaisikar chaisikar is offline
Registered User
 
Join Date: Dec 2003
Location: Kuching/Malaysia
Posts: 17
Dear James Campbell

Symbolic link cannot apply in my environment, I understand what is your method. Reason is because I totally did not have enough space that big like what I have in ABCDB database. Unless symbolic link can joining multi location.

so Symbolic link not work for me.

Regards
SiKar
Reply With Quote
  #5 (permalink)  
Old 01-25-05, 07:06
chaisikar chaisikar is offline
Registered User
 
Join Date: Dec 2003
Location: Kuching/Malaysia
Posts: 17
Dear sathyaram_s

What do you mean re-directed restore?

Regards
SiKar
Reply With Quote
  #6 (permalink)  
Old 01-25-05, 08:36
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
please search in the documentatiion .. Developer domain has a step-by-step procedure to perform a redirected restore ..
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #7 (permalink)  
Old 01-30-05, 07:43
chaisikar chaisikar is offline
Registered User
 
Join Date: Dec 2003
Location: Kuching/Malaysia
Posts: 17
Hi sathyaram

Thank

Regards
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