Operating System - HP-UX
1830525 Members
2626 Online
110006 Solutions
New Discussion

$ MCSG question: How to auto start the package?

 
Mehrzad Gomari_2
Occasional Advisor

$ MCSG question: How to auto start the package?

Hello
I want to automatically start the package whenever I restart OS. The only place I could find was in (cmcluster) that controls the cluster startup, which is doing it fine, however, I am manually starting the package currently. Is there any other config file to control the package startup?

thanks

-------------------------------------
$ more /etc/rc.config.d/cmcluster
AUTOSTART_CMCLD=1
------------------------------------
5 REPLIES 5
Virgil Chereches_2
Frequent Advisor

Re: $ MCSG question: How to auto start the package?

In package control script you must specify:
AUTO_RUN YES


Best regards,
Virgil
Jeff Schussele
Honored Contributor

Re: $ MCSG question: How to auto start the package?

Hi MG,

In the pkg conf file you need to set
AUTO_RUN YES #(Newer MC/SG)
or
PKG_SWITCH_ENABLED YES #(Older MC/SG)

The run cmapplyconf to distribute the new binary to the nodes.

This will auto-start the pkg when the cluster starts.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
G. Vrijhoeven
Honored Contributor

Re: $ MCSG question: How to auto start the package?

Hi,

The AUTOSTART_CMCLD takes care of the cluster startup at boot time. The packages start config is done in the package control 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

This only works if the package did not crash before the reboot and if the vgname is changed to cluster awaire at boot (in the clusterascii file the vgname must be entered)

HTH,

Gideon
Mehrzad Gomari_2
Occasional Advisor

Re: $ MCSG question: How to auto start the package?

Thanks to all of you.

Srinivas Thokala_1
Frequent Advisor

Re: $ MCSG question: How to auto start the package?

-See that file /etc/rc.config.d/cmcluster is
set to AUTOSTART_CMCLD=1

-See that the package startup script added to the control file is edited correctly with
correct start and stop statements.
Example: under the path
/etc/cmcluster/package-dir/package.cntl
scriptname : oracle.sh

- If the package is part of MCSG, then you eliminate auto start scripts defined in the
/sbin/rc1.d and /sbin/rc2.d scripts starting with 'S' to start
and 'K' to stop

- verify /etc/lvmrc file for
AUTO_VG_ACTIVATE = 0 or 1 based on your configuration.

-SRao
Srinivas Thokala