1834628 Members
3210 Online
110069 Solutions
New Discussion

Package dependence

 
UNIXGRUPPEN
Advisor

Package dependence

I'm in for a cluster reconfiguration, we're going to add a node to the cluster (will be 3 nodes in total when done) and reconfigure all packages.

When all done we'll have 5 packages, 4 of them will in some way be dependent on eachother (not that great in a serviceguard way, i know).
This because of database crossover transactions and so on (the database being progress 9.1)

The problem is now to script some monitoring for this, today it's all done by fetching a process list from a package and see that the right processes are running.
That setup wont be possible in the same way when you have 5 packages on 3 nodes, cause 2 packages or more will reside on the same physical node.

I've thought about using cmviewcl to determinate which node is running which package and using that as input when fetching process lists and so on. Is this the right way to go, or is there a smarter way ?

Is there anyone who's running a cluster with packages depending on eachother ?

TIA,
Johan
2 REPLIES 2
Kent Ostby
Honored Contributor

Re: Package dependence

Johan,

This question comes up from time to time and there is an ITRC document that you can access that discuss these issues and possible scenarios.

The document ID is: UMCSGKBRC00008166

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=UMCSGKBRC00008166

A secondary approach is listed in the attached document.

Best regards,

Oz


"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Stephen Doud
Honored Contributor

Re: Package dependence

If the package dependencies are only related to packages running on the same node, then the document that Kent referenced should help you.

However, If I read your issue correctly, you have package dependencies and need to verify whether certain packages are running on any node in the cluster before starting other packages - is this correct?

If so, then you must of course verify whether certain packages are in the UP state, no matter which server they are on, unless load-balancing is an issue too.


The following script is a simple way to verify whether a host package is running, and on which node it is running, before starting a dependent package:

PKGNAME=ccmon
DEPPKGNAME=sbccpkg_bak
PKGSTAT=`cmviewcl | grep $PKGNAME | awk {'print $2'}`
PKGLOC=`cmviewcl | grep $PKGNAME | awk {'print $5'}`
if [[ X$PKGSTAT = Xup ]] ; then
if [[ X$PKGLOC = Xbunker ]] ; then
cmmodpkg -e -n bunker $DEPPKGNAME
cmmodpkg -e $DEPPKGNAME
fi
fi