One of my ESXi hosts recently ran out of disk space. There was nothing I could really move off it, I couldn’t add more drives (bays are full, and current drives are part of a RAID config), so I decided to put my Synology NAS to good use.

Notes:

  • Enabling MPIO for VMware environments is best done by a VCP for best performance of the ESXi Hypervisor communicating with the iSCSI Target.
  • Please make sure that an iSCSI Target has been created on the DiskStation and is ready for use.
  • Proceed to the iSCSI Target Advanced Options of the Synology DiskStation and enable Allow multiple sessions from one or more iSCSI Initiators
    • The preceding direction may skipped for non-MPIO Environments
  • It’s strongly recommended to use MPIO with separate networks (or different subnets) – with multiple network cards to be installed on the iSCSI Initiator and Target. Usage of MPIO is recommended for experienced network administrators only.
  • On the iSCSI Initiator – its best to reserve network cards for storage duties only, and they cannot be used for any other purpose – such as a Virtual NIC for Hypervisors.
  • MPIO is only applicable to Synology DiskStations which feature at least two network ports, such as the DS1010+ or the RS810+.

Preparing the ESXi Hypervisor for multiple NIC Usage

Overview: This section will guide the administrator in setting up the ESXi Hypervisor to use two NICs for MPIO

  • This section may skipped for non-MPIO Environments
   

Step 1:

  • Open the vSphere Client and proceed to Configuration, Networking and click Add Networking
ISCSI-mountVmware-01.png

Step 2:

  • Select VMKernel and click Next
ISCSI-mountVmware-02.png

Step 3:

  • Create a new network switch and select a NIC located on another subnet
ISCSI-mountVmware-03.png

Step 4:

  • Enter a new name for this new network and click next
ISCSI-mountVmware-04.png

Step 5:

  • Enter an IP Address and Subnet address for this secondary NIC and click next
ISCSI-mountVmware-05.png

Step 6:

  • Final Confirmation Settings
ISCSI-mountVmware-06.png

Step 7:

  • The second network has been added to this Hypervisor
ISCSI-mountVmware-07.png

Step 8:

  • Repeat this process for each additional network to be added to the Hypervisor
 

Step 9:

 

Mounting the iSCSI Target on the ESXi Hypervisor

Overview: This section will guide the administrator in mounting iSCSI Targets on the Synology DiskStation to the ESXi Hypervisor.

   

Step 1:

  • Within the Configuration tab, click on Storage Adapters, select the iSCSI Software Adapter and click Properties
ISCSI-mountVmware-08.png

Step 2:

  • In this example, the iSCSI Initiator is disabled, click Configure to configure the settings of the iSCSI Initiator
ISCSI-mountVmware-09.png

Step 3:

  • Enable the iSCSI Initiator
ISCSI-mountVmware-10.png

Step 4:

  • Once the iSCSI Initiator is enabled, click on Dynamic Discovery
ISCSI-mountVmware-11.png

Step 5:

  • Enter the primary IP Address of the Synology DiskStation
ISCSI-mountVmware-12.png

Step 6:

  • If mounting for MPIO, enter the secondary IP address of the Synology DiskStation, located within the secondary subnet of the ESXi Hypervisor
    • The preceding direction may skipped for non-MPIO Environments
ISCSI-mountVmware-13.png

Step 7:

  • Rescan the Host Bus Adapter
ISCSI-mountVmware-14.png

Step 8:

  • The iSCSI Initiator has detected the target on the Synology DiskStation.
ISCSI-mountVmware-15.png

Step 9:

  • Right Click on the Target and click Manage Paths
    • The preceding direction may skipped for non-MPIO Environments
ISCSI-mountVmware-16.png

Step 10:

  • Select Round Robin (VMWare)
    • The preceding direction may skipped for non-MPIO Environments
  • Note that within the Path Management, that the ESXi Hypervisor is using two paths (via two subnets) to mount the same iSCSI Target.
ISCSI-mountVmware-17.png

Step 11:

 

Formatting the iSCSI Target for usage within the ESXi Hypervisor

Overview: This section of the article will guide the administrator in formatting the iSCSI Target for usage within ESXi Hypervisor

   

Step 1:

  • Within the Configuration tab, click on Storage, and click Add Storage
ISCSI-mountVmware-19.png

Step 2:

  • Select Disk/LUN and click Next
ISCSI-mountVmware-20.png

Step 3:

  • Find the iSCSI Target, and click Next
ISCSI-mountVmware-21.png

Step 4:

  • Review the current disk layout and click Next
ISCSI-mountVmware-22.png

Step 5:

  • Enter a new datastore name for this new storage.
ISCSI-mountVmware-23.png

Step 6:

  • Select a block size to use for this new storage
    • Using default settings is recommended
ISCSI-mountVmware-24.png

Step 7:

  • Final Confirmation Settings
ISCSI-mountVmware-25.png

Step 8:

  • The new datastore has been added…
ISCSI-mountVmware-26.png

Step 9:

  • …and is ready for use
ISCSI-mountVmware-27.png

Reference:
http://forum.synology.com/wiki/index.php/How_to_use_iSCSI_Targets_on_VMware_ESXi_with_Multipath_I/O

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s