VMware

VMware ESXi 6.5 Can’t Add Existing iSCSI LUN

I ran into a peculiar issue in VMware ESXi 6.5 can't add existing iSCSI LUN to a new VMware ESXi 6.5 host in a lab environment

In playing around with adding an existing iSCSI LUN to a new VMware ESXi 6.5 host in a lab environment, I ran into a peculiar issue adding the storage to the server. In thoroughly checking everything back over, I didn’t see an issue with my networking config or iSCSI configuration to the target. ย However, in my VCSA Web UI, I didn’t see the LUN available to add as a datastore. ย Also, I already had two ESXi 6.0 hosts connected and communicating with the LUN in question, so it was a proven datastore that had connectivity. ย Was this an issue with 6.5? ย Let’s take a look at troubleshooting why VMware ESXi 6.5 can’t add existing iSCSI LUN.

VMware ESXi 6.5 Can’t Add Existing iSCSI LUN

So, below, I am not showing the iSCSI setup itself, but rather what I saw after setting up iSCSI and configuring the host for communicating with the iSCSI target.

This is taken from the Web UI in vCenter. ย Notice in theย New Datastore wizard you don’t see the remote iSCSI connection, only a local disk that is available.

esxi65lun01

I thought I would take a look at the localย Host UI to see if I had different results (maybe this is a vCenter issue). ย No go…same results. ย I only saw the local disk available.

esxi65lun02

I thought just for kicks, I would open up the vSphere Client that isn’t supported (grins). ย Alas, having changed nothing on the iSCSI side, Iย see the iSCSI LUN.

esxi65lun03

My joy was fleeting though, as Iย hitย Next and moved on to theย Mount Options screen. ย Theย only option that I see here isย Format the disk.

esxi65lun04

Okay, so now is time to break out the commandline and see what we can see here. ย Using theย esxcfg-volume command, I list out the volumes detected. ย Interestingly, it sees the iSCSI volume and lists it asย Can Mount: ย Yes. ย Notice theย Can resignature: ย No (the volume is being actively used).

esxi65lun05

Let’s see if we can mount this puppy with theย esxcfg-volume -mย UUID command. ย It works! ย Also, a quick note here if you use theย -m it is not persistent, and if you useย -M it is persistent.

esxi65lun06

Just to verify, I hop back over to my vCenter Web UI and take a look at the datastores. ย I indeed have mounted theย DATA01 volume which is the iSCSI LUN.

esxi65lun07

Thoughts

This doesn’t appear to be a VMware ESXi 6.5 issue, but rather is an issue that others have run into with previous versions of ESXi. ย However, this is an issue that looks to have persisted into version 6.5. ย If you run into a issue with VMware ESXi can’t add existing iSCSI LUN you can break out the commandline and most likely will be able to add the existing LUN.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.