Operating System - HP-UX
1834533 Members
3057 Online
110069 Solutions
New Discussion

Re: Package halt, switch, run

 
SOLVED
Go to solution
wish_1
Frequent Advisor

Package halt, switch, run

Dear all

I have HP-UX11i rp7400 2 node cluster with 4 packages, 2 in each node.

Now the issue is i want to switch one of the package to 1 node. Please mail the correct command.

thanx n regds
wish
11 REPLIES 11
Victor Fridyev
Honored Contributor
Solution

Re: Package halt, switch, run

cmhaltpkg packagename
cmmodpkg -e -n nodename packagename
cmrunpkg -n nodename packagename

HTH
Entities are not to be multiplied beyond necessity - RTFM
wish_1
Frequent Advisor

Re: Package halt, switch, run

Dear Victor Fridyev

my cmviewcl is as follows
no can you pl mail me the correct command
# cmviewcl

CLUSTER STATUS
FINESS up

NODE STATUS STATE
finess_p up running

PACKAGE STATUS STATE AUTO_RUN NODE
stars up running enabled finess_p
praxis up running enabled finess_p

NODE STATUS STATE
finess_t up running

PACKAGE STATUS STATE AUTO_RUN NODE
omni up running enabled finess_t
payroll up running enabled finess_t

t n regds
wish
Pedro Cirne
Esteemed Contributor

Re: Package halt, switch, run

Hi,

What package do you want to move to what node?

Enjoy :)

Pedro
melvyn burnard
Honored Contributor

Re: Package halt, switch, run

cmhaltpkg package_name
cmrunpkg -n nodename packagename
cmmodpkg -e packagename


All documented in the Managing Serviceguard manuals at:
http://docs.hp.com/en/ha
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Victor Fridyev
Honored Contributor

Re: Package halt, switch, run

Hi,


In order to switch praxis from finess_p to _t; run
cmhaltpkg praxis
cmmodpkg -e -n finess_t praxis
cmrunpkg -n finess_t praxis

HTH
Entities are not to be multiplied beyond necessity - RTFM
Cem Tugrul
Esteemed Contributor

Re: Package halt, switch, run

Wish,

Here is an example from my clustering;

baan01:/#cmviewcl

CLUSTER STATUS
MANCLUSTER up

NODE STATUS STATE
baan01 up running

PACKAGE STATUS STATE AUTO_RUN NODE
BAAN up running enabled baan01
OMNI up running enabled baan01

NODE STATUS STATE
baan03 down unknown

As you seen my nodes are baan01 &baan02
and my pkts are BAAN & OMNI

Do not care my node baan03 because i closed it we will change it as soon as possible

But when it was working my OMNI pkt was working on it...

Anyway,just suppose it is up and running but
no working pkgs onit;
so let's say i want to run my OMNI pkg on node baan03 so steps are;

i)baan01:/#cmhaltpkg OMNI

(waits OMNIpkthalted) and you have to see
a message OMNI pkg halted and run cmviewcl
and see the OMNI status really halted!!!!!
if OK then

ii)cmrunpkg -n baan03 OMNI
again check with cmviewcl command
so this time i have to see like;

CLUSTER STATUS
MANCLUSTER up

NODE STATUS STATE
baan01 up running

PACKAGE STATUS STATE AUTO_RUN NODE
BAAN up running enabled baan01
OMNI up running disable baan03
NODE STATUS STATE
baan03 up running

the difference on AUTO_RUN is disable for OMNI pkg on node baan03

so go to node baan03 and just write;

baan03:/#cmmodpkg -e OMNI

i think it is very clear now...

Good Luck,




Our greatest duty in this life is to help others. And please, if you can't
wish_1
Frequent Advisor

Re: Package halt, switch, run

Hi,

Sorry I have not send the details to you but i have shifted the packages but i am facing problem to enable the packages the cmviewcl is as follows:

# cmviewcl

CLUSTER STATUS
FINESS up

NODE STATUS STATE
finess_p up running

PACKAGE STATUS STATE AUTO_RUN NODE
stars up running enabled finess_p
praxis up running enabled finess_p

NODE STATUS STATE
finess_t up running

PACKAGE STATUS STATE AUTO_RUN NODE
omni up running disabled finess_t
payroll up running disabled finess_t
#

So please mail how to set the disabled of omni & payroll to enabled

thx n regds
wish
Cem Tugrul
Esteemed Contributor

Re: Package halt, switch, run

Wish;

go to node finess_t
and just write;
cmmodpkg -e payroll
cmmodpkg -e omni

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
melvyn burnard
Honored Contributor

Re: Package halt, switch, run

man cmmodpkg
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Rajesh SB
Esteemed Contributor

Re: Package halt, switch, run

Hi,

To run a cluste package on a node.
There are 2 switches to be enabled.

1. Node switch for a package.
2. Package switch should be enabled to run the package on any node.

How to check the Node switch enabled/disabled:
Run
# cmviewcl -v |grep able
Gives output like

FMSvr up running disabled kulu

Primary up enabled kulu (current)
Alternate up enabled nagara

where,
FMSvr is the cluster package, switching is disabled.
If you want enable, run
# cmmodpkg -e FMSvr

kulu, nagara are the HA nodes.
Both the node switches are enabled.
If you want to run the package on any node this switch must be enable mode, even upon fail over.

If it is disable state, you can enable it using cmd
# cmmodpkg -e -n

Hope this helps for your problem

Cheers,
RAjesh


wish_1
Frequent Advisor

Re: Package halt, switch, run

Thank you very much to one and all