Operating System - HP-UX
1830044 Members
12444 Online
109998 Solutions
New Discussion

Bringing down the package

 
SOLVED
Go to solution
dictum9
Super Advisor

Bringing down the package


I just want to make sure I understand the process of bringing down the package:

cmhaltpkg
cmhaltnode

reboot

cmrunnode
cmrunpkg

cmviewcl -v
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Bringing down the package

To simply bring down a package you run "cmhaltpkg mypkg" to restart the package, you "cmrunpkg -n nodename mypkg". There is no need to halt the node or run another another (assuming the cluster is up and running and all nodes are available).

Now, if you actually want to bring down the package and the node without moving the package to another node then your steps are correct BUT you should always supply the -n nodename argument to the cmrunpkg command because you haven't specified what is the preferred node for this package.

After stopping a package, you generally need to run "cmmodpkg -e -v mypkg" to enable package switching.
If it ain't broke, I can fix that.
dictum9
Super Advisor

Re: Bringing down the package


I meant

cmrunpkg -n
dictum9
Super Advisor

Re: Bringing down the package

Can you explain what "package switching" means?

You mean prevent it from switching to another node in case of a disaster?


> After stopping a package, you generally need to run "cmmodpkg -e -v mypkg" to enable package switching
A. Clay Stephenson
Acclaimed Contributor

Re: Bringing down the package

Yes, one of the side effects of the cmhaltpkg command is to disable package switching --- meaning that the package cannot automatically switch to another node in the cluster. When you execute the cmrunpkg command, the package switching is left disabled. Now consider what happens when this current node actually fails, because you did not re-enable package switching, the package does not then automatically move to another node --- which defeats the purpose of MC/SG.
If it ain't broke, I can fix that.
IT_2007
Honored Contributor

Re: Bringing down the package

Hi,

If the package is configured to failover to other node, you can halt package and failover to it. Sometimes, packages were designed to run on single node.

Here what you can do:

cmhaltpkg -v -n -p
cmrunpkg -v -n -p
cmhaltnode -v

node1:> shutdown -ry 0

Once Node is up then you can failback package from Node2 to 1 by running above commands like this.

cmhaltpkg -v -n -p
cmrunpkg -v -n -p