Operating System - HP-UX
1834450 Members
1992 Online
110067 Solutions
New Discussion

behaviour of SG cluster when two contradictory command are launched

 
Jdamian
Respected Contributor

behaviour of SG cluster when two contradictory command are launched

Hi

How do SG cluster behave when two contradictory commands are executed ?

For instance, when the package A is been stopped, and a cmrunpkg is launched to start that package A.
Is it executed immediately or is it scheduled for execution after package stop?

Thanx in advance
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: behaviour of SG cluster when two contradictory command are launched

Shalom,

It is supposed to execute immediately.

You should run cmviewcl -v to see if the stop has changed the package state and an additional step is required to get it to start again.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sundar_7
Honored Contributor

Re: behaviour of SG cluster when two contradictory command are launched

Oscar,

Unlike Veritas Cluster Server, the cm commands that effect the status of the package/cluster do not have any "current-status" check built in.

cmrunpkg will start immediately, but remember only one LVM command can run at any given point of time.Running cmrunpkg and cmhaltpkg at the same time may very well run in to LVM lock contention issues. I would be really surprised if one of them doesn't fail to complete

Sundar.
Learn What to do ,How to do and more importantly When to do ?
Carsten Krege
Honored Contributor

Re: behaviour of SG cluster when two contradictory command are launched

The commands are serialized. A cmhaltpkg would cause the package status being changed to "halting" and during this time a cmrunpkg would have to wait. A cmrunpkg changes the package status to "starting" and during this time a cmhaltpkg has to wait.

Carsten

-------------------------------------------------------------------------------------------------
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
Geoff Wild
Honored Contributor

Re: behaviour of SG cluster when two contradictory command are launched

It would be almost impossible to run two contradictory commands at exactly the same time in a cluster - you mean someone run a command on one node and someone else on another?

Which ever one was run first - would win - the other one would fail.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Rasheed Tamton
Honored Contributor

Re: behaviour of SG cluster when two contradictory command are launched

My sense agrees with Geoff. Unless you can verify it on a test env firing the commands and see what happens.
Anyway good question.

Rgds.