|
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 users directory with /export/users :
To survive a reboot, the mount can be added into /etc/fstab
In /etc/default/nfs-kernel-server we set:
In /etc/default/nfs-common on both the server and the client
Restart /etc/init.d/nfs-common on both the server and the client:
Export the directories on the server: in /etc/exports, put
You can keep /home/exports desktop01(rw) for NFSv3 in /etc/exports.
On the client, create a mounting point and mount the directory from the NFSv4 server:
See mounted directories
Check the file system types
On the 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:
Re-export the filesystems by running command exportfs 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");
?>
|