VMware Cloud Community
warrenwalker
Enthusiast
Enthusiast

List Virtual machines and associated RDM's

Is anyone aware of a technique/ (free) tool to list all RDM's and the virtual machine that that they belong to?

0 Kudos
5 Replies
Texiwill
Leadership
Leadership

Hello,

Not with the VM powered on, but there is a vmkfstools option to get information or query and RDM to find the LUN. That should help. Also the -rdm files are generally stored with the other VM files.


Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.

CIO Virtualization Blog: http://www.cio.com/blog/index/topic/168354

As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
warrenwalker
Enthusiast
Enthusiast

Hi Edward,

Unfortunately i need to check this in a live environment and all the VM's are powered on. I would have thought VMware would have included this feature by now seeing as RDM's have been widely adopted. Its an administrative nightmare without any visibility. Maybe VI4.... Smiley Happy

0 Kudos
Texiwill
Leadership
Leadership

Hello,

VM to RDM is pretty easy. RDM to LUN is more difficult as the RDM Is locked so you can not operate on it outside the VM. Perhaps there is someway within the VM to get this information but I have not found it even with Linux. I also use a LUN naming convention that tells me when it is an RDM and to which VM it belongs.


Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.

CIO Virtualization Blog: http://www.cio.com/blog/index/topic/168354

As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
TCronin
Expert
Expert

You can see the lun number in the properties for the hard disk the RDM is "assigned" to. The device is listed in the first field and the format is vmhba<number>:<SAN Target>:<Lun>:<Partition> so if it lists the device as vmhba1:2:33:1 then it's on the second hba, second target on th san and is LUN 33, partition 1.

You can also click on Manage Paths and see the SAN identifiers for the target if your Storage guys need that.

If you are not using a mapping file then the RDM will be listed as a scsi device with the same format for the vmhbax:x:x:x

Tom Cronin, VCP, VMware vExpert 2009 - 2021, Co-Leader Buffalo, NY VMUG
0 Kudos
SelvaMK
Enthusiast
Enthusiast

hi,

have you tried the esxcfg-vmhbadevs -ma command?

Selva

0 Kudos