Nfs-utils

USE flags
The following USE flags are supported by package:

Configuration
This section explains how to setup a simple NFS server - NFS client configuration. The NFSv4 server configuration is mostly like configuring the version 3, with one major change all NFS shares are exported from one virtual root directory.

The server has 2 NFS shares which are:
 * - directory with user homes
 * - directory with example data

These 2 shares are mounted on the server system at following points in the tree:

The client uses now TCP protocol as default, to mount NFS shares. Previous NFS versions use UDP as the default protocol.

Linux
Verify if NFS version 4 is enabled in current running linux kernel, this has to be ensured on the server as well as on the client installations:

Optionally NFSv4 support could be build as a kernel module. After NFSv4 support has been enabled, new linux kernel needs to be build, installed and the system has to be restarted.

Server
A virtual NFS root directory needs to be created:

You can substitute the name and the location of the virtual root (here: ), with anything else f.e. or.

Create 2 directories in the directory for NFS shares:

Mount the shares to its mount points:

Add following 2 lines to file, so NFS shares will still be available after a system reboot:

NFS shares are configured in file. Specify the virtual root as the first entry, then define specific shares:

Troubleshooting
Verfiying NFS server is running and listening for connections:

Verifying which NFS specific daemons are running:

Verfiying current open connections to the NFS server:

For more specific examples refer to the official NFS troubleshooting section
 * http://nfs.sourceforge.net/nfs-howto/ar01s07.html

External resources

 * http://linux-nfs.org/
 * https://help.ubuntu.com/community/NFSv4Howto
 * http://www.gentoo-wiki.info/HOWTO_NFSv4