Overview

NFS allows for sharing a directory between two or more servers. It is needed in case you want to share files between servers.

Set up NFS Server

Setting up NFS server is rather simple, you have to:

Create Directory

Edit /etc/exports

Reload the exports

So let's get started:

Once you create the directory, you have to edit the export file:

And reload the export rules:

Set up NFS Client

On the client we have to do practically following:

Edit /etc/fstab

Mount the NFS

And Mount the file system:

Errors

Errors which you can have is:

This means that the header isn't correct, there are 2 ways to resolve this:

umount/mount

In case you use XFS anywhere in the configuration, edit the /etc/exports as follows

Refresh the export rules and try to mount on the client:

Edit the /etc/exports

Check for possible problems

You can check if there are problems with the mount using verbose mode: