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 > Db2 hadr

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-21-10, 19:18
gvphubli gvphubli is offline
Registered User
 
Join Date: Sep 2003
Location: United States
Posts: 53
Question Db2 hadr

Hi All,

I have configured db2 hadr successfully and is working as expected. What I am not understanding is what happens when Primary server/instance goes down unexpectedly.

The client connections will flow to stand-by server as I have configure "ALTERNATE server", however the stand-by server database will be in "ROLL-FORWARD PENDING STATE" and database will not be readable

Any thoughts will help.
__________________
Girish Patil
10+ Yrs of SQL Server Dev & Admin Exp.
ITIL Foundation Certified
Visit my blog : http://gvphubli.*************/
Reply With Quote
  #2 (permalink)  
Old 06-22-10, 00:00
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
DB2 HADR by itself does not automatically failover to the standby. The following command must be issued on the standby:

db2 takeover hadr on db-name

If the existing primary server is not reachable by the standby, then you might have to issue this command:

db2 takeover hadr on db-name by force

You need a cluster manager to detect that a server failure has occured and that automatically issues the above commands. DB2 comes with TSA (Tivoli System Automation) that is included for free that will do this, but there are other cluster managers that can be used, or you can do it manually.
__________________
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 06-22-10, 16:55
gvphubli gvphubli is offline
Registered User
 
Join Date: Sep 2003
Location: United States
Posts: 53
Thanks Marcus,

so does that mean I have to monitor disks, database(s) and the db2 services, and IP as failure of anyone of these can cause the non-availability.

or ping to a database is good enough to determine the service non-availability ?
__________________
Girish Patil
10+ Yrs of SQL Server Dev & Admin Exp.
ITIL Foundation Certified
Visit my blog : http://gvphubli.*************/
Reply With Quote
  #4 (permalink)  
Old 06-22-10, 18:25
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
You cannot ping a database, you can ping a server. You can connect to a database.

There are many strategies used to determine when to failover and issue the HADR takeover command, and some people just do it manually. The included TSA software will perform this function, but is a a little complex.

My company uses Red Hat Cluster manager to detect server problems, along with some scripts to detect when a database is not available. We also use a virtual IP instead of automatic client re-route, which is a little safer in ensuring that a split-brain situation never occurs.

There is a DB2 High Availability manual you get in PDF format that discusses these issues.
__________________
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
Reply

Tags
hadr

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