Installing NFS: Linux NFS and Automounter Administration
Installing NFS: Linux NFS and Automounter Administration
Listing 9.2 shows that the Network File System includes several different daemons and
services to perform client and server functions. Additionally, the Red Hat 7.2 distribution has
multiple startup scripts in the /etc/rc.d/init.d directory that relate to NFS:
nfs This script starts most of the NFS daemons. It also processes the exports file,
and clears the lock file. The exports file and the exportfs command that is used to
process it are covered later in this chapter.
nfslock This script starts the NFS lock management software lockd and rpc.statd.
netfs This script mounts the NFS filesystems listed in the /etc/fstab file. Red Hat
also uses this script to mount SMB filesystems. (SMB, the mount command, and
fstab are covered later in this chapter.) Some other Linux systems don't use a
separate script for this purpose; instead, they rely on the mount a command to
mount everything in the fstab file. The Red Hat approach mounts filesystems that
require the network separately from filesystems that don't need a functioning network
connection to ensure that network problems do not delay the mounting of local
filesystems.
amd This script starts the automounter daemon (amd) that automatically mounts
filesystems when the files they contain are accessed. (For a definitive, booklength
treatment of amd, see Linux NFS and Automounter Administration, by Erez Zadok,
Sybex, 2001.)
autofs This script starts the automounter filesystem (automount) that automatically
mounts files when they are needed, and dismounts them when they are not in use.
automount and amd are two different implementations of an automounter.