How to find the relationship between a vmhba device and a VMFS datastore
Issue
There is no easy way to find out which vmhba device relates to which VMFS datastore, and vice versa.
For example, a performance chart may show a vmhba device under heavy load, but which VMFS datastore does this relate to?
Resolution
Run the following commands from the service console of an ESX host.
To find the VMFS datastore from the vmhba device e.g. vmhba
0:2:5
ls -l /vmfs/volumes | egrep "^l.*$(esxcfg-vmhbadevs -m | grep 0:2:5 | awk '{print $3}')$" | awk '{print $9}'
To find the vmhba device from the VMFS datastore e.g.
Production1
esxcfg-vmhbadevs -m | grep $(ls -l /vmfs/volumes | grep -i "Production1" | awk '{print $11}') | awk '{print $1}'
Products
VMware ESX 3.5
Created: 29th March 2010
Updated: 29th March 2010
© 2005-2024 Jamie Morrison