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 > Moving data from SAN to local disk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-30-09, 16:40
rangupt rangupt is offline
Registered User
 
Join Date: Jan 2008
Posts: 96
Moving data from SAN to local disk

Hi Folks,

OS is AIX 5.3 and DB2 v8.1 FP 7

We use to use Lawson finance module and the backend database is DB2 for that. The data is basically Read-only. We need to Move the database from SAN to local Hard disk without changing the names of the file systems. The lawson application breaks if the actual path to data and index changes, so we have to retain the same file system naming conventions but move the data from SAN to local disk.

I know we cannot have 2 file systems with the same name mounted on the server. Would this process work in this situation?
  1. Backup the existing database
  2. Remove the file systems that are on SAN
  3. Recreate the file systems with the same name on local disk
  4. Restore the database


Thanks
Reply With Quote
  #2 (permalink)  
Old 03-30-09, 16:45
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
It sounds like it should work. Make sure you do an offline backup.

Andy
Reply With Quote
  #3 (permalink)  
Old 03-30-09, 16:46
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You might want to test it first to make sure that you have the processes down.

Andy
Reply With Quote
  #4 (permalink)  
Old 03-31-09, 00:47
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
Quote:
Originally Posted by rangupt
  1. Backup the existing database
  2. Remove the file systems that are on SAN
  3. Recreate the file systems with the same name on local disk
  4. Restore the database
Why not try redirected restore.... works all the time for me
So your list woud be modified to
  1. Backup the existing database
  2. Redirect Restore the database

Check out the following useful links -
DB2 Basics: Cloning DB2 Databases Using Redirected Restore

DB2 Redirected Restore Scripts
__________________
IBM Certified Database Associate, DB2 9 for LUW
Reply With Quote
  #5 (permalink)  
Old 04-01-09, 03:22
mitrofun mitrofun is offline
Registered User
 
Join Date: Sep 2007
Posts: 22
Quote:
Originally Posted by rangupt
I know we cannot have 2 file systems with the same name mounted on the server. Would this process work in this situation?
Just one think :

If your database file system reside on it's own AIX volume group, you can try to migrate SAN's hdisk's to local hdisks's with AIX migratepv command when DB2 instance completely stopped
Of course, doing offline backup before.
But this need strong help from your AIX sysadm
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