How to find corresponded physical disk for Hyper-V CSV volumes

CSV (Cluster Shared Volume) is fundamental of Microsoft Hyper-V. You must have it to leverage Live Migration and High Availability features. But it’s very confuse when you want to reclaim CSV since CSV is using different name with physical disks. For example, CSV name usually is “Cluster Disk x”, path usually is “C:ClusterStorageVolumeX”. But real disk name is “Disk x” in Disk Manager. You have to very carefully when delete the disk.

Here is a way to find corresponded physical disk, hopefully it’s can help your work.

  1. Run following PowerShell to find Disk GUID or Disk Signature.
    GPT disk
    PS C:> Get-ClusterSharedVolume -Name “Cluster Disk X“| Get-ClusterParameter -Name DiskIdGuid | Select Value | Format -Table -AutoSize

    MBR disk
    PS C:> Get-ClusterSharedVolume -Name “Cluster Disk X“| Get-ClusterParameter -Name DiskSignature | Select Value | Format -Table -AutoSize

  2. Run diskpart.exe in command prompt.
  3. Run list disk to inventory all attached disks.
  4. Run select disk x to select a disk you want to check. (x is the number of disk listed in step3)
  5. Run Detail disk. The selected disk is actual disk of the CSV if Disk ID matches to the output of step 1.

 *** Chinese Version ***

CSV (Cluster Shared Volume) 是微软Hyper-V的基础。如果你要开启Live MigrationHigh Availability就需要启用CSV。但是CSV的命名和真是的物理磁盘是不同的,这会导致在删除CSV时出现迷惑。例如,CSV名称一般叫“Cluster Disk x”,路径一般是“C:ClusterStorageVolumeX”,而磁盘管理其中的磁盘名字却是“Disk x”。所以删除磁盘时一定要小心。

以下是查找CSV对应的物理磁盘的方法,希望对你有所帮助。

  1. 运行以下PowerShell命令找Disk GUID 或 Disk Signature。
    GPT磁盘
    PS C:> Get-ClusterSharedVolume -Name “Cluster Disk X“| Get-ClusterParameter -Name DiskIdGuid | Select Value | Format -Table -AutoSize

    MBR磁盘
    PS C:> Get-ClusterSharedVolume -Name “Cluster Disk X“| Get-ClusterParameter -Name DiskSignature | Select Value | Format -Table -AutoSize

  2. 在命令行下运行 diskpart.exe
  3. 运行 list disk 获得所有磁盘列表。
  4. 运行select disk x 选择你要检查的磁盘。(x是第三步中列出的磁盘序列号)
  5. 运行Detail disk。如果Disk ID和第一步中的输出相符,说明这块磁盘就是对应CSV的物理盘。
Advertisements

Author: Wu

VCP, MCSE, CCNA

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s