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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-03-11, 08:20
Meena.s Meena.s is offline
Registered User
 
Join Date: Sep 2006
Posts: 87
Hadr

Hello Team,

For testing purpose , we initally take an offline db backup on db2v8 production server to disk.

1) The Backup image was FTPed into new HADR servers say A & B.

2) DB2V9 installed.

3) DB migrated through redirect restore on primary server A.

4) COnfigured HADR by restoring without rollingforward on Secondary server B.

5) HADR configured on server A as primary and Server B as seconday.

Now the requirement is to copy the fresh db backup (recent one) on db2v8 production and to replace the db2v9 servers.

Am planning to do the below tasks:
==================================
1) Take an offline Database of V8 on production server to Disk.

2) FTP the Backup Image from Production server to New servers A & B.

3) Stop the HADR DB on both primary and secondary server.

4) Restore the DB on primary server -

5) Restore the DB on Secondary Server -(Without rolling forward)

6) Start the HADR on both the serves as primary and standby respectively.(as earlier).

Is the way am doing is correct?

Thanks for your help in advance.
Reply With Quote
  #2 (permalink)  
Old 06-07-11, 04:23
Meena.s Meena.s is offline
Registered User
 
Join Date: Sep 2006
Posts: 87
Any Idea on this Folks ?

Thanks for your help in Advance.
Reply With Quote
  #3 (permalink)  
Old 06-07-11, 08:02
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
If you tested it thaat way, why shouldn't it work for your productive migration?

Do you have automatic failover? To be on the safe side i'ld drop the configuration and recreate it afterwards.
Reply With Quote
  #4 (permalink)  
Old 06-09-11, 19:40
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Curious!Did this work?

Specifically steps 4,5 and 6 in your plan?

Thanks
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 06-10-11, 14:19
deshaipet deshaipet is offline
Registered User
 
Join Date: Aug 2008
Posts: 76
Hi Meena,

You can follow this procedure.

1) Take an offline Database of V8 on production server to Disk.

2) FTP the Backup Image from Production server to New server A ( Primary ).

3) Deactivate primary database and stop the primary instance, deactivate standby database and stop standby instance.

4) Restore the backup on Primary without rolling forward. ( HADR automatically deactivates after a restore).

5) Take a backup of primary and restore it on the standby without rolling forward.

6) Start HADR on standby and then start HADR on primary.

Thanks,
Panditt
Reply With Quote
  #6 (permalink)  
Old 06-10-11, 14:22
deshaipet deshaipet is offline
Registered User
 
Join Date: Aug 2008
Posts: 76
Hi Sathya,

Steps 4,5 and 6 mentioned in Meena's procedure would work if the backup taken was at the same level as the current instance. But as you know HADR must be started on standby first and then primary.

Since, she is restoring from a previous version it would be very interesting to know if those steps would work.

Thanks,Pandit
Reply With Quote
  #7 (permalink)  
Old 06-13-11, 05:57
Meena.s Meena.s is offline
Registered User
 
Join Date: Sep 2006
Posts: 87
Thanks Santhya and Pandit.

I didn't test the above steps yet . will be trying to perfom this by next week.

Pandit .. We need to restore without rolling forward on primary as per your steps ?
Reply With Quote
  #8 (permalink)  
Old 06-14-11, 00:26
deshaipet deshaipet is offline
Registered User
 
Join Date: Aug 2008
Posts: 76
Hi Meena,

I am sorry it was a typo. You can restore the database on primary either ways i.e. either offline or online backups can be used to restore on primary. But as you know on standby you should not rollforward.


1) Take an offline Database of V8 on production server to Disk.

2) FTP the Backup Image from Production server to New server A ( Primary ).

3) Deactivate primary database and stop the primary instance, deactivate standby database and stop standby instance.

4) Start primary instance, Restore the backup on Primary . ( HADR automatically deactivates after a restore).

5) Start standby instance, Take a backup of primary and restore it on the standby without rolling forward.

6) Start HADR on standby and then start HADR on primary.
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