Frequently Asked Question
Virtualization: How to Use Port Binding to Configure Multipathing on VMware for Synology NAS?
Last Updated 4 years ago
OverviewNetwork quality of an iSCSI storage is crucial in deploying a VMware environment. To ensure the stability and performance of your Synology iSCSI storage, it is recommended that you use two or more dedicated physical network interfaces for the iSCSI traffic between your VMware host and Synology NAS. With multiple network ports, it is required to configure iSCSI MPIO (Multipath I/O) to achieve load balancing and high availability. One simple method for doing so is to configure port binding.
This article will guide you through the steps of configuring port binding and MPIO in VMware for Synology NAS.
1. Before You StartBefore you start to configure port binding, make sure you have completed the following tasks:
- Setting up Synology NAS
- Installing Synology DiskStation Manager (DSM, web-based operating system of Synology NAS)
- Creating iSCSI LUNs and Targets
- MPIO is only available on the Synology NAS with two or more network ports.
There are several prerequisites for configuring MPIO using port binding:
- An iSCSI Software HBA is used.
- All VMkernel ports used for iSCSI and Synology NAS ports are in the same local network and in the same IP subnet.
- All VMkernel ports are in the same vSwitch.
2. Allow multiple sessions from one or more iSCSI initiatorsThis section will guide the administrator to configure relevant settings on DSM's Storage Manager.
- On DSM, go to Storage Manger > iSCSI Target > Edit > Advanced.
- Select Allow multiple sessions from one or more iSCSI initiators.
- Click OK.
3. Assign One Active Network Adapter per Port GroupThis section will guide the administrator to assign one active network adapter (vmnic) to each port group on VMware vSphere Client 6.0. The administrator has to create multiple port groups for iSCSI (iSCSI-PG-A, iSCSI-PG-B) beforehand.
- In the host Manage tab, click Networking > Virtual Switches, and select the vSwitch that you want to edit from the list.
- On the vSwitch diagram, click on a port group and then click the "pencil" icon to edit it.
- On the Edit Settings wizard, click Teaming and failover.
- Check Override under Failover order.
- Keep only one physical adapter under Active adapters. Select all the other adapters and click the move down arrow to move them to Unused adapters.
- Repeat steps 2-5 for the other iSCSI VMkernel ports to ensure that each VMkernel port has its own unique active adapter. The resulted configuration should look similar to the diagram below.
4. Configure Port BindingThis section will guide the administrator to configure port binding on VMware vSphere Client 6.0.
- In the host Manage tab, click Storage > Storage Adapters.
- Under Adapter Details, click Network Port Binding and then click the green add button.
- Select the port groups that you want to bind. Click OK.
- Return to the Storage Adapters tab. Under Adapter Details, click Targets > Static Discovery > Add.
- Enter the iSCSI target's information to add the target.
5. Locate iSCSI LUN on VMware vSphere ClientThis section will guide the administrator to locate the Synology iSCSI LUN on VMware vSphere Client 6.0.
- In the host Manage tab, click Storage > Storage Devices, and select the iSCSI LUN from the list.
- Click the Properties tab, and then click > Edit Multipathing Policies under Multipathing Policies.
- Change the path selection policy from Most Recently Used to Round Robin.
6. Learn MoreFor more detailed information on port binding, please consult the following recourses:
- Considerations for using software iSCSI port binding in ESX/ESXi
- Configuring iSCSI port binding with multiple NICs in one vSwitch for VMware ESXi 5.x and 6.0.x
- Multipathing Configuration for Software iSCSI Using Port Binding