NFS Services Administrator's Guide
Configuring and Administering NFS
Configuring and Administering an NFS Client
Chapter 2 57
/usr/sbin/umount local_mount_point
If any user or process is using the remote directory, NFS cannot
unmount it and will issue an error message.
For more information, type man 1M mount or man 1M fuser at the
HP-UX prompt.
To Disable NFS Client Capability
1. On the NFS client, issue the mount(1M) command with no options, to
get a list of all the mounted file systems on the client:
/usr/sbin/mount
2. For every NFS-mounted directory listed by the mount command,
issue 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. You
can use the following command to kill all processes using the
mounted directory:
/usr/sbin/fuser -ck local_mount_point
4. Issue the following command on the client to unmount all
NFS-mounted directories:
/usr/sbin/umount -at nfs
5. Edit the /etc/rc.config.d/nfsconf file on the client to set the
NFS_CLIENT and AUTOMOUNT variables to 0. This prevents the client
processes from starting up again when you reboot the client.
NFS_CLIENT=0
AUTOMOUNT=0
6. Issue the following command to disable NFS client capability:
/sbin/init.d/nfs.client stop
For more information, type man 1M mount or man 1M fuser at the
HP-UX prompt.