Hello,
I have a .Net web application that runs in a Failover Cluster. It executes in the 'Cluster Group' owner node.
I need to get the file system information of shared disks in the cluster. I have a path to a file in the disk. The function I have used is GetVolumePathName() (fileapi.h) which returns the volume mount point for the specified path. This mount point is then passed to GetVolumeInformation() function which returns the file system type. This works well with Cluster Shared Volumes and if the shared disk is owned by the 'Cluster Group' owner node.
But, if a cluster disk is owned by a node other than this 'Cluster Group' owner node, I am not able to get the information. The functions GetVolumePathName() and ClusterGetVolumePathName() both return error code 2. GetVolumeInformation returns empty file system.
I would like to know if there is a function or API or WMI query that can give me the file system information in this case.
In general, how to discover the resources in a node that is not the Cluster Group owner, if not using a cluster-wide command such as Get-Volume or a WMI query with a class such as MSFT_Volume?
Thank you,
Anand