MSCS Cluster Inquire/Reboot Authority

  • Thread starter Thread starter Al Frank
  • Start date Start date
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
 
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)
 
John,

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