VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
5 Replies Last post: Oct 8, 2009 10:01 PM by bolsen  

EMC SAN LUN IDs vs VMWare LUN IDs posted: Jul 9, 2009 6:18 PM

Click to view jjen009's profile Lurker 3 posts since
Nov 6, 2005
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.

Re: EMC SAN LUN IDs vs VMWare LUN IDs

1. Aug 2, 2009 10:35 AM in response to: jjen009
Click to view AndreTheGiant's profile Guru 5,916 posts since
Aug 28, 2008
As I now there is nothing to simple to manage the correspondence between LUNs.

What I do is give in Navisphere a symbolic name (with the LUN ID) and start from the LUN 0 to add them to ESX.
If you add them one by one, you can have the correspondence.
Also in datastore name I put the same name that I use in Navisphere.

Andre

Re: EMC SAN LUN IDs vs VMWare LUN IDs

3. Aug 2, 2009 8:58 PM in response to: jjen009
Click to view AndreTheGiant's profile Guru 5,916 posts since
Aug 28, 2008
I never tried it, yet...
But maybe the "EMC Storage View snapin for vCenter" could be usufel

EMC Storageview Plug-in
Re: How do you get your hands on the EMC Storage View snapin for vCenter - is it real or just a myth?

Andre

Re: EMC SAN LUN IDs vs VMWare LUN IDs

5. Oct 8, 2009 10:01 PM in response to: jjen009
Click to view bolsen's profile Hot Shot 132 posts since
Nov 8, 2005
Why not manualy assign the LUN ID when you present it to the host?

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities