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 an failover

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-23-08, 12:23
anwyuta anwyuta is offline
Registered User
 
Join Date: Sep 2004
Posts: 24
HADR an failover

hi,
maybe someone can bring light in the dark.
i have two virtuell maschines with DB2 9.5 and HADR running.

VM1 is primary, VM2 is standby.

i want to test the takeover in case of an error of VM1
and disabled the network adapter of VM1.

i thought VM2 would become primary but the DB2 got the status: remote catch-up !?!

does the failover not switch the db2 rolles automaticaly?

thanks for advice
anwy
Reply With Quote
  #2 (permalink)  
Old 10-23-08, 15:02
madhu_kaza madhu_kaza is offline
Registered User
 
Join Date: Apr 2008
Posts: 39
No, the failover does not switch roles automatically. We need to manually perform takeover operation.

We can perform HADR takeover operation using one of the following ways.

1) Switch database roles: primary becomes standby,standby becomes primary
2) Failover from primary to standby: primary does not switch to standby.

switch database roles can be done on standby database as follows
TAKEOVER HADR ON DB <database name>


Failover from primary to standby: can be done as follows
TAKEOVER HADR ON DB <database name> by FORCE

Note that the standby database should be in peer state else the failover does not happen.

Thanks,
Madhavi
Reply With Quote
  #3 (permalink)  
Old 10-24-08, 01:35
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by anwyuta
hi,
maybe someone can bring light in the dark.
i have two virtuell maschines with DB2 9.5 and HADR running.

VM1 is primary, VM2 is standby.

i want to test the takeover in case of an error of VM1
and disabled the network adapter of VM1.

i thought VM2 would become primary but the DB2 got the status: remote catch-up !?!

does the failover not switch the db2 rolles automaticaly?

thanks for advice
anwy
HADR keeps the databases in synch and does a takeover when instructed by a DBA or some automated process. There are cluster managers that will detect a failure of a server and issue the HADR takeover command.

HADR comes with a free copy (for 2 nodes) of the Tivoli System Automation cluster manager, if you want to use that one, but there are other cluster managers that also work.
__________________
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
  #4 (permalink)  
Old 10-24-08, 02:51
anwyuta anwyuta is offline
Registered User
 
Join Date: Sep 2004
Posts: 24
Markus,

can you please tell me more about the fact that
HADR comes with a free copy (for 2 nodes) of the Tivoli System Automation cluster manager?

where can ich find it? we have a licence of the DB2 Datawarehouse Enterprise Edition 9.5.

maybe you can recommend other cluster manager?

thanks in advance
anwyuta
Reply With Quote
  #5 (permalink)  
Old 10-24-08, 10:59
Kota Kota is offline
Registered User
 
Join Date: Jun 2003
Posts: 113
The only way you can automate is to come up with a script (probably Perl would be a good option) to ping the nodes. You have to make sure that they are in peer state and needs extensive testing. At my old job, it was a shell script we used but Perl would be better.
Also TSA (Tivoli System Automation) would be an option.
__________________
Thanks
SK
Reply With Quote
  #6 (permalink)  
Old 10-24-08, 15:30
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by anwyuta
Markus,

can you please tell me more about the fact that
HADR comes with a free copy (for 2 nodes) of the Tivoli System Automation cluster manager?

where can ich find it? we have a licence of the DB2 Datawarehouse Enterprise Edition 9.5.

maybe you can recommend other cluster manager?

thanks in advance
anwyuta
HADR does not work with Data Partitioning (DPF) so I don’t know if it is included with DB2 Datawarehouse Enterprise Edition 9.5. But if you have Passport Advantage or the Licensed Media discs, then you should be able to find it. Some parts of TSA are actually installed by default as part of the DB2 install unless you request that it not be installed.

I tried to use TSA about 3 years ago when it was first included with 8.2 ESE and it had some problems. There have been some improvements and it may work better now, but it is still fairly complex IMO. My shop uses Red Hat Cluster Manager. These decisions are usually made by the System Administrators, especially if they have been using a Cluster Manager for other systems (non DB2) previously, and are already familiar with how it operates.

I have heard that Veritas Cluster Manager also works well with HADR (requires Veritas HADR agent add-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
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