In this example I am setting up a VMWare ESXi 4.1 server to access a VMware iSCSI SAN using the VMWare iSCSI software initiator. The server is connected as shown below
Enable the software iSCSI initiator
Note the vmhba number of the software iSCSI initiator in this example vmhba39
Create a Vmkernal vSwitch to be used for iSCSI
|In the vSwitch properties, create Vmkernal ports for each physical interface.
Note the vmk numbers.
Setup Vmkernal ports
Bind vmkernal ports
Note you will need to connect to the console to issue these commands. You will need to enable either local or remote tech support mode on ESXi.
|Bind each vmkernal port to the iSCSI software initiator. You will need to know the vmk# and the vmhba# of the iSCSI initator. Run these commands in the service console.||esxcli swiscsi nic add n vmk1 d vmhba39
esxcli swiscsi nic add n vmk2 d vmhba39
Enable Jumbo frames (optional)
The command to enable jumbo frames is
esxcfg-vswitch -m 9000 vSwitchx where x= switch number
Note you should only enable jumbo frames if all other devices in your storage network are configured to use jumbo frames
Setup iSCSI target
In the properties of the software iSCSI initatiator add the relevant info for your SAN
Add iSCSI Target
You should be prompted to rescan please select yes.
You should now have more paths to the datastores.
To use round robin access, right click on each datastore and select manage paths. Choose Round Robin.