1838689 Members
3983 Online
110128 Solutions
New Discussion

FailOver in MCSG

 
Siva Prasad
Occasional Advisor

FailOver in MCSG

Hi,
I have setup a MCSG cluster in HPUX operating system and configured a package. But i am not sure about the failover. Suppose if my machine(on which package is primary) gets rebooted, then will the secondary node take over automatically and start working as primary? or do i need to start that manually. What are the settings i am suppose to do, for automatic failover. Also what happens if i helt the package on primary node? will the secondary node take over the control with any manual intervention. Please clarify this to me.
6 REPLIES 6
Bharat Katkar
Honored Contributor

Re: FailOver in MCSG

HI Siva,
It totally depends on the POLICY you have configured in cluster configuration ascii file. If you have set the Cluster as failover then if your sys1 faults or reboots then all the packages running on sys1 will get transferred on sys2 and start running on sys2.
If you halt the package manually then it won't automatically start on sys2. You need to manually start them on sys2.

If you give some configuration input from /etc/cmcluster/cmclconf.ascii then picture would be more clearer.

Hope that helps.
Regards,


You need to know a lot to actually know how little you know
Devender Khatana
Honored Contributor

Re: FailOver in MCSG

Hi,

This depends on your failover policy and failback policy. If your failback policy is Automatic then when failed node is restored your package will be shifted to that node again. This should not be done unless specific needs because this will give two switchovers to your package which can be avaided by setting it manual and reverting package to corresponding node manually at a proper time when load/users are less which are going to be affected by revert back.

If you halt it manually it will not start on other node bacause system understands that you are doing it intentionally for some maintenance puposes etc.

You can test switch over by terminating the services associated with package.

HTH,
Devender
Impossible itself mentions "I m possible"
Sudeesh
Respected Contributor

Re: FailOver in MCSG

Hi,

There are several factors that will inturn decide the package automatic failover.

1. run 'cmviewcl -v' if the package shows enabled on both nodes whenever your primary is rebooted or taken out of network, package will switch over to next node.

If you see a package is not enabled to run on a particular node, use cmmodpkg.
cmmodpkg -e -n

2. If you halt the package using cmhaltpkg it will not fail over. But you can manually start the package on second node.

Hope this helps you

Sudeesh
The most predictable thing in life is its unpredictability
Stephen Doud
Honored Contributor

Re: FailOver in MCSG

Serviceguard is an automation package which manages virtualization of applications. For a good explanation of the concepts of Serviceguard - have a look at the "Managing Serviceguard" manual:
http://docs.hp.com/en/ha.html#Serviceguard
SG operates in an active/active environment where each server is permitted to operate critical applications as well as standby for other servers operating critical applications.
In the event of a disaster on a server, SG is designed to cause the remaining servers to adopt packages which were running on a the server that crashed unexpectedly.

When the administrator manually halts a package (cmhaltpkg), SG considers this an Administrative event - and does NOT cause the package to fail over to another server.
However when the admin forces a node out of the cluster (cmhaltnode -f) even though the node is still running packages, SG causes the packages to failover to their adoptive node(s).
To understand this is more detail I recommend the Managing Serviceguard manual -to get a broader understanding of how Serviceguard works under various conditions.
Particularly this section:
"Responses to Failures" -->> http://docs.hp.com/en/B3936-90079/ch03s07.html
Hoang Chi Cong_1
Honored Contributor

Re: FailOver in MCSG

Hi

First, in the package configuration file, you need to set "PACKAGE_TYPE" parameter with "FAILOVER".

Then use cmmodpkg command to enable switching attributes for a high availability package:
#cmmodpkg -e -n

See on the cmmodpkg manpage for more detail!

Regard,
Hoang Chi Cong
Looking for a special chance.......
Hoang Chi Cong_1
Honored Contributor

Re: FailOver in MCSG

Forgot...
It is very easy if you use this software, you can do it in GUI:

http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8325BA

Regard,
Hoang Chi Cong
Looking for a special chance.......