473,413 Members | 1,833 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

HADR primary to standby

Hi,
I have two databases in hadr, this morning i issued a "takeover ... by
force" because the normal takeover didn't worked. Now i have two standard
databases, and if i try to put the old primary database in standby mode i
can't but it's not in rollforward pending state.
How can i put this database in rollffoward pending state without
backup/restore from the new primary dabatase ?

Thanks
Paul

Sign this for them
http://www.mobilize-humanity.org/
Aug 22 '07 #1
2 5102
Hi, Paul.

There must've been one or more other steps taken to arrive at two
"standard" databases from an HADR pair. The "TAKEOVER .. BY FORCE"
command should leave you with both dbs in "primary" role. To get to
"standard" would require something more drastic, such as "STOP HADR"
or some kind of restore-like activity that replaced the on disk
database with something else.

Putting your two dbs back together from the current state may be
difficult w/o resorting to reinitializing the intended new standby
from a new backup of the new primary.

You could try the following sequence to see if it may work. Let's
call the intended new standby (presumably, old primary) as "A", and
intended new primary (presumably, original standby) as "B".

- isolate A from any potential clients
(to avoid any transactions being performed after next step)

- issue "start hadr .. as primary by force" on A
(make A change role from standard to primary)

- deactivate db on A

- issue "start hadr .. as standby" on A
(now make A change role from primary to standby)

- issue "start hadr .. as primary" on B
(make B change role from standard to primary)

If the two databases did not diverge during the prior incident, it is
possible that A will successfully reintegrate into the pair as new
standby. Check the status of A (e.g., via "get snapshot for db")
after B starts up to see if reconnection and reintegration was
successful. Note that the "start hadr" commands themselves will
generally report success either way as they are limited to "launching"
type activity; only after the two start dbs talking to each other can
they tell if they are able to reform the pair or not. Status and
db2diag.log messaging can be examined to learn the outcome.

Hope it works for you.

Regards,
- Steve P.
--
Steve Pearson, DB2 for Linux, UNIX, and Windows, IBM Software Group
"Portland" Development Team, IBM Beaverton Lab, Beaverton, OR, USA
Aug 24 '07 #2
Hi Steve,
thanks for your advices but it didn't worked
I had to restore a backup.
In fact the two databases diverged during the incident.
And effectively i issued a stop hadr command on two databases because i
could not connect to them before this.

Regards


"Steve Pearson (news only)" <st*******@my-deja.coma écrit dans le message
de news: 11**********************@l22g2000prc.googlegroups. com...
Hi, Paul.

There must've been one or more other steps taken to arrive at two
"standard" databases from an HADR pair. The "TAKEOVER .. BY FORCE"
command should leave you with both dbs in "primary" role. To get to
"standard" would require something more drastic, such as "STOP HADR"
or some kind of restore-like activity that replaced the on disk
database with something else.

Putting your two dbs back together from the current state may be
difficult w/o resorting to reinitializing the intended new standby
from a new backup of the new primary.

You could try the following sequence to see if it may work. Let's
call the intended new standby (presumably, old primary) as "A", and
intended new primary (presumably, original standby) as "B".

- isolate A from any potential clients
(to avoid any transactions being performed after next step)

- issue "start hadr .. as primary by force" on A
(make A change role from standard to primary)

- deactivate db on A

- issue "start hadr .. as standby" on A
(now make A change role from primary to standby)

- issue "start hadr .. as primary" on B
(make B change role from standard to primary)

If the two databases did not diverge during the prior incident, it is
possible that A will successfully reintegrate into the pair as new
standby. Check the status of A (e.g., via "get snapshot for db")
after B starts up to see if reconnection and reintegration was
successful. Note that the "start hadr" commands themselves will
generally report success either way as they are limited to "launching"
type activity; only after the two start dbs talking to each other can
they tell if they are able to reform the pair or not. Status and
db2diag.log messaging can be examined to learn the outcome.

Hope it works for you.

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

Aug 28 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Mark A | last post by:
If server 01 running HADR in the primary role crashes, and the DBA does a HADR takeover by force on the 02 server to switch roles, then the 02 server is now the primary. What happens when the...
4
by: Joachim Klassen | last post by:
DB2 V8.2 FP10 on Windows I tested the following HADR scenario: - a new tablespace on a new filesytem is created on the primary System - the replay on standby fails because of lacking permissions...
16
by: gumby | last post by:
I'm having trouble getting HADR to work with the sample databases on two HS20 xSeries blades, Red Hat ES4 up3, DB2 8.2.4, getting the following error. SQL1768N Unable to start HADR. Reason code...
8
by: Challenge | last post by:
Hi, I got error, SQL1768N Unable to start HADR. Reason code = "7", when I tried to start hadr primary database. Here are the hadr configuration of my primary db: HADR database role ...
6
by: RayRay | last post by:
I was hoping I might be able to get an answer regarding DB2 and HADR. Let me preface this by saying that I know very little about networking and I'm not familiar with the HADR product or...
6
by: shorti | last post by:
db2 8.1 fix pack 12 on AIX 5.3 This is a newly configured HADR machine. The HADR was up and running. I was 'playing' around some on the standby and did a db2 deactivate and things sort of went...
6
by: shorti | last post by:
I have two questions about HADR recovery. I am running db2 v8 fp12. 1) If the primary suddenly crashes would you always want to switch the standby to the primary by force...or would there be...
2
by: shorti | last post by:
DB2 UDB v 8.2 In the restriction section for HADR it states: - The database versions used by the primary and standby databases must be identical. During rolling upgrades, the database version...
1
by: agentlease | last post by:
Hi, Testing the above without TSA or HA, just plain HADR performing manual db2 TAKEOVER HADR ......................... etc. I am testing without the PEER_WINDOW i.e. set to 0 and...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.