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 - How to update DB CFG

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-17-09, 08:08
dgunas dgunas is offline
Registered User
 
Join Date: Dec 2008
Location: Chennai
Posts: 110
HADR - How to update DB CFG

Hi,
Version 8.2 pf 12

We have setup the HADR and it is in place now.

I have to change the DB CFG LOGPRIMARY and LOGSECOND values. When i updated the LOGPRIMARY value to 40, the db2 state that until restart the DB2 the change will not be affected.

if i restart the DB2, will this effect the HADR? if it is then how can I resume the HADR? Do i need to setup the HADR from the bigining including Restore?

Please give me your suggestions.

Thanks.
__________________
Reply With Quote
  #2 (permalink)  
Old 02-17-09, 09:29
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Did it say db2 restart or all connections to the database are removed?

You should be able to deactivate the database, db2 force all applications, and then activate it again. If that does not work, deactivate the database, db2stop, activate db.

You will have to do this independently for primary and server since those settings don't get replicated.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 02-17-09, 10:52
dgunas dgunas is offline
Registered User
 
Join Date: Dec 2008
Location: Chennai
Posts: 110
Hadr

Hi,

It says restart DB2.

To restart DB2, i have to force all applications. My concern is, when i force all applications then issuing DB2STOP and DB2START command, will this kill the HADR ?
When I issue DB2START,the wll the HADR resume automatically? or I have to setup the HADR again from the begining?

Thanks,
__________________
Reply With Quote
  #4 (permalink)  
Old 02-17-09, 12:42
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I understood the question and already gave the answer. Based on my experience with HADR in V9.5 you will not have to setup HADR again from the begining. I doubt that there is any difference with 8.2 but I don't have a server to try it on. Only do one server at a time.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390

Last edited by Marcus_A; 02-17-09 at 12:46.
Reply With Quote
  #5 (permalink)  
Old 02-19-09, 15:13
dgunas dgunas is offline
Registered User
 
Join Date: Dec 2008
Location: Chennai
Posts: 110
Question Hadr

Thanks Marcus.

I am going to try this soon.
Incase if i want to start HADR from the begining, the entire process will take more than 12 hours and this will affect the SLA.
DB Size is over 500GB

Also when HADR in place, is it possible to do offline backup? what action i have to do before and after the backup please?

Thanks, dgunas
__________________
Reply With Quote
  #6 (permalink)  
Old 02-20-09, 00:52
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by dgunas
Thanks Marcus.

I am going to try this soon.
Incase if i want to start HADR from the begining, the entire process will take more than 12 hours and this will affect the SLA.
DB Size is over 500GB

Also when HADR in place, is it possible to do offline backup? what action i have to do before and after the backup please?

Thanks, dgunas
You cannot do an offline backup with HADR in peer state, but if you deactivate the database and force off all connections, it might work (I have not tried it).

Just remember to activate the database again after the deactivate (for backup or after instance restart).

It might be a good idea to create a test database to try this on.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #7 (permalink)  
Old 02-20-09, 08:51
dgunas dgunas is offline
Registered User
 
Join Date: Dec 2008
Location: Chennai
Posts: 110
Thanks

Thanks Marcus. I will try to setup a test env.

Regards, dgunas
__________________
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