Operating System - HP-UX
1827483 Members
2069 Online
109965 Solutions
New Discussion

message in /var/adm/syslog/syslog.log from cmcld

 
SOLVED
Go to solution
Lora Ganeva
Regular Advisor

message in /var/adm/syslog/syslog.log from cmcld

I have a 10.20 HP-UX cluster with SG A.10.10
When looking in /var/adm/syslog/syslog.log, the following message appears:
cmcld:Executing `/etc/cmcluster/package/package.cntl` for package package as service PKG*2
wher package is the name of the package on the machine.
What does this message means?
The number 2 is different on different machines. Maybe a process ID?
Thanks in advance,
Lora
5 REPLIES 5
Santosh Nair_1
Honored Contributor

Re: message in /var/adm/syslog/syslog.log from cmcld

Lora,

It sounds like the ServiceGuard package failed to start on the, more specifically service number 2. Take a look at /etc/cmcluster//.log file to see why the package failed.

-Santosh
Life is what's happening while you're busy making other plans
Lora Ganeva
Regular Advisor

Re: message in /var/adm/syslog/syslog.log from cmcld

thanks for answering,
But nothing fails.
The service start is sleep 9999- its not a real service-maybe this is the reason?
Sanjay_6
Honored Contributor
Solution

Re: message in /var/adm/syslog/syslog.log from cmcld

Hi Lora,

Just went to my syslog file. The line you see in the syslog file is the output of the cmcld daemon when it is tryingto start a package. Once a cluster is formed, the cluster daemon start the package using the control script usually kept in /etc/cmcluster/pkg_name/pkg_control_script with a start option. This is given a process id.

This process will then do all the jobs related to the startup of the package on that node, like activating the VG, mounting LV's ..etc and then exit with a return code of sucess or failure. The process if then killed.

The same will be revesed when the package is brought down. A process is started with the control script and an option of shutdown or something and then it unmounts the LV, deactivates the VG and things like that.

This control script is defined in the package configuration script. the configuration script is in the directory /etc/cmccluster/pkg_name/pkg_conf_script. You may find the ascii conf script over there, but the same get applied to the cluster conf when the package conf is applied. The ascii is for you to read and follow the details on the package.

In the messge you have seen, the name package following the word package is the name of the package. For eg.
cmcld:Executing `/etc/cmcluster/package/package.cntl` for package package as service PKG*2

Here the name of the package is "package". You have to read the package ascii conf file to follow the option offered to the package control file. IT looks like the name of this package control file is "package.cntl".

Hope i'm making sense and am not speaking like a teacher.

Thanks
Insu Kim
Honored Contributor

Re: message in /var/adm/syslog/syslog.log from cmcld

Applications are wrapped into packages in Service Guard environment.
A package contain all the resources which are needed to run an application.

A package consists of two files:

1) Package configration file that contains the package name, the sequence of nodes on which to run the package, the location of the control scripts and services for a package.

2) Package control file that is used to start and halt a package.
It consists of functions like fsck, mount and umount file systems and contains customer defined run and halt commands to stop and start applications.

What syslog.log implys is :
cmcld is cluster management deamon and A package control file, /etc/cmcluster/package/package.cntl is executed in order to start a package called "package2"

Hope this helps,
Never say "no" first.
Lora Ganeva
Regular Advisor

Re: message in /var/adm/syslog/syslog.log from cmcld

Thank You very much.This completely answers to my question.