[How to] iSCSI on SuperMicro E300 with QNAP

For this one I used, in terms of:

  • hardware:
    • SuperMicro SuperServer SYSE300-8D
    • QNAP TS-563 (4.2.2 Build 20160823) AMAZON ref. link
    • Netgear ProSafe GS108Tv2 (Boot Version B5.1.0.2 Software version 5.4.2.22) AMAZON ref. link
  • software
    • ESX 6.0 (VMware-VMvisor-Installer-6.0.0.update02-3620759.x86_64)
    • vCenter 6 (VMware-VIMSetup-all-6.0.0-3634788)

Networking

  • log in to admin UI of the switch
  • go to Switching / VLAN2016-08-23 19_59_57-NETGEAR GS108T
  • fill in the field under VLAN ID and VLAN Name2016-08-23 20_00_36-NETGEAR GS108T
  • click on Done (bottom of the screen)
  • newly added entry show be listed now2016-08-23 20_01_05-NETGEAR GS108T
  • go to Switching / VLAN / Advanced / VLAN Membeship2016-08-23 20_07_46-NETGEAR GS108T
  • select previously configured VLAN ID from the droplist2016-08-23 20_08_47-NETGEAR GS108T
  • click on PORT and select which port you’d like to assign this VLAN (after you select the port it’s either T(agged) or U(untagged), in my case I will be using Tagged on port 4 and 52016-08-23 20_10_09-NETGEAR GS108T
  • once done click on Apply (bottom of the screen)

Storage

In my case I’m using QNAP NAS which has 2 network interfaces:

  • 1st is for general access and applications
  • 2nd is for iSCSI
    • make sure the iSCSI service in running on the interface2016-08-23 20_26_23-nas
    • also you can enable jumbo frames (I chose MTU of 9000) System Settings / Network / Network & Virtual Switch / Intefaces / [Interface] and edit:2016-08-23 20_31_59-nas
    • configure storage pool (RAID_what_ever_you_like), I used just one disk because I can2016-08-23 20_37_36-nas
    • go to Storage Manager / iSCSI / iSCSI Storage, if you are doing it for the first time you’ll see the the following popup (click on Yes)2016-08-25 20_13_20-nas
    • select 1st option – iSCSI Target with a mapped LUN and click on Next2016-08-25 20_24_32-nas
    • click on Next
      2016-08-25 20_26_19-nas
    • name the target and check all optional CRC/Checksum items, click on Next2016-08-25 20_30_35-nas
    • I skipped configuring MSCHAP, so if you feel the same way just click on Next2016-08-25 20_32_42-nas
    • since I’m using single volume I select first checkbox, for your production needs make sure you select the second one which points to the storage pool, click on Next2016-08-25 20_35_50-nas
    • since I’m all about speed I selected Instant Allocation, capacity was “Set to Max”; from Advanced settings I did not checked 4K because it doesn’t work with my current build of ESX but no problems with Report volatile… and FUA bit. Click on Next 2016-08-25 20_39_29-nas
    • if you like what you see click on Next if not go back and amend2016-08-25 20_41_28-nas
    • click on Finish
    • now you configured the iSCSI target, by clicking on arrow on the left to LUN0 you will see a iSCSI LUN already mapped to the target
    • as a optional step you may want to configure iSCSI ACL (see the button), since I use the following default policy2016-08-25 20_53_31-nas
    • which is basically R/W to the LUN2016-08-25 20_54_25-nas
    • one last thing I did was to set up iSNS for easy discovery, click on Settings2016-08-27 19_01_40-nas
    • check the checkbox and type in the IP (same as the one that is bound to iSCSI service) and click on Apply2016-08-27 19_03_09-nas

Compute

  • head on over to the vSphere side of things (I use vCenter) to configure iSCSI adapter, mount the LUN and create a datastore over iSCSI
  • I’m using HTML (almost) Web Client2016-08-25 21_14_20-vSphere Web Client
  • go to Hosts and Clusters / [select the ESXi] / select Manage then Networking then Virtual Switch and Click on Add host netwroking2016-08-25 21_19_12-vSphere Web Client
  • select VMkernel Network Adapter2016-08-25 21_20_14-vSphere Web Client
  • select New standard switch2016-08-25 21_21_02-vSphere Web Client
  • select Add adapters
  • select the NIC that has connection to the iSCSI VLAN, in my case it was vmnic22016-08-25 21_23_04-vSphere Web Client
  • review and click on Next2016-08-25 21_24_05-vSphere Web Client
  • name it and provide VLAN ID, click on Next2016-08-25 21_26_19-vSphere Web Client
  • address the NIC in order to have L3 connectivity with a iSCSI service hosted on QNAP, click on Next2016-08-25 21_28_31-vSphere Web Client
  • review if fine then click on Finish2016-08-25 21_29_49-vSphere Web Client
  • edit the newly created vSwitch 2016-08-25 21_47_06-vSphere Web Client
  • type in the MTU size, in my case I used 9000 then click on OK2016-08-25 21_48_04-vSphere Web Client
  • on the same vswitch click on vmk and select edit
  • from the NIC settings type in MTU size and click on OK2016-08-25 21_52_27-vSphere Web Client
  • select storage under Manage Tab and click on Add new storage adapter 2016-08-25 21_54_43-vSphere Web Client
  • select iSCSI adapter 2016-08-25 21_55_54-vSphere Web Client
  • click on OK 2016-08-25 21_56_54-vSphere Web Client
  • you should see new Storage adapter, if not click on this refresh icon located on the top 2016-08-25 21_57_45-vSphere Web Client
  • once selected just below you should see the details, the adapter should be enabled2016-08-25 21_59_49-vSphere Web Client
  • select Network Port Binding, you should see here a iSCSI port group 2016-08-25 22_01_52-vSphere Web Client
  • select Targets, since I enabled autodiscovery on the QNAP it was discovered on ESXi just fine2016-08-25 22_02_54-vSphere Web Client
  • go to Advanced Options and make sure Header and Data Digest options are Preffered if not Edit them2016-08-25 22_05_56-vSphere Web Client
  • head back to Home and select Storage2016-08-25 21_31_53-vSphere Web Client
  • then pick either Datacenter or Cluster object; from Actions drop menu select  Storage and New datastore2016-08-25 21_34_06-vSphere Web Client
  • click on Next2016-08-25 21_43_00-vSphere Web Client
  • select VMFS2016-08-25 21_43_48-vSphere Web Client
  • you should see you LUN presented, select it, name it and click on Next2016-08-27 18_28_35-vSphere Web Client
  • if you don’t see it click on Cancel and select Actions – Storage – Rescan Storage2016-08-27 18_30_36-vSphere Web Client and then scan for both Storage Devices and VMFS Volumes2016-08-27 18_31_32-vSphere Web Client
  • I’m using all space on the LUN so I just click on ok2016-08-27 18_34_14-vSphere Web Client
  • review if fine then confirm by clicking on Finish2016-08-27 18_35_10-vSphere Web Client
  • the datastore is defined, formatted and usable, congratulations2016-08-27 18_36_32-vSphere Web Client
2018-05-24T22:31:09+02:00