I was going to do a post on NFS versus iSCSI, to be honest that is such old hat in my opinion it doesn’t really matter. Whether you use iSCSI or NFS is up to you, your application and business requirements along with any constraints in your infrastructure that may force you to lean one way or another. Since I am an NFS networking ninja, clearly I am going to go the NFS route. Let’s get started on setting up NFS, if you are not already log into your Synology DSM.
- Click on the main menu button on the upper left and open Control Panel
- Click on the File Services icon
- I have no need for CIFS or AFP at this time so I am going to disable those; expand the Windows File Service section and uncheck Enable Windows File Service; repeat for Mac File Service
- Expand NFS service and check enable NFS
- Click the Apply button
- In the left navigation window click on Shared Folder
- Click the create button
- Provide the necessary details for your folder I am naming my folder vxprt-silver01-ds01 which will be on the SATA drives; click OK
- Click on the NFS permissions tab and click the Create button
- In the hostname/IP field enter the range for your ESXi hosts, in my case its all the same network so 192.168.0.0/16
- Click OK twice
- Make note of the mount path value, we'll need that later
- Repeat for the folder on the SSD volume, I am naming htis folder vxprt-gold01-ds01
- You should now have two folders created
Next I need to connect to my NFS share from the ESXi hosts. Typically I’d have NFS on its on VLAN, but sans a switch in my home lab to VLANs it will be riding with all my other network traffic.
- Log into the vCenter Web Client
- Click on vCenter >> Hosts and Clusters
- Select your cluster, click on the Related Objects tab >> Datastores
- Click the icon to add a new datastore, click Next
- Select next NFS and click Next
- Enter the datastore name, in my case vxprt-silver01-ds01
- Enter the server IP address and the path you note in the previous section, in my case /volume1/vxprt-silver01-ds01 - click next
- Select both/all hosts in the cluster you want to have access and click next then finish
The datastore should now be available on both hosts (Click on the host >> related objects >> datastores) as seen below. Repeat for the gold datastore.
Now that the datastores are created, I am going to create an “ISO” folder on the silver datastore to hold my linux ISOs and build virtual machines in vCenter.