Operating System - HP-UX
1823063 Members
3165 Online
109645 Solutions
New Discussion юеВ

Re: MC/Service Guard local switching ?

 
Nabil Boussetta
Frequent Advisor

MC/Service Guard local switching ?

i have a package configured on two node. when the package is running under SERV1 and i disconnect lan cables. the package halts on this server and runs automatically on SERV2.

i'd like to know if local switching of the package on SERV1 would be disabled or no ?
13 REPLIES 13
mirco_1
Valued Contributor

Re: MC/Service Guard local switching ?

hi,

# cmmodpkg -d

DM.
Geoff Wild
Honored Contributor

Re: MC/Service Guard local switching ?

Once it has failed over - then local switching is disabled - you have to execute cmmodpkg -e pkgname

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Tonya Underwood
Regular Advisor

Re: MC/Service Guard local switching ?

You can tell if local switching is enabled or disabled by running:

root@node_a:/users/root $ cmviewcl

CLUSTER STATUS
cluster_name up

NODE STATUS STATE
node_a up running

PACKAGE STATUS STATE AUTO_RUN NODE
package up running enabled acs01a

NODE STATUS STATE
node_b up running
root@node_a:/users/root $


You see the package is up-running-ENABLED (LOCAL PACKAGE SWITCHING ENABLED)

This will read DISABLED if it is disabled.

Since your package failed over, you should find that it is enabled.
melvyn burnard
Honored Contributor

Re: MC/Service Guard local switching ?


If you remove all the lan cables for the subnet the package is using and monitoring, then it should switsch nodes, all being configured correctly.
This would usually disable local switching on the node that had "failed".
Check with cmviewcl to make sure.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Nabil Boussetta
Frequent Advisor

Re: MC/Service Guard local switching ?

this is the manual command.

i'd like to know if local switching will be disabled automatically when lan cables are disconnecting to prevent the package to return to SERV1 if it will fail on SERV2
A. Clay Stephenson
Acclaimed Contributor

Re: MC/Service Guard local switching ?

Your testing procedure is flawed. You never disconnect cables (plural) although disconnecting cable (singular) is permitted. MC/SG is not designed to handle multiple points of failure (MPOF's) but rather singulare points of failure (SPOF). You should have pulled only one 1 cable and all that should have happened is that the network would have failed over to a standby lan and the package would have stayed on the node. If you want to simulate the failure of an entire node then you should yank the power cable.
If it ain't broke, I can fix that.
melvyn burnard
Honored Contributor

Re: MC/Service Guard local switching ?

A. Clay,
I suspect he is trying to simulate losing a subnet.
This is perfectly legal as a test.
And yes it should disable the switching if I recall correctly, but the best proof is to ensure all switching is enabled, then do the test and recheck the switching.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Nabil Boussetta
Frequent Advisor

Re: MC/Service Guard local switching ?

when i remove all the lan cables for the subnet the package switchs nodes. but local switching is still enabled. do you think that this is normal ? i guess that local switching should be disabled automatically . is that true ?
melvyn burnard
Honored Contributor

Re: MC/Service Guard local switching ?

Having just gone through the manual quicklly and done some checking for you, in fact I think I was wrong,and it should remain enabled.
This is because by removing the subnet, the package manager shuts the package down in an orderly fashion, nice and cleanly, and then starts the package up on the next available node. This results in a "clean" package halt on the origional node and hence does not mark it as having local switching disabled.

So the answer to your questin appears to be:
No it does not disable local node switching.

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Nabil Boussetta
Frequent Advisor

Re: MC/Service Guard local switching ?

thank you. but what are the situation when local switching will be disabled
Tonya Underwood
Regular Advisor

Re: MC/Service Guard local switching ?

If you halt a package on a node, when you bring that package up again, package switching will be disabled. (You will need to manually enable it) Otherwise, package switching will be configured to match the AUTO_RUN flag in the ascii file.
Raj D.
Honored Contributor

Re: MC/Service Guard local switching ?

Hi Nabil,

When you manually halt the package , the package switiching will be disabled automatically , and you need to enable the package switching , with cmmodepkg ,

# cmmodepkg -e pkgname


Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: MC/Service Guard local switching ?

sorry , mistake in my last post :
the command would be , cmmodpkg ,instead of cmmodepkg.

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