Setting up iSCSI volumes in Openfiler

openFilerOnce you've installed and configured some iSCSI volumes, you will need to make them accessible to your other systems.  Log on to your Openfiler SAN Management console to get started.


Volumes

When creating new volumes make sure that you create at least one of type iSCSI.

 

Enable iSCSI service

  1. Go to Services > Manage Services.
  2. Click Enable for the iSCSI target server service.

 

Add new iSCSI target

  1. Go to Volumes > iSCSI Targets.
  2. Select the Target Configuration tab (it's normally selected by default).
  3. In the Add new iSCSI Target section, click Add.
    1. Note:  You can use the default name that's allocated.
  4. Repeat steps above to create more.

 

Configuring iSCSI target settings

You will now have a list of settings for each iSCSI target.  Here are some of the changes that I like to make.

  1. In the Select iSCSI Target section, select your iSCSI target from the drop-down and click Change.
    1. InitialR2T:  Setting it to No may improve performance.
    2. ImmediateData:  (with InitialR2T set as No) set this to Yes to improve performance.
    3. Click Update.

 

LUN Mapping

You now need to map a LUN to your iSCSI target.

  1. Go to Volumes > iSCSI Targets.
  2. Select the Target Configuration tab.
  3. In the Select iSCSI Target section, select the iSCSI target that you want to work on from the drop-down and click Change.
  4. Select the LUN Mappingtab.
    1. In the Map New LUN... section you should see the iSCSI volume that you created previously.
    2. R/W Mode:  Select from the drop-down.
      1. write-thru if SAN isn't protected by UPS.
      2. write-back if SAN is UPS protected.
      3. read-only for read-only access to this LUN.
    3. Transfer Mode:  You will usually need the default of blockio.
  5. Click Map.

 

Network ACL

Before you perform these steps, confirm that you have configured access to the SAN.

    1. Go to Volumes > iSCSI Targets.
    2. Select the Network ACL tab.
    3. From the list of hosts/networks select Allow.
    4. Click Update.

       

      CHAP Authentication

      This is the Challenge Handshake Authentication Protocol.  It provides a security level of access to the iSCSI target.

      1. Go to Volumes > iSCSI Targets.
      2. Select the CHAP Authentication tab.
      3. Enter a Username and Password.
      4. User Type:  (Incoming User is probably sufficient).
        1. Incoming User:  One-way CHAP, (target authenticates initiator).
        2. Outgoing User:  Two-way CHAP (target authenticates initiator, and initiator authenticates target).

       

      You can now connect to this iSCSI target for use in your ESXi server.

       

      Thanks for visiting.