Operating System - HP-UX
1761416 Members
2541 Online
108901 Solutions
New Discussion юеВ

Re: Package not switching to other node automatically

 
SOLVED
Go to solution
ShivKumar_1
Frequent Advisor

Package not switching to other node automatically

Hi

In my service guard 2 node cluster. When I do a ├в cmhaltpkg pkg_1├в on one node , I don├в t see it automatically up and running on the 2nd node, unless I manually activate the volume group on the 2nd node and run the following commands.

Im attaching the package control script.



├в cmmodpkg ├в n ├в nodename├в ├в e ├в pkg_name├в



Any ideas or suggestions?

7 REPLIES 7
Chan 007
Honored Contributor
Solution

Re: Package not switching to other node automatically

Hi,

If you halt the package it will not start on any server.

You must manually start it...

It will start only in the event of a crash to your primary node.

Hope this helps.
Chan

Svetoslav Gyurov
Valued Contributor

Re: Package not switching to other node automatically

Hi,

Well, this is the expected behavior. When you execute cmhaltpkg, you halt the package, it will have a halted status and it will not have a autoswitch option enabled. To enable the autoswitching and start the package you must execute cmmodpkg -e PACKAGE. If you want to run the package on the other node you must disabled the package on the primary node like that: cmmodpkg -n NODE -d PACKAGE and after that enable the package: cmmodpkg -e PACKAGE. If you want to see how the package is switchoing to other node, you can simulate some kind of crush (unexpected power down or reset or just TOC). Good luck. Regards.


--
sve
Jayasuntar
Valued Contributor

Re: Package not switching to other node automatically

Dear Coolsani,

The attached doc will be very useful for your query.

Regards

Jay
"Attached Document removed as per ITRC Guidleines"
Simon Wickham_6
Regular Advisor

Re: Package not switching to other node automatically

Hi,

Ensure the following is set.

# The default for PKG_SWITCHING_ENABLED is YES. In the event of a
# failure, this permits the cluster software to transfer the package
# to an adoptive node. Adjust as necessary.

PKG_SWITCHING_ENABLED YES

Regards,
Simon
ShivKumar_1
Frequent Advisor

Re: Package not switching to other node automatically

Hi
Thnks all for your suggestions. In the package control script the place where we define activate volume group it was withing quotes " " I removed the quotes and it worked ok.

David Bellamy
Respected Contributor

Re: Package not switching to other node automatically

Coolsani you can get the package to autoswitch by halting the node. do a cmhaltnode and the package will switch over
ShivKumar_1
Frequent Advisor

Re: Package not switching to other node automatically

Thnks everybody its working now.