<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.vi-toolkit.com/index.php?action=history&amp;feed=atom&amp;title=ESXi_vSphere_mount_LUN_problems</id>
	<title>ESXi vSphere mount LUN problems - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.vi-toolkit.com/index.php?action=history&amp;feed=atom&amp;title=ESXi_vSphere_mount_LUN_problems"/>
	<link rel="alternate" type="text/html" href="https://wiki.vi-toolkit.com/index.php?title=ESXi_vSphere_mount_LUN_problems&amp;action=history"/>
	<updated>2026-05-30T11:53:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.vi-toolkit.com/index.php?title=ESXi_vSphere_mount_LUN_problems&amp;diff=1443&amp;oldid=prev</id>
		<title>Wila: forgot to categorize</title>
		<link rel="alternate" type="text/html" href="https://wiki.vi-toolkit.com/index.php?title=ESXi_vSphere_mount_LUN_problems&amp;diff=1443&amp;oldid=prev"/>
		<updated>2018-02-12T15:32:06Z</updated>

		<summary type="html">&lt;p&gt;forgot to categorize&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:32, 12 February 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l89&quot;&gt;Line 89:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 89:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In vSphere 6.5 this happens when you have only 1 uplink.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In vSphere 6.5 this happens when you have only 1 uplink.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category: ESXi]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Wila</name></author>
	</entry>
	<entry>
		<id>https://wiki.vi-toolkit.com/index.php?title=ESXi_vSphere_mount_LUN_problems&amp;diff=1442&amp;oldid=prev</id>
		<title>Wila: Created page with &quot;=== cannot connect to LUN === Sometimes the correct LUN does not show up and trying to mount it only gives an option to format the LUN.  * 1. Log in as root to the ESX host wh...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.vi-toolkit.com/index.php?title=ESXi_vSphere_mount_LUN_problems&amp;diff=1442&amp;oldid=prev"/>
		<updated>2018-02-12T15:27:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== cannot connect to LUN === Sometimes the correct LUN does not show up and trying to mount it only gives an option to format the LUN.  * 1. Log in as root to the ESX host wh...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== cannot connect to LUN ===&lt;br /&gt;
Sometimes the correct LUN does not show up and trying to mount it only gives an option to format the LUN.&lt;br /&gt;
&lt;br /&gt;
* 1. Log in as root to the ESX host which cannot mount the datastore using an SSH client.&lt;br /&gt;
* 2. Run the command:&lt;br /&gt;
 esxcfg-volume -l&lt;br /&gt;
&lt;br /&gt;
The results appear similar to:&lt;br /&gt;
&lt;br /&gt;
 VMFS3 UUID/label: 4b057ec3-6bd10428-b37c-005056ab552a/ TestDS&lt;br /&gt;
 Can mount: Yes&lt;br /&gt;
 Can resignature:  No (the volume is being actively used)&lt;br /&gt;
 Extent name: naa.6000eb391530aa26000000000000130c:1 range: 0 – 1791 (MB)&lt;br /&gt;
&lt;br /&gt;
Record the UUID portion of the output. In the above example the UUID is 4b057ec3-6bd10428-b37c-005056ab552a.&lt;br /&gt;
&lt;br /&gt;
Note: The Can mount value must be Yes to proceed with this workaround.&lt;br /&gt;
&lt;br /&gt;
* 3. Run the command:&lt;br /&gt;
 esxcfg-volume -M &amp;lt;UUID&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where the &amp;lt;UUID&amp;gt; is the value recorded in step 2.&lt;br /&gt;
&lt;br /&gt;
or you can just use the label:&lt;br /&gt;
 esxcfg-volume -M TestDS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== adding a new NFS LUN from the CLI ===&lt;br /&gt;
&lt;br /&gt;
First list what is there:&lt;br /&gt;
 esxcli storage nfs list&lt;br /&gt;
&lt;br /&gt;
Then add:&lt;br /&gt;
  esxcli storage nfs add -v NEWLUN -H 1.2.3.4 -s /mnt/newstorage&lt;br /&gt;
where NEWLUN is the label, -H is the host&lt;br /&gt;
&lt;br /&gt;
=== adding iSCSI LUN back ===&lt;br /&gt;
&lt;br /&gt;
disable snapshot LUN&lt;br /&gt;
&lt;br /&gt;
 # esxcfg-advcfg -s 0 /LVM/DisallowSnapshotLun&lt;br /&gt;
 Value of DisallowSnapshotLun is 0&lt;br /&gt;
Then rescan the lot&lt;br /&gt;
 # esxcli storage core adapter rescan --all&lt;br /&gt;
 # vmkfstools -V&lt;br /&gt;
 # esxcli storage vmfs snapshot list&lt;br /&gt;
restore the default for your snapshot&lt;br /&gt;
 # esxcfg-advcfg -s 1 /LVM/DisallowSnapshotLun&lt;br /&gt;
 Value of DisallowSnapshotLun is 1&lt;br /&gt;
 # esxcfg-volume -l&lt;br /&gt;
 # df -h&lt;br /&gt;
&lt;br /&gt;
The snapshot list and volumes show no results for me, but on df -h after the above commands, the ISCSI mount now shows up at the host.&lt;br /&gt;
&lt;br /&gt;
 [https://kb.vmware.com/kb/2129058 vSAN handling of devices detected as snapshots (2129058)]&lt;br /&gt;
&lt;br /&gt;
=== Adding a host to an NFS datastore in the VCSA errors out ===&lt;br /&gt;
&lt;br /&gt;
Trying to add another host to a NFS datastore errors out and generates the error &amp;quot;Failed: An error occurred during host configuration&amp;quot;.&lt;br /&gt;
The host should be able to connect to the NFS storage as it is allowed from the NFS server.&lt;br /&gt;
&lt;br /&gt;
Digging deeper on this error gives &amp;quot;Operation failed, diagnostics report: Unable to get console path for volume&amp;quot;&lt;br /&gt;
&lt;br /&gt;
In my case the host had mounted this NFS LUN before under a slightly different name and as such a now obsolete pointer somewhere was preventing the host from connecting to the LUN.&lt;br /&gt;
&lt;br /&gt;
You can fix it from the CLI as follows:&lt;br /&gt;
&lt;br /&gt;
First make sure the LUN isn&amp;#039;t in the output of the following command:&lt;br /&gt;
 # esxcfg-nas -l&lt;br /&gt;
&lt;br /&gt;
If that&amp;#039;s not the case then proceed and try to add the LUN from the CLI.&lt;br /&gt;
If your host is 10.0.0.5 and the NFS share on it is /mnt/vol/share which you want to mount as MYLUN then add like&lt;br /&gt;
 # esxcfg-nas -a -o 10.0.0.5 -s /mnt/vol/share MYLUN&lt;br /&gt;
  Error performing operation: Unable to add new NAS, volume with the label MYLUN already exists&lt;br /&gt;
Here the vSphere server is indeed complaining that MYLUN exists.&lt;br /&gt;
Run:&lt;br /&gt;
 # df -h&lt;br /&gt;
and verify that it is NOT in the list.&lt;br /&gt;
After that test you can remove the LUN&lt;br /&gt;
 # esxcfg-nas -d MYLUN&lt;br /&gt;
 IORM: failed to disable IORM: Unable to get console path for volume, MYLUN&lt;br /&gt;
 NAS volume MYLUN deleted.&lt;br /&gt;
Now you can rerun the above command:&lt;br /&gt;
 # esxcfg-nas -a -o 10.0.0.5 -s /mnt/vol/share MYLUN&lt;br /&gt;
 Connecting to NAS volume: MYLUN&lt;br /&gt;
 MYLUN created and connected.&lt;br /&gt;
&lt;br /&gt;
=== iSCSI shows as normal, degraded ===&lt;br /&gt;
&lt;br /&gt;
In vSphere 6.5 this happens when you have only 1 uplink.&lt;/div&gt;</summary>
		<author><name>Wila</name></author>
	</entry>
</feed>