top of page

Setup a Synology NAS with 10Gb Network Configuration for iSCSI

Today I setup on Synology DS1621+ NAS on my 10Gb Ethernet Network. This did require a bit of up front planning. I had to have a dual 10Gb card for the NAS, SFP+ cables, and a power drop for the NAS on my rack.


To help simplify my setup, I will setup 2 new VLANs for the NAS

I use Unifi network gear at my house. It works really good for my semi-enterprise lab.


Setup the the VLANs on my Unifi gear:

  1. I logged into my Dream Machine Pro User interface with admin rights (via https://unifi.ui.com/dashboard)

  2. I opened the Network App

  3. I browsed to the Settings > Networks area

  4. I created 2 new VLANs. This is especially important so that you have multiple connections from each VMware Host to your iSCSI/NFS Storage. Separating the storage network traffic via VLANs prevents network collisions. This is also called multipathing.


Create the Distributed Switch Port Groups:

I will add the VLANs to the distributed switch for use with VMkernel adapters that will be created on the VMHosts

  1. Login into your VCSA

  2. Go to Inventory > Network

  3. Select the Distributed Switch

  4. Click on Actions > Distributed Switch Port Group > New Distributed Port Group

  5. Set the Name of your Port Group. Mine is (17) iSCSI-HAMNAS04 (I like to put the VLAN in parentheses in the name of the port group to make it easy to understand the VLAN/IP Segment), and click Next

  6. Change the VLAN Type to VLAN, Modify the VLAN ID to your VLAN, and click Next

  7. Review the settings and click Finish

  8. Review the new Port Group

  9. Repeat Steps 4-8 for the 2nd VLAN.


Setup your Synology on Dedicated VLANs

I moved my Synology NAS off my desk and over to my rack, connected the power, and then connected the 10Gb ethernet connections via Twinax.

Steps I used to set static IPs for use with iSCSI/NFS

  1. Power on Synology NAS

  2. Use the find my NAS site to find the NAS on the new VLAN (I setup DHCP temporarily on this VLAN to make this easy, you can turn DHCP off on the VLANs post static IP assignment). http://find.synology.com/

  3. Log into the Synology NAS

  4. Click on Control Panel > Network > Network Interface

  5. Edit the connection you wish to setup

  6. Input the IP Address, Subnet mask, Gateway, DNS, MTU (9000 should always be set if you are doing iSCSI/NFS), and optionally a VLAN

  7. Click OK

  8. Repeat steps 5-7 for the other 10Gb Ethernet interface


Create Synology iSCSI Target and LUN

You will want to create your first iSCSI Target and LUN prior to setting up the VMHosts. This will allow you see the first LUN post VMHost configuration.

  1. Login to Synology NAS

  2. Click on SAN Manager > ISCSI > Add

  3. Click on Next (modify the Target Name if you wish)

  4. Select a new LUN > Click Next

  5. Type in the LUN Name, Select the Volume, Type in the Total Capacity (GB), Select if you want Thick or Thin provisioning (I always recommend Thin), and click on Next

  6. Confirm the configuration settings and click on Done

  7. Validate that the iSCSI Target is now Ready and Healthy

  8. Click on Edit > Advanced > Check the Allow multiple sessions box, and click on Save. This is very important so that all VMHosts in a cluster can see the same datastore.


Create the VMHost iSCSI Static Discovery/VMkernel Adapters

I will then create VMKernel adapters on each host to communicate on that network. Since I use Host Profiles, I will create the adapters on the Host Profile and then simply go add the IPs for each VMHost in the Host Profiles Customizations and then will simply remediate the hosts to have the configurations standardized for all VMHosts.


Modify your Host Profile:

  1. Login into your VCSA

  2. Click on the 3 bars in the left hand top corner > Policies and Profiles

  3. Click on Host Profiles

  4. Right Click on the Host Profile you are using > Click on Edit Host Profile

  5. Open the Synology Web interface and copy the iSCSI IQN for future use

  6. In the Host Profile, expand the iSCSI Initiator Config > Expand Software iSCSI > Expand vmhba64 > Expand Static Discovery > Click on the +

  7. Type in the IP address you set on the first port of the Synology (10.1.7.10 in my example)

  8. Copy the IQN to the Target IQN area

  9. Repeat 6-8 for the second IP (10.1.8.10)

  10. You may wish to hit save here, and then reopen the host profile for editing. If a host profile is opened too long, the config changes are timed out (something VMware needs to fix)

  11. Expand Networking configuration > Host virtual nic > Click on the +

  12. Add the name of the Distributed Switch, Port Group, and scroll down

  13. Add the VLAN, Network Policy, Active Uplinks, Standby Uplinks, and scroll down

  14. Add the name of the VMkernel adapter (vmk9), MTU

  15. Expand the new VMkernel port, click on the IP address section

  16. Set the IP Address Settings (usually change the IPv6 stuff to "User must explicitly choose the policy option)"

  17. Repeat Steps 11-16 for the other VLAN/Port Group

  18. Save the Host Profile

  19. Validate that the Host Profile saved successfully (shows Completed in the Recent Tasks)


Update Host Profile Customizations and Remediate

  1. Log into the VCSA if you are not presently

  2. Go to Inventory > Hosts

  3. Select a VMHost in the cluster (top down is how I do this)

  4. Click on Configure > Host Profile > Edit Host Customizations

  5. Find the new VMKernel Network settings, Host IPv4 address and Subnet Masks

  6. Fill in the new IPs/subnet for each VMKernel Adapter, then click OK

  7. After the host customizations have completed being updated (saved to the VCSA DB), Click on Remediate

  8. Click on Pre-Check Remediation (do this for your first host particularly, after this, you may just remediate)

  9. Wait for the precheck to complete, then click on Remediate again

  10. Uncheck the Auto Reboot check box and then click on Remediate

  11. After remediation is completed, click on Configure > VMKernel Adapters, Validate the new VMkernel adapters now exist.

  12. Click on Configure > Storage Adapters > vmhba64 (software adapter) > Static Discovery. Validate that the new iSCSI server and target are now listed.

  13. Click on Storage Adapters > Devices. Validate that the Synology iSCSI Disk now shows up (if you did things in this order and all networking is working this should show up). If it does not show up, do a storage rescan and check again. If not further troubleshooting may be needed.


Create the Datastore

Now that the LUN is showing up in the iSCSI Devices area, you can create the Datastore

  1. Login to the VCSA (if you presently are not)

  2. Select 1 host in the cluster

  3. Click on Actions > Storage > New Datastore

  4. Select VMFS and click on Next

  5. Type in the Datastore name, Select the Synology LUN, and click Next

  6. Select the newest version of VMFS (VMFS6 presently), and click Next

  7. Leave the Partition Configuration standardized, and click Next

  8. Validate your settings, and click Finish

  9. Click on Datastores for that Host. Validate that the new Datastore is now present

  10. Select the VMHost Cluster

  11. Right Click the Cluster > Storage > Rescan Storage

  12. Leave the defaults for the Rescan Storage and click OK

  13. Click on a VMHost > Configure > Storage Adapters > vmhba64 > Paths

  14. Validate that you have 2 paths to the Synology Datastore and that both are Active (I/O). If both are not active, you may need to run a script to setup the proper pathing policy.


Create Synology VMHost List

Now that all the VMHosts see the datastore, you will want to document in the Synology what each VMHost is (this will later be used to secure the LUN so that it is not accessed by anything else on the network).

  1. Login the Synology

  2. Go to SAN Manager > ISCSI

  3. Click on Create Host

  4. Click on Start

  5. Type in the name of the VMHost and click Next

  6. Select Read/Write Access (default) and click Next

  7. Validate the configuration and click Done

  8. Validate that the new VMHost shows on the Target Screen. There should be 2 listings for each host since there are 2 connections.


Set Synology iSCSI Access Permissions

Now that all of the VMHosts are registered, you will want to secure your iSCSI Target so that only these hosts can access it. This prevents other network users from accessing this iSCSI LUN.

  1. Click on LUN > Edit

  2. Click on Permissions

  3. Change Permissions to Custom

  4. Set all VMHosts to Read/Write

  5. Click on Cache

  6. Review if you want to turn on FUA and Sync Cache (probably a good idea) and click on Save



Single Post: Blog_Single_Post_Widget

Follow

  • twitter
  • linkedin

©2018 by Virtual-Russ. Proudly created with Wix.com

bottom of page