| |
Exercises with NFSv4
NFSv4 exports exist in a single pseudo filesystem, where the real directories are mounted with the --bind option.
Create the export filesytem on the NFS server (the node machine):
Create and mount the real user home directory onto /export/users with
--bind option:
To survive a reboot, the mount can be added into /etc/fstab
In /etc/default/nfs-kernel-server on the NFS server, we set:
In /etc/default/nfs-common on both the NFS server and the client
Stop statd on both the NFS server and the client:
Export the directories from the NFS server to the client by
placing the following content in /etc/exports on the NFS server:
Note, you can keep the old NFSv3 related entries in /home/exports on the server, such as "/home/exports desktop01(rw)"
Restart the NFS on the server:
On the client, create a mounting point and mount the directory from the NFSv4 server:
See the mounted directories
Check the mounted file system types
On the NFS server (node), add two directories, /usr/share/doc and /var/log, to the shared file system name space:
Modify /etc/exports by adding the export entries for these directories on the NFS server:
Re-export the filesystems by running command exportfs on the NFS server as follows:
On the client (desktop), re-mount the NFS file system:
See the content of /home/NFSv4
References:
NFSv4Howto on Ubuntu
Configuring a NFSv4 Server and Client on SUSE Linux Enterprise Server 10
include("right-side-menu.inc");
?>
|