The overall configuration really depends on whether or not you are using vLANs, multipathing, jumbo frames, trunking, number of uplinks on your ESX hosts, etc.
For a very simple config to get yourself up and running with the built-in Software iSCSI Adapter in ESX using a single Cisco swtich (can be any GbE switch, really), do the following. This is ideal for a lab or test environment.
Note: Anywhere that I use the term "
SAN", substitute whatever you are using to provide or emulate iSCSI storage, be it Openfiler or another hardware implementation.
Connect one or two (for redundancy) uplinks on your ESX host to the switch using a CAT6 cable.
iSCSI ports to the same switch and assign the iSCSI initiators on the
Create a new vSwitch on your ESX host and configure it to use the uplink(s) you connected to the Cisco switch.
Create a new vmkernel network connection on that vSwitch and assign it an IP on the same subnet as the iSCSI
Connect to that ESX host using the vSphere client (or go through vCenter if you have it).
Click on the
Software iSCSI Adapter
and check the box for
and click Ok.
Go back into the properties of the Software iSCSI Adapter. On the
tab enter the IP addresses of the iSCSI targets on your
and enter any CHAP as necessary (if you configured it on the S
, otherwise leave it blank). Click OK.
Back at the main
and select the box to use the initiator name as the CHAP name. This sets the name of the incoming initiator so that you can use it to set up the initiator settings on the
Ensure that your
is set up to accept connections from the initiator names of your ESX hosts and that any CHAP settings match. Also make sure that the iSCSI LUNs on your
are configured to be presented to those incoming iSCSI initiators.
On the ESX host,
once again and click
If all of that is set up correctly, you should see your iSCSI LUNs detected by the software initiator. Verify that the number of paths shown is correct.
If you are using the software iSCSI initiator and have two iSCSI targets to access the same
storage, you should see two paths per LUN. If the numbers don't add up, verify on your
that the ESX software initiator was able to log in to both iSCSI targets successfully.
Now, on the
. You will now see the iSCSI LUNs available to create VMFS datastores.