NFS stands for Network File System. It is the traditional and most popular file shared method for the Linux and Unix system. However, in the latest version of Windows servers, now you can also configure NFS in Windows Servers. These NFS shared folder can be then used to share files and data between NFS server and NFS clients. The client may be either a Windows machine or a Linux machine. In this post, we will explain how to install and configure NFS in Windows Server 2016. To do so, we will use a server named Server2 that runs Windows Server 2016 and will act as NFS server.
Installing NFS in Windows Server 2016
The installing process of NFS server pretty simple. To install the NFS service in Windows server, you need to perform the following steps:
- Launch the Add roles and features wizard on your server.
- Navigate to the Select server roles page, expand File and Storage Services, expand File and iSCSI Services, and then select the Server for NFS check box.
- Click Next until the confirmation page appears. Click Install and complete the installation process.
Creating an NFS Shared Folder
After installing the NFS on your server machine, the next step is to configure NFS server. For this, either create a new folder or use an existing folder that you want to share.
- Select and right-click the desired folder ad then select Properties.
- Select the NFS Sharing tab, click the Manage NFS Sharing button.
- On the NFS Advanced Sharing dialog box, select the Share this folder check box and then click the Permissions button.
- On the NFS Share Permissions dialog box, select the permission from the Type of access drop-down list. If you want to allow root user to access the NFS shared folders, select the Allow root access check box.
- By default, any client can access the NFS shared folder. If you want to control or limit the specific clients, click the Add button and type the client’s IP address or hostname(s).
- Click OK button and close the NFS properties dialog box.
Mounting NFS Shared Folder on Windows Client
Now, your NFS server is ready to provide NFS services. To test your configuration, mount the created NFS Shared folder on a Windows or Linux client. To mount the NFS shared folder on the Windows client, you need to perform the following steps:
- Install the Client for NFS feature using the Program and Features wizard of Control Panel.
- After installing the required service. Execute the following command to mount the NFS shared folder on a Windows client.
mount –o \\<NFS-Server-IP>\<NFS-Shared-Folder> <Drive Letter>:
- For example, to mount an NFS shared folder named NFS_Share1 of the NFS Server that is configured with 192.168.1.100 IP address, execute the following command. The folder should be mapped on the Z drive.
mount –o \\192.168.1.100\NFS_Share1 Z:
Mounting NFS Shared Folder on Linux Client
NFS it typically used with Linux/Unix systems. You can access the NFS shared folders configured on a Windows Server from the Linux machines. To mount an NFS shared folder on a Linux machine, use the following command syntax.
mount –t nfs <NFS-Server-IP>/<NFS-Shared-Folder> /<Mount-Point>
For example, to mount an NFS shared folder named NFS_Share1 of the NFS Server that is configured with 192.168.1.100 IP address, execute the following command. The folder should be mapped on the /data mount point.
mount –t nfs 192.168.1.100/NFS_Share1 /data
In this post, we have explained how to install and configure NFS in Windows Server 2016. Hope, you enjoyed it. Please drop your queries in the comment box.