NFS Services Administrator's Guide (B.11.31.02) January 2008
Following are the tasks involved in configuring and administering an NFS client.
• Configuring the NFSv4 Client Protocol Version (Optional)
• “Deciding Between Standard-Mounted Directories and Automounted Directories” (Required)
• “Enabling an NFS Client ” (Required)
• “Mounting Remote Directories ” (Required)
• “Changing the Default Mount Options” (Optional)
• “Unmounting (Removing) a Mounted Directory” (Optional)
• “Disabling NFS Client Capability” (Optional)
Configuring the NFSv4 Client Protocol Version
IMPORTANT: The nfsmapid daemon must be running on both the NFS server and the client
to use NFSv4. For more information on how to configure the NFSv4 server protocol version, see
“Configuring the NFSv4 Server Protocol Version ” (page 24).
By default, the version of the NFS protocol used between the client and the server is the highest
one available on both systems. On HP-UX 11i v3, the default maximum protocol version of the
NFS server and client is 3. The default minimum protocol version of the NFS server and client
is 2.
To configure the NFS client to enable it to mount filesystems using protocol version 4 (NFSv4),
follow this step:
Set the value of the NFS_CLIENT_VERSMAX variable to 4 in the /etc/default/nfs file, as
follows:
NFS_CLIENT_VERSMAX = 4
The NFS_CLIENT_VERSMAXvariable specifies the maximum version of the NFS protocol for
communication.
You can also configure the client protocol version to NFSv4 by specifying vers=4 while mounting
the directory. For example, to set the client protocol version to NFSv4 while mounting the
/usr/kc directory, enter the following command:
mount -o vers=4 serv:/usr/kc /usr/kc
For more information on NFSv4, see nfsd(1m), mount_nfs(1m), nfsmapid(1m), and nfs4cbd(1m).
Deciding Between Standard-Mounted Directories and Automounted Directories
Before you mount any remote directories on a local system, decide whether you want each
directory to be standard-mounted or automounted. You can automount directories using AutoFS.
For more information on AutoFS, see Chapter 3: “Configuring and Administering AutoFS”
(page 53).
Table 2-7 lists the differences between the Standard-Mounted and the Automounted directories.
Table 2-7 Standard-Mounted Versus Automounted Directories
Automounted Directory (Using AutoFS)Standard-Mounted Directory
Automounted directories stay mounted until they are left idle
for 10 minutes. The 10 minute time interval is the default value
and is configurable.
The directory stays mounted. You do not have to
wait for it to be mounted after you issue a read or
write request.
A directory automounted with AutoFS is not mounted until
a user or a process requests access to it. As a result, both your
system and the NFS server are able to complete the boot
process before attempting to mount the directory.
If a directory is configured to be standard-mounted
when your system boots, and the NFS server for the
directory is not booted yet, system startup is delayed
until the NFS server becomes available. If your
system and the server are configured to mount
directories from each other at boot time, standard
mounts can cause both systems to hang indefinitely.
Configuring and Administering NFS Clients 39