Quantcast
Channel: VMware Communities : All Content - VMware PowerCLI
Viewing all articles
Browse latest Browse all 16717

Script to map out datastores to NAA ID's?

$
0
0

Does anyone have a script to map a list of datastores from a host or cluster along with the the NAA ID's? I have found scripts that gather various types of information on the LUN's on hosts and clusters but don't associate a datastore to a LUN (or extents). The reason behind this is that I am trying to find a way to create a list of datastores and be able to identify their associated LUN's on the disk array. Perhaps a different method would work better? In the case of the NAA ID this includes the WWN of the disk as part of the structure (at least for EMC devices) so it can be used to identify the LUN in the array. Right now, the method I am using to identify the disks is to run two commands at the console:

 

esxcfg-scsidevs -m

 

Which identifies the datastore name and corresponding mount point in the console (for example /dev/sdz), and

 

INQ -sym_wwn (Linux utility)

 

to match up the mount point with the device ID. From what I understand this won't work in ESXi 4 or ESXi 5.


Viewing all articles
Browse latest Browse all 16717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>