NFS Services Administrator's Guide HP-UX 11i version 3
Improving NFS Client Performance
□ For files and directories that are mounted read-only and never change, set the actimeo
mount option to 120 or greater in the /etc/fstab file on your NFS clients.
□ If you see several “server not responding” messages within a few minutes, try doubling
the value of the timeo mount option in the /etc/fstab file on your NFS clients.
□ If you frequently see the following message when attempting access to a soft-mounted
directory,
NFS operation failed for server servername: Timed out
try increasing the value of the retrans mount option in the /etc/fstab file on the NFS
clients. Or, change the soft mount to an interruptible hard mount, by specifying the hard
and intr options (the defaults).
□ Enter the following command on the NFS server, to find out the block size of the server’s
filesystem:
/usr/sbin/tunefs -v devicefilename
On the NFS clients, set the wsize and rsize mount options to the bsize value displayed
by tunefs.
□ On the NFS clients, look in the /etc/fstab file for “stepping-stone” mounts (hierarchical
mounts), as in the following example:
thyme:/usr /usr nfs defaults 0 0
basil:/usr/share /usr/share nfs defaults 0 0
sage:/usr/share/lib /usr/share/lib nfs defaults 0 0
Wherever possible, change these “stepping-stone” mounts so that whole directories are
mounted from a single NFS server.
Stepping-stone (hierarchical) mounts, like the one in the example above, cause more NFS
requests than mounts from a single server. In the example, if a client wants access to
something in /usr/share/lib, a request must be sent to server thyme, then to server
basil, and finally to server sage.
For more information on the stepping-stone mounts, see “Changing the Default Mount
Options” (page 40).
Logging and Tracing of NFS Services
This section tells you how to start the following tools:
• “AutoFS Logging”
• “AutoFS Tracing”
• “Logging for the Other NFS Services”
• “Logging With nettl and netfmt”
• “Tracing With nettl and netfmt”
Logging for the Other NFS Services
You can configure logging for the following NFS services:
• rpc.rexd
• rpc.rstatd
• rpc.rusersd
• rpc.rwalld
• rpc.sprayd
Logging is not available for the rpc.quotad daemon.
Logging and Tracing of NFS Services 103