1833440 Members
3061 Online
110052 Solutions
New Discussion

A question about SG

 
Wang,MinJie
Super Advisor

A question about SG

Hi all
I come to bother you again
I'm learning to use serviceguard and now I've configured a cluster named cluster1 and I have configured a package named pkg1
Now I got a problem
When I halted pkg1 on system A
it doesn't run on system B automatically
Can you tell me where problem occured most possibly.
Or can you give me some useful SG document(by the way I have some documents but they doesn't satisfy me)?
Thankyou
4 REPLIES 4
melvyn burnard
Honored Contributor

Re: A question about SG

Clarify what you mean by "halted pkg1"
Did you manually do: cmhaltpkg pkg1
If so, then yes it will NOT automatically switch.

Read the Managing Serviceguard manual 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!
sajeer_2
Regular Advisor

Re: A question about SG


See this chapter.
http://docs.hp.com/en/B3936-90100/ch04s08.html

verify following options in package config file

Failover policy
The policy used by the package manager to select the node on which the package should be automatically started. In the ASCII package configuration file, this parameter is known as FAILOVER_POLICY.

Package nodes
The names of primary and alternate nodes for the package. In the ASCII configuration file, this parameter is NODE_NAME. Enter a node name for each node on which the package can run.

Package auto run
In the ASCII package configuration file, the AUTO_RUN parameter was formerly known as PKG_SWITCHING_ENABLED. If Automatic Switching is enabled (AUTO_RUN set to YES), Serviceguard will automatically start the package on an eligible node if one is available, and will automatically fail the package over to another node if it fails. If Automatic Switching is Disabled (AUTO_RUN set to NO), Serviceguard cannot automatically start the package up. The user must do it with the cmrunpkg command.


Also see the log file located in /etc/cmcluster/pkgname/ directory.

Geoff Wild
Honored Contributor

Re: A question about SG

After a halt, you need to do a cmrunpkg -n systemB pkg1

TO enable switching:
cmmodpkg -e pkg1

Remember - that is only used in a failover - if you do a cmhaltpkg - it assues you don't want to run the pkg anywhere.

To test failover - you will need to make it fail - ie kill a pid of something that is being monitored - or disconnect the network, or something like that.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
IT_2007
Honored Contributor

Re: A question about SG

To enable package switching to node2.
node1:>cmmodpkg -e pkg1

Also you can check control file for package to modify FAILOVER_POLICY