NFS Services Administrator's Guide

Configuring and Administering NFS
Configuring and Administering an NFS Server
Chapter 2 31
2. On every NFS client that has the directory mounted, issue the
following command for a list of the process IDs and user names of
everyone using the mounted directory:
/usr/sbin/fuser -u servername:/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
directory:
/usr/sbin/fuser -ck local_mount_point
4. On every NFS client that has the directory mounted, issue the
following command to unmount the directory:
/usr/sbin/umount local_mount_point
or
/usr/sbin/umount servername:/directory
5. On every NFS client that had the directory mounted, use a text
editor to comment out or remove the line in the /etc/fstab file that
lists the directory you want to unexport. This prevents clients from
attempting to mount the directory when they reboot.
6. On every client that has the directory configured to be automounted,
edit the /etc/auto_* files to comment out or remove the directory
from the automounter maps. Clients that automount the directory
may not be listed by the showmount command.
If you are using NIS to manage your automounter maps, edit the
/etc/auto_* files on the NIS master server, and then issue the
following commands to regenerate the maps and push them to the
slave servers:
cd /var/yp
/usr/ccs/bin/make auto.mapname auto.mapname ...
If you are using NIS+ to manage your automounter maps, see “To
Remove an Entry from an NIS+ Table” on page 242.
7. If you modified any direct automounter maps or the automounter
master map, restart the automounter. See “To Restart the
Automounter” on page 92.
8. On the NFS server, use a text editor to remove the line in the
/etc/exports file that lists the directory you want to unexport.