1834458 Members
3116 Online
110067 Solutions
New Discussion

Re: cmhaltpkg

 
SOLVED
Go to solution
Hanry Zhou
Super Advisor

cmhaltpkg

Hi,

If I'm using cmhaltpkg -n nodeA to halt the package on Node a in one of two nodes cluster, will the package failover to NodeB?

Points will be assigned.

Thanks,
Roger
none
8 REPLIES 8
Hai Nguyen_1
Honored Contributor

Re: cmhaltpkg

No, Roger.

You should perform this sequence:
# cmhaltpkg package_name
# cmrunpkg -n nodeB package_name

Hai
James R. Ferguson
Acclaimed Contributor

Re: cmhaltpkg

Hi Roger:

You answer depends on whether or not package switching is enabled or disabled.

Regards!

...JRF...
Rainer von Bongartz
Honored Contributor

Re: cmhaltpkg

Roger,

cmhaltpkg does what it says; it halts a package.

To switch it you have to halt and start in on other node.


cmhaltpkh
cmrunpkg -n

Regards
Rainer

He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Hanry Zhou
Super Advisor

Re: cmhaltpkg

JRF,

Can you please tell me in either one of cases? Let's say if the package is enbled what is going to happen, and if it is disabled, what is goint to happen?
none
Luc Bussieres_1
Trusted Contributor

Re: cmhaltpkg

Roger,

If you use cmhaltpkg it will always completly stop the package and it won't failover to the other node no matter what the switch are set to.
You will have to start it manually after with the cmrunpkg.

Luc
Rainer von Bongartz
Honored Contributor

Re: cmhaltpkg

packet switching enabled or not has no influence on cmhaltpkg.

It only applies to the case a node fails.
enabled packages switch over ; non enabled packages not.

Regards
Rainer


He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
James R. Ferguson
Acclaimed Contributor

Re: cmhaltpkg

Hi (again) Roger:

My apologies. I read/thought 'cmhaltnode', not 'cmhaltpkg. Therefore, no, your package will not failover when using 'cmhaltpkg'.

Halting a node may cause its package(s) to swithc to the adoptive nodes (if switching is enabled for them). Halting a package, does not cause switching and the package must be restarted manually on another or the same node.

My apologies for the confusion!

Regards!

...JRF...
Christopher McCray_1
Honored Contributor
Solution

Re: cmhaltpkg

Hello,

When you issue the cmhaltpkg command from the command line, you are shutting down the package, not to be restarted until you run the cmrunpkg command.

In the case of failover, two things depend on the package's ability to failover. If you look at the cmviewcl -v output, where the package is displayed, there is a heading for AUTO_RUN. If this does not say enabled, then the PACKAGE does not have the ability to switch to the adoptive node. Going further down, you will see a heading for Node_Switching_Parameters:. If the SWITCHING column for any of the nodes indicates "disabled", then that node doesn't have the ability to accept the starting of a package on failover.


Hope this helps

Chris

It wasn't me!!!!