<

Simple iSCSI Configuration Guide for VMware ESX.

Published on
12,987 Points
3,787 Views
2 Endorsements
Last Modified:
Approved
Justin C
AWS solutions and security architect with a strong background in VMware and security compliance.
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.

1) Connect  one or two (for redundancy) uplinks on your ESX host to the switch using a CAT6 cable.

2) Connect the SAN iSCSI ports to the same switch and assign the iSCSI initiators on the SAN IP addresses.

3) Create a new vSwitch on your ESX host and configure it to use the uplink(s) you connected to the Cisco switch.

4) Create a new vmkernel network connection on that vSwitch and assign it an IP on the same subnet as the iSCSI SAN.

5) Connect to that ESX host using the vSphere client (or go through vCenter if you have it).

6) Click on the Configuration tab, select Storage Adapters.

7) Highlight the Software iSCSI Adapter and click Properties.

8) Click Advanced and check the box for Enabled and click Ok.

9) Go back into the properties of the Software iSCSI Adapter.  On the Static Targets tab enter the IP addresses of the iSCSI targets on your SAN and enter any CHAP as necessary (if you configured it on the SAN, otherwise leave it blank).  Click OK.

10) Back at the main Properties page, click CHAP 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 SAN.

11) Ensure that your SAN 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 SAN are configured to be presented to those incoming iSCSI initiators.

12) On the ESX host, Configuration tab, select Storage Adapters once again and click Rescan.

13) 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 SAN storage, you should see two paths per LUN.  If the numbers don't add up, verify on your SAN that the ESX software initiator was able to log in to both iSCSI targets successfully.

14) Now, on the Configuration tab click Storage and Add Storage.  You will now see the iSCSI LUNs available to create VMFS datastores.

Good luck!
2
Comment
Author:Justin C
1 Comment
 

Expert Comment

by:IT_Group1
Very nice article! Thx
0

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Join & Write a Comment

Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month