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:
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
|
ScsiCanonicalName
|
naa.60123456789abcdef0123456789abcde
|
DeviceName
|
vml.020000000060123456789abcdef0123456789abcde1234567890ab
|
3. 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.txt
4. Identify the backing SCSI
device from either the ScsiCanonicalName or DeviceName identifiers. Get-VM | Get-HardDisk -DiskType "RawPhysical","RawVirtual" | Select Parent,Name,DiskType,ScsiCanonicalName,DeviceName | fl | Out-File –FilePath RDM-list.txt
Source VMware KB
No comments:
Post a Comment