Operating System - HP-UX
1755261 Members
4652 Online
108831 Solutions
New Discussion юеВ

How to start pkg when the node switching is disable

 
yc_2
Regular Advisor

How to start pkg when the node switching is disable

Hi,

When the PKG is halted and the node switching is disable, how to start the pkg on this node ?

Thanks in advice.

YC
9 REPLIES 9
Sanjay_6
Honored Contributor

Re: How to start pkg when the node switching is disable

Hi,

Try,

cmrunpkg -n node_name -v pkg_name

Or you can try,

cmmodpkg -e

Hope this helps.

Regds
John Poff
Honored Contributor

Re: How to start pkg when the node switching is disable

Hello,

You should be able to start it by specifying the node name on the command line:

cmrunpkg -n thisnode package

The cmrunpkg command defaults to using which ever node you are running it from. Having the package switching disabled shouldn't matter, as long as the package is configured to run on that node.

JP
PIYUSH D. PATEL
Honored Contributor

Re: How to start pkg when the node switching is disable

Hi,

#cmrunpkg -n nodename pkgname

Piyush
Jeff Schussele
Honored Contributor

Re: How to start pkg when the node switching is disable

Hi YC,

Use

cmrunpkg -n nodename pkgname

The -n forces the start on the particular server designated. You can use -v for verbose output if desired.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Juan Manuel L├│pez
Valued Contributor

Re: How to start pkg when the node switching is disable

Use:
cmrunpkg -n node_name -v package_name

I hope this will work on your system.
Keep in touch.

Juanma.
I would like to be lie on a beautiful beach spending my life doing nothing, so someboby has to make this job.
Jeff Schussele
Honored Contributor

Re: How to start pkg when the node switching is disable

Oh, I forgot to add IF you use the -n nodename, you can run that command from ANY node in the cluster & it will start on the designated server.
If you just run
cmrunpkg pkgname
It will start ONLY on the server on which you ran the command.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
yc_2
Regular Advisor

Re: How to start pkg when the node switching is disable

Hi,

Thanks for your advices. In fact, before I post this question, I had tried the method:

cmrunpkg -n ThisNode -v PKG

The result was PKG started in Adoptive node as the node switch of ThisNode was disable.

I also tried "cmmodpkg" command to start the PKG but the result is the same.

Finally, I succeeded to start PKG in ThisNode by using the following ways:
1) while PKG was running in adoptive node, I ran "cmmodpkg -e -v PKG" (this enabled the node switch of ThisNode).
2) I halted the PKG, the node switch of ThisNode was still enable.
3) I started the PKG using "cmrunpkg -n ThisNode -v PKG". Now PKG is running in ThisNode.

My question is how to start PKG in ThisNode while the node switch of ThisNode is disable.


Rgds,
YC
Justo Exposito
Esteemed Contributor

Re: How to start pkg when the node switching is disable

Hi Leong,

Try with this:
cmmodpkg -e -n thisnode pkgname

Information in man cmmodpkg.

-n node_name
Act on a specific node. If multiple -n options are
specified, each node_name will be enabled or disabled
in the order given on the command line (not in the ord-
er specified in the package configuration file). If the -n option is not given, switching will be enabled or
disabled globally for the package(s) specified.

Regards,

Justo.
Help is a Beatiful word
Sanjay_6
Honored Contributor

Re: How to start pkg when the node switching is disable

Hi,

You cannot start a pkg on the node if node switching for that node is disables in the pkg configuration.

you have to enable switching,

Hope this helps.

regds