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.
-
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 -AutoSizeMBR disk
PS C:> Get-ClusterSharedVolume -Name “Cluster Disk X“| Get-ClusterParameter -Name DiskSignature | Select Value | Format -Table -AutoSize - Run diskpart.exe in command prompt.
- Run list disk to inventory all attached disks.
- Run select disk x to select a disk you want to check. (x is the number of disk listed in step3)
- 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 Migration和High Availability就需要启用CSV。但是CSV的命名和真是的物理磁盘是不同的,这会导致在删除CSV时出现迷惑。例如,CSV名称一般叫“Cluster Disk x”,路径一般是“C:ClusterStorageVolumeX”,而磁盘管理其中的磁盘名字却是“Disk x”。所以删除磁盘时一定要小心。
以下是查找CSV对应的物理磁盘的方法,希望对你有所帮助。
-
运行以下PowerShell命令找Disk GUID 或 Disk Signature。
GPT磁盘
PS C:> Get-ClusterSharedVolume -Name “Cluster Disk X“| Get-ClusterParameter -Name DiskIdGuid | Select Value | Format -Table -AutoSizeMBR磁盘
PS C:> Get-ClusterSharedVolume -Name “Cluster Disk X“| Get-ClusterParameter -Name DiskSignature | Select Value | Format -Table -AutoSize - 在命令行下运行 diskpart.exe。
- 运行 list disk 获得所有磁盘列表。
- 运行select disk x 选择你要检查的磁盘。(x是第三步中列出的磁盘序列号)
- 运行Detail disk。如果Disk ID和第一步中的输出相符,说明这块磁盘就是对应CSV的物理盘。