locked
Cluster disk and the drive letter RRS feed

  • Question

  • Are there any way to list the mapping of the cluster disk name and drive letter ?

    Wednesday, March 27, 2019 10:02 AM

All replies

  • Get-WmiObject -Namespace root\MSCluster MSCluster_DiskPartition -ComputerName "Cluster.contoso.com" -Authentication PacketPrivacy `

        | Format-ListPath, VolumeLabel


    tim

    Wednesday, March 27, 2019 1:04 PM
  • Hi,

    Thanks for posting in our forum!

    You can run the following PowerShell Script:

    Get-ClusterResource | ? { $_.ResourceType.Name -eq "Physical Disk" } | % {

      $resourceName = $_.Name

      $resource  = gwmi MSCluster_Resource -Namespace root/mscluster |

                   ? { $_.Name -eq $resourceName }

      $disk      = gwmi -Namespace root/mscluster -Query `

                   "ASSOCIATORS OF {$resource} WHERE ResultClass=MSCluster_Disk"

      $partition = gwmi -Namespace root/mscluster -Query `

                   "ASSOCIATORS OF {$disk} WHERE ResultClass=MSCluster_DiskPartition"

      $partition | select Path

    }

    Then we can get the drive number of the cluster disk. In order of analogy, Just like:

    Hope this information can help you, if you have any question, please feel free to let me know.

    Best Regards,

    Daniel


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Thursday, March 28, 2019 7:30 AM
  • Hi,
    Just want to confirm the current situations.
    Please feel free to let us know if you need further assistance.
    Best Regards,
    Daniel

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, April 1, 2019 1:34 AM
  • Hi,
    This is Daniel and wish you all the best!
    Since you have not responded for a long time, we will temporarily archive this post.
    If the reply helped you, please remember to mark it as an answer.
    If you have any questions, please do not hesitate to contact us.
    Best Regards,
    Daniel

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, April 3, 2019 1:54 AM