1834802 Members
2798 Online
110070 Solutions
New Discussion

Package Star

 
Stefano_73
Occasional Advisor

Package Star

Hi, i work with HP-UX 11.00 with MC/ServiceGuard and i would know if is posible at the start of the cluster (automatic after a reboot ro manual with cmruncl command) configure the order of the package to start.

Best Regards
Stefano
7 REPLIES 7
G. Vrijhoeven
Honored Contributor

Re: Package Star

Hi Stefano,

To autostart the cluster adjust:

/etc/rc.config.d/cmcluster:
change
AUTOSTART_CMCLD: If set to 1, the node will attempt to
# join its CM cluster automatically when
# the system boots.
# If set to 0, the node will not attempt
# to join its CM cluster.
#

To make sure a package is startable:

edit package config file:
# Enter the value for AUTO_RUN. Possible values are YES and NO.
# The default for AUTO_RUN is YES. When the cluster is started the
# package will be automatically started. In the event of a failure the
# package will be started on an adoptive node. Adjust as necessary.
#
# AUTO_RUN replaces obsolete PKG_SWITCHING_ENABLED.

AUTO_RUN YES

I do not know how to alter the start order. I thought all packages are started at once.

HTH,

Gideon




G. Vrijhoeven
Honored Contributor

Re: Package Star

Hi,

You could alter a package control file.
Add a script to customer defined run command that check if the package it depents on is running before executing next start command.

PS. This will create unwanted dependenties.

HTH,

Gideon
Elmar P. Kolkman
Honored Contributor

Re: Package Star

You could also add a command to the user_run_commands that starts the packages depending on the current package... If you then only make the first package autorun, the flow is guaranteed.

A better way might be to disable the autostart for all packages and create an init script that starts (and stops) the packages in the right order.
Every problem has at least one solution. Only some solutions are harder to find.
SS_6
Valued Contributor

Re: Package Star

Easy stuff. I would recommend not to touch any scripts and do the following.
If you do not want to start cluster after booting of system.
#vi /etc/rc.config.d/cmcluster and change autostart value to 0 (Zero)
Now do following to join node to cluster
#cmrunnode -n hostname
(You can also do cmruncl but it will start everything at once)
If you want to mount all file systems by cluster but do not want to start any start stop script do the following.
#touch /etc/cmcluster/debug
#cmrunpkg -n nodename -v packagename
And you can manually start/stop all applications. Remove the debug file if you want cluster to mount as well as start applications.
If you start cluster with above commands you will also have to enable package switch otherwise failover will not occur.
#cmmodpkg -e packagename
#cmviewcl or cmviewcl -v to see all configuration.
Remove debug file once you are done with troubleshooting.




By providing solutions I am helping myself
Stephen Doud
Honored Contributor

Re: Package Star

Yes - package start order can be made to work.

See this document:

UMCSGKBRC00008166
TITLE: Dependent packages, can the order of package startup be controlled?

.SD.
Stefano_73
Occasional Advisor

Re: Package Star

Hi, were I found This document? Have you a link?

Thanks
Stefano
Marvin Strong
Honored Contributor