VMware Solutions Discussions

reassigning LUN IDs


Is it ok to reassign lun IDs with the lun online or would that cause an issue in vmware?


when I do lun show -m


I see some luns dont have the same LUN ID used and I think best practice is to use same lun ID across all initiators groups for each lun?





In a world where everything is 100% perfectly configured, you might be able to unmap the LUN, remap the LUN with a new ID, rescan for disks and datastores at all the ESX hosts, and get by with your guests not noticing.




Something in your environment isn't setup get through that procedure, and by definition it will cause a problem with what you can least afford to lose.


Pick a LUN - shutdown the guests that use the LUN, unmap, remap, rescan for disks and datastores, restart the affected guests.  


Alternatively, vMotion all the guests that use the LUN onto the host or hosts that has the same LUN with the ID you want.  Then do the unmap/remap/rescan bit on just the one host that isn't using the LUN.  Then you can rebalance back.  But be sure you know what you are doing - you need to turn off anything that might automatically try to migrate load back to the one host while you are messing with it.


I prefer the shutdown mechanism for this, since you can then fix up all ESX hosts that might need changing in one go.




NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner