I’ve been asked several times how and why I setup my home lab to use NFS on my Synology NAS and thought a post detailing the steps would be best. First the why, when I purchased my Synology DS412+ about two years I recall seeing several people stating NFS was out performing iSCSI (like this post) on the Synology. It was strictly from reading other peoples findings that I started with NFS and have continued to use NFS without any issue. In fact I’ve been very happy with my DS412+ in a RAID 10 setup.
How I setup NFS on the Synology for my ESXi homelab is pretty simple as well.
Configuring Synology NFS access
- Log into the Synology DiskStation and go to: Control Panel > File Services – located under “File Sharing”.
- NFS is disabled by default so we need to enable it first. Expand NFS Services and check “Enable NFS” and click on Apply.
- From the Synology control panel to go “Shared Folder”. A name is the only required step, but I like to give it a description and hide the shared folder from my network places as well as hide files from users without permission. Then click on Ok.
- Once your folder has been created, go to the “Permissions” tab and change all users except your admin account to have “No Access“.
- Then change to the “NFS Permission” and click on Create and type the hostname or IP address of your ESXi host, then click Ok.
- After you have clicked on “Ok” from the step above you will be taken back to the “Edit Shared Folder (FOLDER NAME)”, you can either click on “Create” to add permissions for another ESXi host if needed or click on “Ok” if not, before clicking on “Ok” to close the window be sure to make note of the “Mount Path“.
That completes the steps on the Synology side of things. You will want to repeat Steps 3 – 6 for each additional NFS share you wish to create. Next we need to add the datastore to the ESXi host.
Note: The above steps was completed using DSM version 5.1-5022 Update 1, your steps may vary if running a different version.
Add NFS datastore(s) to your VMware ESXi host
- Log into the VMware Web Client.
- Under Inventors click on “Hosts and Clusters”.
- Right click on your cluster name and select “New Datastore“.
- For Type, select “NFS” then click on Next.
- Give the NFS datastore a name, type in the IP of your Synology NAS, and for folder type in the “Mount Path” you took note of from step 6 above then press Next.
- Under Host accessibility, select which host(s) you want to add the new NFS datastore then press Next.
- Finally press Finish.
That’s it, quick and easy!
You will may also want to install the Synology NFS VAAI plugin if you haven’t already. This will enable the ability to create thick disks as well as improve cloning tasks.