Operating System - HP-UX
1827459 Members
3933 Online
109965 Solutions
New Discussion

Interrogating the nodes on ServiceGuard

 
Paul Procter
Frequent Advisor

Interrogating the nodes on ServiceGuard

Hi,

Currently we have scripts that use cmviewcl to ascertain which node the packages are currently running on.

Obviously in a 2-node cluster if one of the nodes is missing this command can take a while to respond.

Are there any other ways to ascertain the node that is running the packages without using cmviewcl?
6 REPLIES 6
Paul Procter
Frequent Advisor

Re: Interrogating the nodes on ServiceGuard

Oops, in my haste I forgot general courtesies....
:o)

Thanks in anticipation
Paul
melvyn burnard
Honored Contributor

Re: Interrogating the nodes on ServiceGuard

do your ackages have a relocatable ip address?
If so, perhaps a remsh hostname
or uname -n ?
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Michael Steele_2
Honored Contributor

Re: Interrogating the nodes on ServiceGuard

Hi

You are using a work around to the preferred way of monitoring in MC/SG, adding monitoring scripts to check for processes up or down or hung or what.

Review the doc I've attached in particular
resource_name (299) *
resource_polling_interval
(299)
resource_start (299)
resource_up_value (299)

...which are used monitors critical
resources via the Event Monitoring Service
(EMS).

Review the logs in /etc/opt/resmon/log and become familiar with this application. EMS will report via snmp all MC/SG errors.

Review the node_fail_fast_enabled parameter.

Review dependency_name and dependency_condition which is dependency that must be met in order for this package to run (or keep running).

This means modifying your binaries so you'll need a test cluster to work on.

If you can't do this then explore 'cmgetconf' and 'cmscancl' commands. This are the man commands used in trouble shooting.

Support Fatherhood - Stop Family Law
Paul Procter
Frequent Advisor

Re: Interrogating the nodes on ServiceGuard

Michael,

Apologies I am a little confused at the response - not the first time I hasten to add!
:o)

Are these configuration parameters able to explain which node is currently running the packages?

I am trying to avoid the 'cmviewcl' command as in a recent exercise we had to take one of the nodes out of the 2-node cluster. The result of which was that all of the scripts that checked to see which node was, if you like, acting as the master node hung for a period of time whilst 'cmviewcl -v' was awaiting a response.

Regards,
Paul
Michael Steele_2
Honored Contributor

Re: Interrogating the nodes on ServiceGuard

Hi

There are built in monitoring templates that you fill in and use in lieu of scripts that parse cmviewcl, see attachement.
Support Fatherhood - Stop Family Law
Paul Procter
Frequent Advisor

Re: Interrogating the nodes on ServiceGuard

Hi,

Thanks for the help, we've taken the approach of having a small logical volume as part of serviceguard

Our scripts will check for this to determins which node they are operating against.