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 Primary database starting as Standby database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-21-11, 11:12
arunmahendran arunmahendran is offline
Registered User
 
Join Date: Sep 2011
Posts: 22
DB2 HADR Primary database starting as Standby database

Hi,

Please help me in the below situation.

How can we start a HADR Primary database which is in quisced state as standby database??

In my case where primary database is running on Node1 and standby for that database is on Node2. When primary database fails I put the database in quiesced state and do role takeover on Node2. Now when starting the database on Node1 as standby fails.

Thanks
Arun
Reply With Quote
  #2 (permalink)  
Old 09-21-11, 11:27
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Quote:
When primary database fails I put the database in quiesced state
You say primary has failed, how do you put the db in quiesced state ?


--
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 09-21-11, 11:37
arunmahendran arunmahendran is offline
Registered User
 
Join Date: Sep 2011
Posts: 22
Consider that the client access IP is got removed so that i have to quiesce and deactivate the db and do a role takeover at the standby side..
Reply With Quote
  #4 (permalink)  
Old 09-21-11, 11:42
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
I don't know if QUIESCE is a logged operation (looks like it is, based on your post)

Looks like the comm between the primary and standby is in place.

Then, why not do a normal TAKEOVER ?

If your client ip is removed, then you have no transactions in progress. Even if you do, they will just fail and not cause any data issue.

AFAIK, UNQUIESCE requires a db connection and not sure how you will do in this scenario.


=
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 09-21-11, 12:25
arunmahendran arunmahendran is offline
Registered User
 
Join Date: Sep 2011
Posts: 22
When primary fails, then I am doing role takeover at standby side. But after fixing the issue on actual primary, I should be able to start the database as standby.
Reply With Quote
  #6 (permalink)  
Old 09-21-11, 13:54
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
What is the error message ?
What is the command you use ?

===
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #7 (permalink)  
Old 09-21-11, 14:22
arunmahendran arunmahendran is offline
Registered User
 
Join Date: Sep 2011
Posts: 22
I have issued "db2 start hadr on db db1 as standby" on the quisced database. got an error "SQL1767N" with reason code = 3.

Reason code=3 says that "START HADR AS STANDBY cannot be issued on an active database" but db is not activated.
Reply With Quote
  #8 (permalink)  
Old 09-21-11, 14:30
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You probably should run this command from each server to determine the HADR status on that server:

db2pd -d <database> -hadr
__________________
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