Operating System - HP-UX
1834710 Members
2704 Online
110069 Solutions
New Discussion

Re: how to start a SG cluster without start packets

 
SOLVED
Go to solution
Jdamian
Respected Contributor

how to start a SG cluster without start packets

I need start a Service Guard cluster without starting its packet. Is it possible ?

thanx in advance
11 REPLIES 11
melvyn burnard
Honored Contributor

Re: how to start a SG cluster without start packets

well if you have them already configured to auto start in the binary, the only way to do this is to re appply the binary, with each package being changed to have AUTO_RUN set to NO.
Otherwise there is no other way,as you cannot do a cmmodpkg -d wihtout the cmcld process running.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
John Palmer
Honored Contributor

Re: how to start a SG cluster without start packets

Only if you've got each packaged configured with AUTO_RUN set to NO.

Change each package control file, reconfigure the cluster then you can start it without any packages. Subsequently you can start the packages manually with cmrunpkg.

Regards,
John
Rainer von Bongartz
Honored Contributor

Re: how to start a SG cluster without start packets


Set AUTO_RUN NO in your packages configuration files

See also:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x826f42308663d611abdb0090277a778c,00.html

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Ralph Grothe
Honored Contributor

Re: how to start a SG cluster without start packets

That's an interesting issue I also occasionally felt the urge to be dealt with.

I finally came up with a script that modified all packages' AUT_START settings, distributed this to all cluster nodes, and finished with an cmapplyconf.

Since this is far from satisfactory, I wonder if it weren't possible to hold two different cluster config binaries in stock which one only would have to rename in case one wanted to start a cluster without also starting the packages?
Is this feasible?
Madness, thy name is system administration
melvyn burnard
Honored Contributor

Re: how to start a SG cluster without start packets

Ralph
I can say it is not "supportable" but that just meas we have not tested it.
SO you may have to try it, and see how it goes.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Trond Haugen
Honored Contributor
Solution

Re: how to start a SG cluster without start packets

A "dirty trick" would be to rename the package control script. That would make the starting of the package fail.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
John Palmer
Honored Contributor

Re: how to start a SG cluster without start packets

Or simply chmod the package control script so that it's not executable.

You could also consider adding some logic to the script that constitutes the package so that it doesn't start any app or whatever. Sometimes it's useful for maintenance to have the package infrastrucure available (VG's etc) without the application.

Regards,
John
Jdamian
Respected Contributor

Re: how to start a SG cluster without start packets

I cannot find AUTO_RUN on my packect control file.

is it available for Service Guard A.11.09 ?

Re: how to start a SG cluster without start packets

In 11.09 AUTO_RUN was known as PKG_SWITCHING_ENABLED

It does the same thing.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Jdamian
Respected Contributor

Re: how to start a SG cluster without start packets

PKG_SWITCHING_ENABLE ?

the text lines describing that item says:

# The default for PKG_SWITCHING_ENABLED is YES. In the event of a
# failure, this permits the cluster software to transfer the package
# to an adoptive node. Adjust as necessary.

PKG_SWITCHING_ENABLED YES

according to this, If I change it to NO, my packet won't switch to other node... then, what do I want a cluster for ?

I need to prevent packet starting when cluster forms, not prevent switching packet from a node to other when packet fails.
John Palmer
Honored Contributor

Re: how to start a SG cluster without start packets

But you're not starting it at all so it can't possibly switch!

HP have renamed the keyword to avoid this confusion.

Once you've started the package, you can change the setting with cmmodpkg.

Regards,
John