Caution: Do not edit the /etc/vmware/esx.conf file configuration file directly.
To resolve this issue, validate the currently configured driver module options:
- Open a console to the ESX/ESXi host.
- Run this command to view a list of the options available for the driver module:
# vmkload_mod -s iscsi_vmk
- Run this command to for an iSCSI driver module options and whether it is loaded on boot.
# esxcfg-module -g iscsi_vmk
You can also use esxcli command to achieve the above results.
- Run this command to get Software iSCSI information .
# esxcli iscsi software get
- Run this command to list their parameters.
# esxcli system module parameters list -m iscsi_vmk
- Using the esxcfg-module or esxcli commands, specify correct options for the iSCSI driver module or remove all module options.
- To specify correct options use the below command:
# esxcli system module parameters set -m module_name -p "Parameter_to_be_set"
For example, to set lun queue depth to 255:
# esxcli system module parameters set -m iscsi_vmk -p "iscsivmk_LunQDepth=255"
- To remove all module options, simply enter a null value for the option, which appears as "".
# esxcfg-module --set-options "" iscsi_vmk
or
# esxcli system module parameters set -m iscsi_vmk -p ""
Note: Ensure that there is no white space while setting parameters for any module.
- Reboot the ESXi host for the changes to take effect.