Operating System - HP-UX
1832647 Members
2805 Online
110043 Solutions
New Discussion

Re: cluster : switching a package permanently from one node to another node

 
arun khatwani
Frequent Advisor

cluster : switching a package permanently from one node to another node

I want to switch one package from one node to another node

can anybody tem mme what will be the steps with the commands

currently package is running on node: abc and i want to swicth the package permanently to xyz

I have some knowledge, but was not sure about it

as far as i know we have to do below:

first we have to halt the package
edit the package configuration file
apply the package configuration file
distribute the package cntl file to the required node
start the package

Thanks in advance

4 REPLIES 4
melvyn burnard
Honored Contributor

Re: cluster : switching a package permanently from one node to another node

are you saying you want to change the NODE LIST order, where node abc is CURRENTLY the Primary Node, but you wan to make xyz the NEW Primary Node?
You shoul dbe able to make this change on-line, depending upon your version of Serviecguard.
And to switch it across, do:
cmlatpkg
cmrunpkg -n xyz
cmmodpkg -e
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Viktor Balogh
Honored Contributor

Re: cluster : switching a package permanently from one node to another node

>currently package is running on node: abc and i want to swicth the package permanently to xyz

are the nodes abc and xyz forming a single cluster, or are there located in two separated clusters?

we need more specific information and a cmviewcl output of your cluster(s)
****
Unix operates with beer.
nightwich
Valued Contributor

Re: cluster : switching a package permanently from one node to another node

Hi Arun.

I think you do not use the correct words.

What you need is to add a need node to your cluster??

Or you just want to swicth a package from a node to other node within the cluster??

If what you need is the last option you only neeed to use cmhaltnode and cmrunnode -n

If you have any doubt please reply.

Regards.
Stephen Doud
Honored Contributor

Re: cluster : switching a package permanently from one node to another node

Locate and edit the package configuration file.
The file will contain a list of nodes that are allowed to run the package:
NODE_NAME abc
NODE_NAME xyz


Swap the positions of the lines, then write the file and perform cmapplyconf on the file to update the cluster binary file so that the package will now start on node xyz when the cluster is started.