KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

interdependences on Clusters

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
MirkoW



Joined: 01 Jul 2008
Posts: 205

PostPosted: Wed Dec 17, 2008 1:46 am    Post subject: interdependences on Clusters Reply with quote

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?
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Wed Dec 17, 2008 5:51 am    Post subject: Reply with quote

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/viewtopic.php?t=3977
In this article you may find script to get active node.

Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MirkoW



Joined: 01 Jul 2008
Posts: 205

PostPosted: Wed Dec 17, 2008 6:38 am    Post subject: Reply with quote

Hi,

thanks for Info..

i modify the script sample to use it as shell script with param:

Params: Cluster-Server

Code:

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
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Wed Dec 17, 2008 8:32 am    Post subject: Reply with quote

Heini_net wrote:
i modify the script sample to use it as shell script with param:
Params: Cluster-Server
Good job!
So, have you managed to make dependencies working?

Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MirkoW



Joined: 01 Jul 2008
Posts: 205

PostPosted: Wed Dec 17, 2008 8:48 am    Post subject: Reply with quote

yes, i have add a service-test on cluster instead of every server. so i know if this service is running
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index