Unix Technical Forum

HADR Alternate Port?

This is a discussion on HADR Alternate Port? within the DB2 forums, part of the Database Server Software category; --> AIX 5.3, DB2 UDB v 8.2 I was curious if there was a mechanism in HADR to switch the ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 11:39 AM
shorti
 
Posts: n/a
Default HADR Alternate Port?

AIX 5.3, DB2 UDB v 8.2

I was curious if there was a mechanism in HADR to switch the
HADR_REMOTE_HOST. If a link or switch fails and there is an alternate
path is there a way to use the path?

I tried changing the remote host on the machines on the fly but I
noticed that it states the changes do not take affect right away.
Then the Standby rebooted. I did finally get both machines up with
the new port configuration but they wouldnt talk to each other. The
Standby logged that there was no Primary connected and the Primary
timedout as it did not hear from the Standby. So I take it you cannot
change the remote hosts this way.

Any other possiblities? I would like to be able to fail over to
another path if possible.

Thanks.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 11:41 AM
Steve Pearson (news only)
 
Posts: n/a
Default Re: HADR Alternate Port?

HADR config parameter updates are not dynamic; the databases must be
bounced for the changes to be taken up.

>From your description my only guess as to what happened that no

connection was made after the configuration changes is that perhaps
you only updated one side. Either the primary was not listening on
the host/port that the standby tried to connect to, or there was an IP
address mismatch.

HADR presently requires that the local and remote host configurations
resolve to the same IP addresses on both sides. If not, HADR won't
make a connection. This has been raised as an issue for certain
environments such as where a NAT sits between the primary and
standby. We expect to provide a means to relax the sanity check in a
future release.

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 11:41 AM
Mark A
 
Posts: n/a
Default Re: HADR Alternate Port?

"Steve Pearson (news only)" <stevep222@my-deja.com> wrote in message
news:1170894801.455531.121510@k78g2000cwa.googlegr oups.com...
> HADR config parameter updates are not dynamic; the databases must be
> bounced for the changes to be taken up.
> Regards,
> - Steve P.


What is definition of database bounced? No connections to the database (not
activated), or restart of the instance?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 11:41 AM
shorti
 
Posts: n/a
Default Re: HADR Alternate Port?

On Feb 7, 8:59 pm, "Mark A" <nob...@nowhere.com> wrote:
> "Steve Pearson (news only)" <stevep...@my-deja.com> wrote in messagenews:1170894801.455531.121510@k78g2000cwa.g ooglegroups.com...
>
> > HADR config parameter updates are not dynamic; the databases must be
> > bounced for the changes to be taken up.
> > Regards,
> > - Steve P.

>
> What is definition of database bounced? No connections to the database (not
> activated), or restart of the instance?


I was curious of this too...Is there an official procedure for this to
make it right in the db2 world? I am going to do some additional
testing but on my original test I changed the remote_hosts on both
side but after I read Steve's response I realized I must have to also
change the local_host on both sides??.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 11:54 AM
Steve Pearson (news only)
 
Posts: n/a
Default Re: HADR Alternate Port?

> What is definition of database bounced? No connections to the database (not
> activated), or restart of the instance?


I meant shutting down and restarting the database. Since HADR
explicitly activates the database, the usual approach would be to
issue "deactivate db" + "activate db" commands.

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-27-2008, 11:54 AM
Steve Pearson (news only)
 
Posts: n/a
Default Re: HADR Alternate Port?

> I am going to do some additional
> testing but on my original test I changed the remote_hosts on both
> side but after I read Steve's response I realized I must have to also
> change the local_host on both sides??.


Yes, if the actual host name changes, one side's hadr_local_host must
change, as well as the other side's hadr_remote_host...unless the
change is hidden (for example, if the setup is configured by ip
address instead of host name, and the ip address didn't change).

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:00 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com