Hi,
i use 2 Servers combined in a Cluster.
ony one Service that exist on all Servers does running.
so if ServiceXY running on Server 1 so ServiceXY does not running on Server 2
i have create a service-test in HM for each Server and add dependencs to the Services
Server1 - ServiceXY dependes on Server2 - Service XY with "Dead" or "unknown"
and
Server2 - ServiceXY dependes on Server1 - Service XY with "Dead" or "unknown"
but the both service-tests display only "Wait for Master"
whats wrong?
interdependences on Clusters
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
As I can see, you made cross-reference between services. ServiceXY on Server 1 depends on ServiceXY on Server 2 and vice versa, right? Not sure it's a good idea. It appers to be endless loop. I think, you should take something more reliable as a master test. For instance - check active node. Are you able to distinguish what server is active node in a cluster?
Probably, folowing article might help: http://www.ks-soft.net/cgi-bin/phpBB/vi ... php?t=3977
In this article you may find script to get active node.
Regards,
Max
Probably, folowing article might help: http://www.ks-soft.net/cgi-bin/phpBB/vi ... php?t=3977
In this article you may find script to get active node.
Regards,
Max
Hi,
thanks for Info..
i modify the script sample to use it as shell script with param:
Params: Cluster-Server
thanks for Info..
i modify the script sample to use it as shell script with param:
Params: Cluster-Server
Code: Select all
const statusAlive = "scriptRes:Host is alive:"
const statusDead = "scriptRes:No answer:"
const statusUnknown = "scriptRes:Unknown:"
const statusNotResolved = "scriptRes:Unknown host:"
const statusOk = "scriptRes:Ok:"
const statusBad = "scriptRes:Bad:"
const statusBadContents = "scriptRes:Bad contents:"
Dim strComputer,objArgs
Set objArgs = WScript.Arguments
strComputer = objArgs(0)
Dim objCluster
Dim strTestname
Set objCluster = CreateObject("MSCluster.Cluster")
objCluster.Open strComputer
strOwner = objCluster.ResourceGroups.Item("Cluster Group").OwnerNode.Name
Set objCluster = Nothing
WScript.StdOut.Write statusAlive & strOwner
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact: