NFS Services Administrator's Guide (B1031-90072, March 2011)
4. Before retrying the mount that caused the program to hang, wait for a short while, say
two minutes.
5. If the problem persists, restart rpc.statd and rpc.lockd daemons and enable tracing.
Data is Lost Between the Client and the Server
□ Make sure that the directory is not exported from the server with the async option. If the
directory is exported with the async option, the NFS server will acknowledge NFS writes
before actually writing data to disk.
□ If users or applications are writing to the NFS-mounted directory, make sure it is mounted with
the hard option (the default), rather than the soft option.
□ If you have a small number of NFS applications that require absolute data integrity, add the
O_SYNC flag to the open() calls in your applications. When you open a file with the O_SYNC
flag, a write() call will not return until the write request has been sent to the NFS server
and acknowledged. The O_SYNC flag degrades write performance for applications that use
it.
□ If multiple NFS users are writing to the same file, add the lockf() call to your applications
to lock the file so that only one user may modify it at a time.
If multiple users on different NFS clients are writing to the file, you must also turn off attribute
caching on those clients by mounting the file with the noac mount option. Turning off attribute
caching degrades NFS performance.
For more information, see mount(1M), open(2),write(2), and lockf(2).
“Too Many Levels of Remote in Path” Message
This message indicates that you are attempting to mount a directory from a server that has
NFS-mounted the directory from another server. You cannot “chain” your NFS mounts this way.
You must mount the directory from the server that has mounted its directory on a local disk.
Common Problems while using Secure NFS with Kerberos
“Permission Denied” Message
This message could be displayed because of one of the following reasons:
• The Ticket Granting Ticket (TGT) has expired
To renew the ticket, enter the following command:
kinit username
• Fully qualified hostname resolution problem
To verify the hostname resolution, check the following files:
◦ /etc/nsswitch.conf
◦ /etc/hosts
To provide a fully qualified host name, do the following:
◦ Add dns in the host entry in the /etc/nsswitch.conf
◦ Re-configure NIS and /etc/hosts
• Time mismatch of 5 minutes between Kerberos server and Kerberos client
HP recommends that you run time server to synchronize the time between client and server.
98 Troubleshooting NFS Services