Connecting Tech Pros Worldwide Help | Site Map

HADR - AIX

  #1  
Old November 2nd, 2008, 09:45 AM
agentlease@hotmail.com
Guest
 
Posts: n/a
Hi,

If the HADR state is 'Disconnected' and commit transactions to the
Primary database, in the event of a Failover to the Standby database,
how do we determine if it is safe i.e. how do we know how far behind
the standby database is?

Basically what is the procedure to determine if it's safe to do a
failover to the standby with a takeover hadr .....force.
  #2  
Old November 2nd, 2008, 10:25 AM
Mark A
Guest
 
Posts: n/a

re: HADR - AIX


<agentlease@hotmail.comwrote in message
news:0481bdf8-eb8a-4453-9235-e294c03c17e7@x16g2000prn.googlegroups.com...
Quote:
Hi,
>
If the HADR state is 'Disconnected' and commit transactions to the
Primary database, in the event of a Failover to the Standby database,
how do we determine if it is safe i.e. how do we know how far behind
the standby database is?
>
Basically what is the procedure to determine if it's safe to do a
failover to the standby with a takeover hadr .....force.
It is only safe to do a takeover by force if the primary server is not
available to the application (crashed, network connection is not accessible,
etc). If you are automating the takeover with a Cluster Manager, then make
sure your instance is not on autostart.

You can run a command on the primary and standby to see where the log
position is. Normally if they are in peer state you can run it from either
server, but if in disconnected state you would have run it on each server to
get the log position of each. You have two choices:

db2 get snapshot for database on <dbname(there is section on HADR in the
output)
db2pd -d <dbname-hadr


  #3  
Old November 13th, 2008, 08:25 PM
Steve Pearson (news only)
Guest
 
Posts: n/a

re: HADR - AIX


You may also want to look at the HADR Peer Window feature, which can
help ensure that transactions do not commit on the primary without
replication to the standby, for a configurable period of time. This
is useful where there is a high desire for consistency at failover,
and esp. where failover is automated. Note that this choice for
consistency does trade off against availability, as when the HADR pair
is disconnected, the primary (in SYNC or NEARSYNC modes) cannot commit
transactions during Peer state, nor in the new Disconnected Peer state
that comes with the Peer Window feature.

Some intro material here:

http://publib.boulder.ibm.com/infoce.../c0051997.html

Regards,
- Steve P.
--
Steve Pearson, DB2 for Linux, UNIX, and Windows, IBM Software Group
"Portland" Development Team, IBM Beaverton Lab, Beaverton, OR, USA
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Few Questions with HADR - 1 deshaipet answers 0 June 28th, 2009 08:35 PM
Start hadr primary db failed with SQL1768N, reason code 7. Challenge answers 8 July 13th, 2006 05:25 PM
Unable to start HADR reason code 7 gumby answers 16 June 6th, 2006 05:55 AM
HADR split brain question Mark A answers 7 January 24th, 2006 07:25 PM
Running a HADR script outside of the HADR Wizard Bruce M answers 1 November 12th, 2005 09:21 AM