We have an EMC CX 3-20 SAN housing our data and VMs (ESX 3.5). A frustrating fact is that the LUN IDs on the EMC SAN and the LUN IDs that the ESX servers use are different. I can find out the correspondence from Navisphere, but have so far been unable to find out using the VMWare VI Toolkit. And to find out from Navisphere, I have to reboot one of the ESX servers.
For instance, LUN 18 on the SAN is connected to one of my ESX servers as LUN 29. Does anyone know how, in a script, to get this correspondence? I have tried Hugo Peeters' excellent Get-Storage.ps1 script, but it only reports the ESX LUN numbers. When I add a new LUN on the SAN and then want to connect it to the ESX servers I have to reboot one of the ESX machines first to get Navisphere to report the LUN number from the ESX server's point of view. And I would really like to be able to generate reports giving this correspondence.
For instance, LUN 18 on the SAN is connected to one of my ESX servers as LUN 29. Does anyone know how, in a script, to get this correspondence? I have tried Hugo Peeters' excellent Get-Storage.ps1 script, but it only reports the ESX LUN numbers. When I add a new LUN on the SAN and then want to connect it to the ESX servers I have to reboot one of the ESX machines first to get Navisphere to report the LUN number from the ESX server's point of view. And I would really like to be able to generate reports giving this correspondence.