Quantcast
Channel: File Services and Storage forum
Viewing all articles
Browse latest Browse all 13565

AvailableDisk.AddToCluster() throwing System.Management.ManagementException with message generic failure

$
0
0

I am trying to add available disk to cluster using c# wmi calls. I have generated the class with visual studio.Disk is added to cluster successfully . But in the end it is throwing exception.

System.Management.ManagementException was unhandled by user code
  HResult=-2146233087
  Message=Generic failure  
  Source=System.Management
  StackTrace:
       at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
       at System.Management.ManagementObject.InvokeMethod(String methodName, ManagementBaseObject inParameters, InvokeMethodOptions options)
       at CloudStack.Plugin.WmiWrappers.ROOT.MSCLUSTER.AvailableDisk.AddToCluster(String ResourceName, String& Path) ROOT.MSCluster.MSCluster_AvailableDisk.cs:line 919

            

Viewing all articles
Browse latest Browse all 13565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>