CentOS 7Installation Post installation tasks Join Active Directory SELinux Configuration Install Cockpit Create a Logical Volume (1) Create a Logical Volume (2) Creating an iSCSI Target (1) Creating an iSCSI Target (2) Creating an iSCSI Client Installing a Samba Server Installing an Apache Server Installing an NFS Server Installing a TFTP Server
Debian 8Installation Post installation tasks Join Active Directory Installing an Apache Server Installing a Samba Server
Ubuntu 16Post installation tasks Join Active Directory Installing Apache/Samba Servers
Linux Commandsfdisk + LVM htop vi - line numbering
Until I started with Citrix XenServer I had not come across NFS, on reading about this file level sharing system I now know why! Having been a Windows person it was only with the launch of Windows 7 (Enterprise/Ultimate versions) that Microsoft introduced Services for NFS and the Client for NFS. So if you have Windows 8.1 and later you can use NFS rather than SMB (Samba), my research suggests that NFS wins in benchmark tests over SMB, especially with small to medium file sizes.
The following are the steps necessary to set up an NFS Server on CentOS 7.
Firstly let's install the packages that are needed.
Depending on your install of CentOS 7 (minimum or other) these packages may already be installed, no problem they will not be reinstalled.
Open the idmspanapd.conf and uncomment line 5 and change it to your domain name
Domain = example.com
This was a new install of CentOS 7 and I had already created a mount called /nfs using 2 x 1 TB drives so I had no need to create or mount an nfs file share folder. All that was necessary was to change the permissions of the share as follows:
Now we must modify the exports file, this was a new install and the file was empty so we can add the following entry
where xx.xx.xx.0 is the is the client network, eg. server is 10.0.0.10 and the clients are 10.0.0.11 and 10.0.0.12
The changes made in the exports file must be saved by creating an NFS table that holds the exports of your shares using the following command
Make sure that rpcbind (required for import/export of NFS shares) and nfs-server are started and also enabled at boot
As usual we must configure the firewall
To configure the windows machines to mount the NFS file shares you must install the Client for NFS. On Windows Server it is achieved through Add Roles and Features and on Windows 7, 8 and 10 it is through Control Panel→Programs→Turn features on or off.