MSCS Cluster Inquire/Reboot Authority

A

Al Frank

We have developed a Windows service that is used to querry
all the servers in a MSCS cluster and based on the
response it may reboot the server. The service is local
to each server node of the MSCS cluster and only deals
with the one server.

I have found that if I have this service run as the Local
System account the reboot works fine but the OpenCluster()
api call fails with an error 5 (access is denied).

If I have the service start as an admin account or the
account we start the cluster service with the OpenCluster
() and other cluster api calls work but the ExitWindowsEx
() returns a good return code but the reboot never occurs
(no errors in the event log).

I have added the admin account to the rightsShutdownSystem
group and still no reboot. I have added the SYSTEM user
to the MSCS Cluster with full rights and yet fail on the
OpenCluster() call.

Does someone have an idea what I am missing?

Thanks
 
J

John Campbell

When running as Local System how are you trying to open the cluster
OpenCluster (hostname), OpenCluster (clustername) or OpenCluster (null). If
running as Local System you have no network rights which even though you're
trying to open the local machine gets involved. Normally in generic code for
opening a cluster I try OpenCluster (hostname) and if that fails then try
OpenCluster (NULL)
 
A

Al Frank

John,

Thanks for your help, everything is working fine now using
OpenCluster(NULL) with the service running as Local
System...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top