Check if a VHDX file is shared for a VM
How to check if a VHDX file is shared.
John Savill
October 25, 2015
1 Min Read
Q. How can I check if a VHDX file is shared using PowerShell?
A. Shared VHDX enables a single VHDX file to be attached to multiple VMs SCSI controllers which is then seen as shared SAS storage by the VMs and can be used as clustered storage for guest clusters. To check if a VHDX file is shared you need to look at the VHDX file as its attached to a VM since its not actually a property of the VHDX file but rather its connection to a VM. To check use the following:
PS C:> Get-VMHardDiskDrive -VMName savdalfc01 | ft Path, SupportPersistentReservations -AutoSizePath SupportPers istentReser vations---- -----------C:ClusterStorageVMssavdalfc01Virtual Hard Diskssavdalfc01.vhdx FalseC:ClusterStorageVMsShared VHDXsavdalfcshared1.vhdx True
If SupportPersistent Reservations is true then it is a shared VHDX file.
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like