Cannot reach iSCSI target after enabling iSCSI port binding on ESX/ESXi 4.x, ESXi 5.x & ESXi 6.x
search cancel

Cannot reach iSCSI target after enabling iSCSI port binding on ESX/ESXi 4.x, ESXi 5.x & ESXi 6.x

book

Article ID: 344806

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

  • After enabling iSCSI port binding on ESX/ESXi 4.x and ESXi 5.0, 5.1,5.5, 6.5 and 6,7 you can no longer reach your iSCSI target from your software iSCSI initiator.
  • The vmkernel log file contains entries similar to:

    vmkernel: 0:00:03:20.859 cpu5:7932)Tcpip_Vmk: 165: cannot honor socket binding with vmk1 (src_subnet=0xa154400, dst_subnet=0xa154800)
    iscsid: cannot make connection to 10.21.74.242:3260 (101)
    vmkernel: 0:00:03:20.859 cpu5:7932)Tcpip_Vmk: 165: cannot honor socket binding with vmk2 (src_subnet=0xa154400, dst_subnet=0xa154800)
    iscsid: connection to discovery address 10.21.74.242 failed
    iscsid: connection login retries (reopen_max) 5 exceeded iscsid: cannot make connection to 10.21.74.242:3260 (101)
    iscsid: connection to discovery address 10.21.74.242 failed iscsid: connection login retries (reopen_max) 5 exceeded

     
  • In the vCenter Server Events, you see this message when you restart the host or rescan the HBA adapter:

    Login to iSCSI target iqn.1992-04.com.emc:cx.apm00114400059.a6 on vmhba37 @ vmk2 failed. The iSCSI initiator could not establish a network connection to the target.


Environment

VMware ESXi 4.0.x Embedded
VMware ESXi 4.1.x Installable
VMware vSphere 6.5.x
VMware ESX 4.1.x
VMware ESXi 4.1.x Embedded
VMware ESXi 4.0.x Installable
VMware vSphere ESXi 5.1
VMware ESX 4.0.x
VMware vSphere 6.7.x
VMware vSphere ESXi 5.5
VMware vSphere ESXi 5.0

Resolution

iSCSI port binding in ESX/ESXi 4.x and ESXi 5.0, 5.1 and 5.5 does not support routing.

To resolve this issue and still use iSCSI port binding, you must place the iSCSI initiator and the iSCSI target on the same subnet.

Alternatively, this can be resolved by disabling iSCSI port binding.

Disabling iSCSI port binding in ESX/ESXi 4.x

To disable iSCSI port binding in ESX/ESXi 4.x, run this command:

esxcli swiscsi nic remove -n vmk_interface -d vmhbaX

Where X is the vmhba device number.

For example:

esxcli swiscsi nic remove -n vmk2 -d vmhba33
 

Disabling iSCSI port binding in ESXi 5.0, 5.1 and 5.5

To disable iSCSI port binding in ESXi 5.x, you can either use the vSphere Client or the ESXi shell.
 
To disable iSCSI port binding using vSphere Client:
  1. Click Configuration > Storage Adapters > iSCSI Software Initiator > Properties.
  2. Select the Network Configuration tab.
  3. Select the vmk that is iSCSI compliant and then click Remove.
  4. Click Close.
To disable iSCSI port binding using the vSphere Web Client 5.1 or 5.5
  1. Log in to vSphere Web Client.
  2. Click to select the host from the Hosts and Clusters inventory.
  3. Click the Manage tab, then click Storage.
  4. Click Storage Adapters and click the software iSCSI adapter in the list
  5. Under Adapter Details, click the Network Port Binding tab.
  6. Click a VMkernel adapter to remove with the iSCSI adapter and click OK.
To disable iSCSI port binding using the using the ESXi Shell, run this command:

esxcli iscsi networkportal remove -n vmk_interface -A vmhba_device

Where:

vmk_interface is the vmk interface to be removed.
vmhba_device is the VMHBA device name.

For example:

esxcli iscsi networkportal remove -n vmk2 -A
vmhba33

For more information, see the iSCSI SAN Configuration Guide (for ESX/ESXi 4.x) or the vSphere Networking Guide (for ESXi 5.x).
 

Additional Information

For translated versions of this article, see: