You can set up iSCSI storage using the vSphere Web Client, commands in the esxcli iscsi namespace (see iSCSI Storage Setup with ESXCLI) or the vicfg-iscsi command.Software iSCSI setup requires a number of high-level tasks. For each task, see the discussion of the corresponding command-line option in this chapter or the reference information. Specify one of the options listed in Connection Options in place of <conn_options>.vicfg-iscsi <conn_options> - -swiscsi - -enablevicfg-iscsi <conn_options> - -swiscsi - -listvicfg-iscsi <conn_options> - -iscsiname - -name <iscsi_name> <adapter_name>vicfg-iscsi <conn_options> - -iscsiname - -alias <alias_name> <adapter_name>
■ With dynamic discovery, all storage targets associated with a host name or IP address are discovered. You run the following command:
■ With static discovery, you must specify the host name or IP address and the iSCSI name of the storage target. You run the following command:When you later remove a discovery address, it might still be displayed as the parent of a static target. You can add the discovery address and rescan to display the correct parent for the static targets.
6 [-i <stor_ip_addr|stor_hostname> [:<portnum>] [-n <iscsi_name]] <adapter_name>vicfg-iscsi <conn_options> - -authentication - -level <level> - -method <auth_method>- -chap_username <auth_u_name> - -chap_password <chap_password>[- -ip <stor_ip_addr|stor_hostname> [:<portnum>] [-name <iscsi_name]]
-i and -n Neither -i nor -n
7 (Optional) Set the authentication information for mutual CHAP by running vicfg-iscsi -A again with the -b option and a different authentication user name and password.
■ chapProhibited – The host does not use CHAP authentication. If authentication is enabled, specify chapProhibited to disable it.
■ chapRequired – The host requires successful CHAP authentication. The connection fails if CHAP negotiation fails. You can set this value for mutual CHAP only if CHAP is set to chapRequired.
Important You are responsible for making sure that CHAP is set before you set mutual CHAP, and for using compatible levels for CHAP and mutual CHAP.
8 (Optional) Set iSCSI parameters by running vicfg-iscsi -W.
9 Dependent hardware iSCSI setup requires a number of high-level tasks. For each task, see the discussion of the corresponding command-line option in this chapter, or the reference information. Specify one of the options listed in Connection Options in place of <conn_options>.vicfg-iscsi <conn_options> - -iscsiname - -name <iscsi_name> <adapter_name>vicfg-iscsi <conn_options> - -iscsiname - -alias <alias_name> <adapter_name>
b Connect the dependent hardware iSCSI initiator to the iSCSI VMkernel ports by running the following command for each port.
■ With dynamic discovery, all storage targets associated with a host name or IP address are discovered. You run the following command:
■ With static discovery, you must specify the host name or IP address and the iSCSI name of the storage target. You run the following command:When you later remove a discovery address, it might still be displayed as the parent of a static target. You can add the discovery address and rescan to display the correct parent for the static targets.
5 [-i <stor_ip_addr|stor_hostname> [:<portnum>] [-n <iscsi_name]] <adapter_name>vicfg-iscsi <conn_options> - -authentication - -level <level> - -method <auth_method>- -chap_username <auth_u_name> - -chap_password <chap_password>[- -ip <stor_ip_addr|stor_hostname> [:<portnum>] [-name <iscsi_name]]
-i and -n Neither -i nor -n
6 (Optional) Set the authentication information for mutual CHAP by running vicfg-iscsi -A again with the -b option and a different authentication user name and password.
■ chapProhibited – The host does not use CHAP authentication. If authentication is enabled, specify chapProhibited to disable it.
■ chapRequired – The host requires successful CHAP authentication. The connection fails if CHAP negotiation fails. You can set this value for mutual CHAP only if CHAP is set to chapRequired.
Important You are responsible for making sure that CHAP is set before you set mutual CHAP, and for using compatible levels for CHAP and mutual CHAP.
7 (Optional) Set iSCSI parameters by running vicfg-iscsi -W.
8 With independent hardware-based iSCSI storage, you use a specialized third-party adapter capable of accessing iSCSI storage over TCP/IP. This iSCSI initiator handles all iSCSI and network processing and management for your ESXi system.You must install and configure the independent hardware iSCSI adapter for your host before you can access the iSCSI storage device. For installation information, see vendor documentation.Hardware iSCSI setup requires a number of high-level tasks. For each task, see the discussion of the corresponding command-line option in this chapter, the manpage (Linux), or the reference information. Specify one of the options listed in Connection Options in place of <conn_options>.
2 Configure the hardware initiator (HBA) by running vicfg-iscsi -N with one or more of the following options.
■ --list – List network properties.
■ --ip <ip_addr> – Set HBA IPv4 address.
■ --subnetmask <subnet_mask> – Set HBA network mask.
■ --gateway <default_gateway> – Set HBA gateway.
■ --set ARP=true|false – Enable or disable ARP redirect.vicfg-iscsi <conn_options> - -iscsiname - -name <iscsi_name> <adapter_name>vicfg-iscsi <conn_options> - -iscsiname - -alias <alias_name> <adapter_name>
■
■ With static discovery, you must specify the IP address and the iSCSI name of the storage target to be added. Run the following command:When you later remove a discovery address, it might still be displayed as the parent of a static target. You can later add the discovery address and rescan to display the correct parent for the static targets.
5 You can set the information for per adapter, per discovery, and per target CHAP. See Setting iSCSI CHAP and Enabling iSCSI Authentication.vicfg-iscsi <conn_options> - -authentication - -level <level> - -method <auth_method>- -chap_username <auth_u_name> - -chap_password <chap_password>[- -ip <stor_ip_addr|stor_hostname> [:<portnum>] [-name <iscsi_name]]
-i and -n Neither -i nor -n
6 (Optional) Set additional iSCSI parameters by running vicfg-iscsi -W.
7