1. Open the vSphere PowerCLI command-line.
2. Run the command:Get-VM | Get-HardDisk -DiskType "RawPhysical","RawVirtual" | Select Parent,Name,DiskType,ScsiCanonicalName,DeviceName | fl
This command produces a list of virtual machines with RDMs, along with the backing SCSI device for the RDMs.
An output looks similar to:
Parent Virtual Machine Display Name
Name Hard Disk n
DiskType RawVirtual
ScsiCanonicalNamenaa.60123456789abcdef0123456789abcde
DeviceName vml.020000000060123456789abcdef0123456789abcde1234567890ab
If you need to save the output to a file the command can be modified:
Get-VM | Get-HardDisk -DiskType "RawPhysical","RawVirtual" | Select Parent,Name,DiskType,ScsiCanonicalName,DeviceName | fl | Out-File –FilePath RDM-list.txt3. Identify the backing SCSI device from either the ScsiCanonicalName or DeviceName identifiers.
No comments:
Post a Comment