NFS Services Administrator's Guide (B1031-90072, March 2011)
/usr/sbin/mount
2. For every NFS-mounted directory listed by the mount command, enter the following
command to determine whether the directory is currently in use:
/usr/sbin/fuser -cu local_mount_point
This command lists the process IDs and user names of everyone using the mounted
directory.
3. Warn any users to cd out of the directory, and kill any processes that are using the
directory, or wait until the processes terminate. Enter the following command to kill all
processes using the directory:
/usr/sbin/fuser -ck local_mount_point
4. Enter the following command on the client to unmount all NFS-mounted directories:
/usr/sbin/umount -aF nfs
5. Enter the following commands to restart the NFS client:
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.client start
A Program Hangs
□ Check whether the NFS server is up and operating correctly. If you are not sure, see “NFS
“Server Not Responding” Message” (page 93).
If the server is down, wait until it comes back up, or, if the directory was mounted with the
intr mount option (the default), you can interrupt the NFS mount, usually with CTRL-C.
□ If the program uses file locking, enter the following commands (on either the client or the
server) to make sure rpc.statd and rpc.lockd are available and responding to RPC
requests:
/usr/bin/rpcinfo -u servername status
/usr/bin/rpcinfo -u servername nlockmgr
/usr/bin/rpcinfo -u clientname status
/usr/bin/rpcinfo -u clientname nlockmgr
If any of these commands return RPC_TIMED_OUT, the rpc.statd or rpc.lockd process
may be hung. Follow these steps to restart rpc.statd and rpc.lockd daemons:
1. Enter the following commands, on both the NFS client and the NFS server, to kill
rpc.statd and rpc.lockd (PID is a process ID returned by the ps command):
/usr/bin/ps -ef | /usr/bin/grep rpc.statd
/usr/bin/kill PID
/usr/bin/ps -ef | /usr/bin/grep rpc.lockd
/usr/bin/kill PID
2. Enter the following commands to restart rpc.statd and rpc.lockd on both the client
and the server:
/usr/sbin/rpc.statd
/usr/sbin/rpc.lockd
NOTE: Always start rpc.statd before starting rpc.lockd.
3. Enter the following commands to verify that rpc.statd, rpc.lockd, and nfsd are
all running and responding to RPC requests:
/usr/bin/rpcinfo -u servername status
/usr/bin/rpcinfo -u servername nlockmgr
/usr/bin/rpcinfo -u servername nfs
/usr/bin/rpcinfo -u clientname status
/usr/bin/rpcinfo -u clientname nlockmgr
/usr/bin/rpcinfo -u clientname nfs
Common Problems with NFS 97