1847203 Members
3136 Online
110263 Solutions
New Discussion

ms service guard

 
SOLVED
Go to solution
Tvs
Regular Advisor

ms service guard

In a MC service guard i am having 2 nodes and pkga is running in node1. i just want to switch the package pkga to node2 without halting the package

if iam running chmod -e pka1 -n node2 whether it will halt the package and then it will start the pacakge in node2

i want to avoid the halting of packages

pls help me
7 REPLIES 7
Devender Khatana
Honored Contributor
Solution

Re: ms service guard

Hi,

It is not possible. For a package to be switch to second node it should be halted on the first node.

Morover there is no chmod command in service guard. The chmod is standard OS command used for changing file perms.

I think you mean to say cmmodpkg. This infact enables global switching of package on other node. i.e. if package fails it will be shifted to second node.

This command infact will not switch the package but will enable switching in case the package fails.

HTH,
Devender
Impossible itself mentions "I m possible"
Torsten.
Acclaimed Contributor

Re: ms service guard

Hi,

the only way to switch a package is to stop it on one node and start it on the other node. It's not (yet?) possible to do this without interruption.

T.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Simon Hargrave
Honored Contributor

Re: ms service guard

You must understand that ServiceGuard is a "failover" cluster package meaning that packages can only run on one node at a time. It therefore MUST close the package on one node before running on another. The idea is that it does this when the node fails, therefore you have an outage anyway.

To fail it over manually you will have an outage - how long will depend on how quick your failover scripts are, but I certainly would NOT run the failover to another node until a scheduled quiet time when your users have been warned of a small outage.
Raj D.
Honored Contributor

Re: ms service guard

Hi Tvs ,

It is not possible to switch the running packege to the other node , but if the node , node1 fails on , package will switch to the failover node.

And chmod is a os command, for changing permission , hope you tried to say chmodpkg to change the Global switching attribute.

To move the package to the other node , that is node2 , you have to do like following:

# cmhaltpkg -n node1 -v pkga [ Will halt the package on node1 ]

# cmrunpkg -n node1 -v pkga
[ This will run the package on node2 ]

# cmviewcl [ to check ]

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Tvs
Regular Advisor

Re: ms service guard

sorry to all

i mean to say chmodpkg
Tvs
Regular Advisor

Re: ms service guard

Thanks to all
Raj D.
Honored Contributor

Re: ms service guard

Sorry Tvs, even I did a mistake , its not chmodpkg , but its cmmodpkg.

And it resideds in /usr/sbin/

cmmodpkg - enables or disables the switching attributes for a package.

cheers ,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "