Restarting the software iSCSI stack
search cancel

Restarting the software iSCSI stack

book

Article ID: 304738

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

This document discusses problems with the software iSCSI stack that can be resolved by restarting the stack instead of rebooting the entire ESX system.
This may be necessary when the detection of storage at boot time fails to acquire the iSCSI targets from the array or when the iSCSI stack stops responding.


Symptoms:
  • Storage disappeared unexpectedly.
  • Storage is missing after a reboot of the ESX host.
  • Change to the initiator name (IQN) does not appear to have been accepted.


Environment

VMware ESX Server 3.0.x

Resolution

Caution: This procedure disables all iSCSI traffic that uses the software initiator. Prior to performing these steps:
  • Ensure that there are no virtual machines running on a datastore located on the iSCSI LUNs on the host.
  • Ensure that there are no 3rd party scripts or utilities running on service console which could access iSCSI LUNs on the host. The lsof utility can be used to identify any processes with open file locks to files residing on Datastores on iSCSI LUNs. For more information on starting and stopping 3rd party services or scripts, please engage the appropriate 3rd party software vendor.
To restart the software iSCSI stack:
  1. Disable the software iSCSI configuration with the command:

    esxcfg-swiscsi -d
  2. Terminate the software iSCSI processes with the command:

    esxcfg-swiscsi -k

    In some cases, the iSCSI stack is in an unresponsive state and does not terminate on this command. If this happens, you must find the process ID and issue a terminate command directly to the operating system for this process.

    1. Obtain the process ID for the vmkiscsi processes with the command:

      ps ax | grep vmkiscsid
    2. Terminate the process with the command:

      kill <process ID>
  3. Enable the software iSCSI configuration with the command:

    esxcfg-swiscsi -e
  4. Perform a rescan of the software initiator with the command:

    esxcfg-rescan vmhba40
Note: This procedure only applies if you are using the software iSCSI initiator.
Memory resource starvation is one possible reason for the iSCSI stack to become unresponsive. This can occur if agents have been installed on the service console. It is advisable to increase the amount of memory assigned to the service console. For more information, see Increasing the amount of RAM assigned to the ESX Server service console (1003501).