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 > Apply fixpack on HADR Servers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-01-11, 15:11
Hunters Hunters is offline
Registered User
 
Join Date: Feb 2007
Posts: 1
Apply fixpack on HADR Servers

I have to apply fixpack on DB2 V9.1 FP5 to upgrade it to fp7. The database has HADR implementation.

I know about the rolling fixpack option but the team wants to shut down the HADR completely on both primary & standby, apply the fixpack and bring up the hadr.

The steps i can think of are: -

Stop HADR ON peer:-
db2 deactivate db zinga
db2 STOP HADR ON db zinga
db2stop

Stop HADR ON primary:-
db2 STOP HADR ON DB zinga
db2stop

Apply fixpack on both the servers/update instance/das update

Start HADR ON peer:-
db2 START HADR ON DB zinga AS STANDBY

Start HADR ON primary:-
db2 START HADR ON DB zinga AS PRIMARY

Let me know in case I am doing something wrong since I am not sure with the steps right now.
Reply With Quote
  #2 (permalink)  
Old 09-01-11, 15:29
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You can't stop HADR completely without using a backup and restore to re-establish the standby. I am not 100% sure about 9.1, but you should be able to:
  1. deactivate db on standby
  2. db2stop on standby
  3. db2iupdt on standby
  4. db2start on standby
  5. activate db on standby (this should casue HADR to be Peer mode again)
  6. Takeover HADR on standby to switch roles
  7. deactivate db on old primary (now standby)
  8. db2stop on old primary (now standby)
  9. db2iupdt on old primary (now standby)
  10. db2start on old primary (now standby)
  11. activate db on old primary (now standby)
  12. Takeover HADR on standby (old primary) to switch roles back to original state
__________________
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 09-01-11, 18:25
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Even if the application is stopped for you to do an upgrade, I don't see a problem with Marcus_A's approach. There is no need to shut down the servers.

When shutting down the databases/instances, you should always do the primary first. This will ensure that no transaction happens after standby is shut down.

HTH

Sathyaram

--
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 09-02-11, 01:56
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
"You can't stop HADR completely without using a backup and restore to re-establish the standby. "
There is no problem in stopping and starting hadr completely. as long as you do not bring the standby out of rollforward - no problem. we even have tsa and on accept we stop the both servers and apply fixpack and restart all - without backup/restore..

The first procedure requested can be followed without problem..
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #5 (permalink)  
Old 09-12-11, 02:09
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
Hi There,
In the thread listed below: -
Apply fixpack on HADR Servers
you wrote that you did stop the HADR on both servers,apply fixpack and restart all.
Can you please list down the steps to be taken on primary/standby server for it. It is quite imp for me.Thanks in advance
Yes, my salary is also very important to me. I did stop spoonfeeding long time ago. All info is in the book, so at least : have a look and try to understand, OR hire somebody that does and could inform you how to do this in the future..
Maintaining a cluster domain using db2haicu
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #6 (permalink)  
Old 09-12-11, 02:58
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Quote:
Originally Posted by przytula_guy View Post
I did stop spoonfeeding long time ago. All info is in the book, so at least : have a look and try to understand
I agree 100% with you, Guy.

Personally, I don't mind the very basic questions even, as long as it shows that they have put in efforts to understand, like this one

Why Am I an Error with this Query?

But, the ones below are annoying.

Join Query - Urgent!!!
Query is Taking too much of time around 30 mins... plz help me out folks :-(

-
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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