Operating System - HP-UX
1756438 Members
3824 Online
108847 Solutions
New Discussion юеВ

Re: Halted package behaviour

 
SOLVED
Go to solution
Mike Duffy_1
Honored Contributor

Halted package behaviour

Morning,

Am I correct in thinking that if you cmhaltpkg packagename then the package will not start up after a server restart?

6 REPLIES 6
Fabio Ettore
Honored Contributor
Solution

Re: Halted package behaviour

Hi Mike,

no, it depends from AUTO_RUN.

cmviewcl

should reports the current status (enable or disabled) for each package.

If you don't want a package to start on starting cluster then you should modify config file of the package:

cd /etc/cmcluster//
vi .conf

from
AUTO_RUN YES
to
AUTO_RUN NO

then reapply by cmapplyconf command.
All of above in order to disable the package to restart on starting cluster.

Otherwise you can change that behaviour my command line soon by

cmmodpkg -d

Keep in mind that AUTO_RUN also stands for the obsolete PKG_SWITCHING_ENABLED. Infact before of SG 11.12 two settings were separated.
Just a thought....

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
Mike Duffy_1
Honored Contributor

Re: Halted package behaviour

Fabio,

Thanks for the info.

If I am using an old version of the ascii file and have;

PKG_SWITCHING_ENABLED YES

and then add

AUTO_RUN NO

Will the package switch in case of failure but not start on cluster start?

Fabio Ettore
Honored Contributor

Re: Halted package behaviour

Hi Mike,

before of 11.12? Well.... then you should see only PKG_SWITCHING_ENABLED. Set it to NO, therefore:

PKG_SWITCHING_ENABLED NO

Best regards,
Fabio
WISH? IMPROVEMENT!
Devender Khatana
Honored Contributor

Re: Halted package behaviour

Hi,

Above scenario the package will switch over to another node when it fails and will not start automatically alongwith cluster startup.

HTH,
Devender
Impossible itself mentions "I m possible"
Mike Duffy_1
Honored Contributor

Re: Halted package behaviour

Thats fine.

I have decomissioned a package but require it to be ready just in case it is needed.

I do not want it to start when the server is rebooted and only want it to start when specifically told with a cmrunpkg
Mike Duffy_1
Honored Contributor

Re: Halted package behaviour

Sorted.

Changed the option, rebooted the server and the package stays down.