1854704 Members
14694 Online
104102 Solutions
New Discussion

pkg heartbeat IP.

 
SOLVED
Go to solution
santy1
Advisor

pkg heartbeat IP.

I have 2 node cluster

HP-UX 11.23 , A 11.17 (SG)
cluster name is chdcl and nodes on cluster are A and B.

A is DB server with 1 DB package and
B is Appl server with 1 Appl Package

now both the packages are running on ther own domains..but when and of the pkg halts they not failovering to other one.. please suggest here

and

i have heartbeat Ip created and they are in /etc/hosts and /netconf files. do i need to create any other ip for pkg's..any suggeston here ..am i missing something..here

12 REPLIES 12
IT_2007
Honored Contributor

Re: pkg heartbeat IP.

packages may not be configured to failover. Please check package conf files in /etc/cmcluster/pkg or wherever.
It should define both nodes one for primary and another one for adoptive.
melvyn burnard
Honored Contributor

Re: pkg heartbeat IP.

You need to state your problem more clearly.
you say:
when and if the the pkg halt

How is the package halting? Are you manually halting it?
or are you creating symptoms to test the automatic failover?

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
santy1
Advisor

Re: pkg heartbeat IP.

IT 2007>> as you said i have that in pkg.conf file. in both the PKG's and on both the Nodes of cluster.

NODE_NAME A
NODE_NAME B

But got info. that we need to configure a PKG heartbeat IP for both the pkgs and keep it in IP section of pkg.sh file?


Burnard>>> when i tried to test it.. manually i halted the PKG using
#cmhaltpkg pkg then it should failover to other node right but it did not happened.

I can see AUTO_RUN disabled for both the pkg's in #cmviewcl -v but i have enabled in pkg.conf file. do i need to do anything else...

can i use the below command to work it and FYI...PKG are in running state now so if i use this command does that effect the work..

#cmmodpkg -e pkgname
melvyn burnard
Honored Contributor

Re: pkg heartbeat IP.

IT 2007>> as you said i have that in pkg.conf file. in both the PKG's and on both the Nodes of cluster.

NODE_NAME A
NODE_NAME B

But got info. that we need to configure a PKG heartbeat IP for both the pkgs and keep it in IP section of pkg.sh file?

No! you do not configure the heartbeat ip adresses in the packages, these are just the relocatable or floating ip address for each package.


Burnard>>> when i tried to test it.. manually i halted the PKG using
#cmhaltpkg pkg then it should failover to other node right but it did not happened.

My name is Melvyn, and if you manually halt a pacage it will NOT switch over, it is not designed to do this.
If you do a cmhaltpkg this will also turn OFF the switching parameter, and you use the cmmodpkg -e (possibly with the -n option as well) to enable switching.


I suggest you read the Managing Serviceguard manual to see how this work, available at:
http://docs.hp.com/en/ha
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
santy1
Advisor

Re: pkg heartbeat IP.

Melvyn, Sorry to call with wrong name.

On A i have

lan0 - 3.164.120.83 - server IP

lan1 - 192.168.1.122 - heartbeat IP of server

on B i have

lan0 -- 3.164.120.84 - server Ip

lan1 -- 192.168.1.123 - heartbeat IP of server

And i dont have anyother IP on the two nodes other then this the above. So does this work or do i need to configure anyother IP's.

In this HP-UX IPSec Admin Guide DOC i got this information about the IP's hence i am confised..here

Heartbeat IP addresses

The heartbeat IP address for each cluster node is specified using the HEARTBEAT_IP parameter in the node definitions section of the cluster configuration file.

Package addresses

The package addresses are configured using the IP[i] statements in the package control script.

Please suggest me Melvyn.



IT_2007
Honored Contributor
Solution

Re: pkg heartbeat IP.

Heartbeat IP address for cluster only define in cmclconf.ascii file not anywhere.

IP address for packages used to failover between nodes whenver failover occurs. This is to be configured in package control script. These IP addresses are floating IP.
santy1
Advisor

Re: pkg heartbeat IP.

So now i need to create floating IP's for both the packages right..

this would be fine ....??

lan0:1 3.164.120.191 -- for PKG on Node A


lan0:1 3.164.120.192 -- for PKG on node B

Thnx
IT_2007
Honored Contributor

Re: pkg heartbeat IP.

yes. you can do that. Make sure that those IP address resolv properly means add them in DNS
santy1
Advisor

Re: pkg heartbeat IP.

Thnx alot IT 2007..

last Q but a silly Q...bit confused..

on both the nodes on the cluster

under /etc/cmcluster/PKG/

i have

pkg.conf
pkg.sh

am i missing anyother file's...what is this ".cntl" file..if i am missing "pkg.cntl" file how to get that??
santy1
Advisor

Re: pkg heartbeat IP.

i have done this...to enable PKG on Node B

# cmmodpkg -e -n nodeB PKG

in cmviewcl -v o/p i can see Switching enabled..but AUTO_RUN is disabled.

But in PKG.conf file AUTO_RUN is YES

can any one suggest me on this and the above one as well regarding the existence of .cntl file.
IT_2007
Honored Contributor

Re: pkg heartbeat IP.

so did you apply cmapplyconf against package after modifying conf file? If not, please do that.
santy1
Advisor

Re: pkg heartbeat IP.

first when i created PKG then i have modified it accordingly...and done cmapplyconf firsttime i got the below

# cmapplyconf -P PKG.conf
Begin package verification...

Modify the package configuration ([y]/n)? y
Completed the cluster update
#


But when i tried to run the PKG i got error so again i modifed the PKG.conf file i did not do #cmapplyconf.


But for the first time also i did not get any .cntl file...i have only

pkg.conf and pkg.sh files in /etc/cmcluster