Definite guide to iSCSI with FreeNAS on ESX(i) – Part 3 – Configuring iSCSI on ESX 3.5 (standard vswitch)

Written by Pawel Lakomski on Październik 19th, 2012

This is Part 3 of the definite guide to iSCSI with FreeNAS on ESX(i). Make sure to check out the other parts as well.

1. Introduction
2. FreeNAS installation and configuration
3. Configuring iSCSI on ESX 3.5 (standard vswitch)
4. Configuring iSCSI on ESXi 5.1 (standard vswitch)
5. Configuring iSCSI on a distributed vswitch
6. Migrating iSCSI from a standard to a distributed vswitch

 

3. Configuring iSCSI on ESX 3.5 (standard vswitch)

Make sure your ESX server has got at least two NICs – if you’re doing this in the nested, virtual environment and you have created a virtual ESX with only one NIC, shut it down, add a new network card and start the server again. We will use one for management and the second for iSCSI configuration. You will probably want to use more NICs anyway (for VM traffic, VMotion, redundancy, etc.) but for this demonstration we will use only two NICs – vmnic0 (management) and vmnic1 (iSCSI).

After you have installed ESX 3.5, go to the Configuration tab and under Hardware click on Networking.  All you will see is one virtual switch (vSwitch0). First of all we will create a new vswitch for iSCSI traffic. In the upper-right corner click on ‘Add Networking…’.

Select VMkernel and click Next.

Select VMkernel

Select VMkernel

Select ‘Create a virtual switch’ (this option is available if you have at least one unassigned NIC) and select an uplink NIC to be used with your new vswitch. Click Next.

Adding an uplink tpo the vSwitch

Adding an uplink tpo the vSwitch

Now you will create a new portgroup on your new vswitch. Give it a meaningfull name (label) like ‘iSCSI’ for example. Configure VLAN (if necessary, if not – leave this field empty).

Setting IP configuration for VMkernel port

Setting IP configuration for VMkernel port

Click Next and then Finish. A new virtual switch called vSwitch1 is created.

New virtual switch

New virtual switch

Under Hardware click on Storage Adapters. And select iSCSI Software Adapter. Click on Properties.

Software iSCSI initiator

Software iSCSI initiator

The software initiator is disabled by default so click on Configure and enable it.

Enabling software adapter

Enabling software adapter

You will see the following message:

Service Console needs to be able to communicate with iSCSI storage too

Service Console needs to be able to communicate with iSCSI storage too

Here’s the thing – target’s discovery is done by the Service Console. That means that both ports: VMkernel (the one we created) and Service Console (already created on vSwitch0) must be able to communicate with iSCSI target (on the FreeNAS server). If you look on the screenshot above you will see that both Service Console and VMketnel port for IP storage are in the same subnet (as well as FreeNAS server of course) so they both will be able to communicate with the target. However, if your Service Console is in the different network (and it should be if it is a production environment in order to introduce traffic separation), you will need to create a second Service Console – on vSwitch1 – and assign it an IP address allowing it to discover the FreeNAS iSCSI target. In our case it is not necessary.

Let’s continue with the software initiator’s confiuration. Click on the Dynamic Discovery tab and click Add… Put the IP address and you configured on FreeNAS Target.

IP  and port of FreeNAS server iSCSI service (remember the portal in Part 2?)

IP and port of FreeNAS server iSCSI service (remember the portal in Part 2?)

You will be asked to rescan the HBAs. Click on Yes.

Rescan the host's HBAs

Rescan the host's HBAs

If all goes well, you will see the target device:

LUN presented on FreeNAS to ESX host

LUN presented on FreeNAS to ESX host

Now you can go on and create a new storage for ESX server on the LUN (VMFS or RDM).

 

2 Comments so far ↓

  1. Andy pisze:

    How do I see part 2 all the links seem to be dead!

  2. Serwer CSS pisze:

    Fajna Strona pozdrawiam Serdecznie

Leave a Comment