NFS Services Administrator's Guide (762805-001, March 2014)

not removed. These outdated entries can be removed from the export information table by using
the -S option with the unshare command.
For example, consider that if any application has deleted directory 3 from the shared directory
/export/1/2/3 then, unsharing of directory 3 results in an error.
For Example,
# unshare /export/1/2/3
nfs unshare: /export/1/2/3: No such file or directory
In such scenarios, the following unshare command removes this entry from the export information
table.
example# unshare -S
:
Use the unshare -S option to remove any outdated entries in the export information table. The
entries in the export information table are considered outdated if the corresponding directories,
which are shared, are deleted by the user.
Disabling the NFS server
To disable the NFS server, follow these steps:
1. On the NFS server, enter the following command to unshare all the shared directories:
unshareall -F nfs
2. Enter the following command to disable NFS server capability:
/sbin/init.d/nfs.server stop
3. On the NFS server, edit the /etc/rc.config.d/nfsconf file to set the NFS_SERVER
variable to 0, as follows:
NFS_SERVER=0
This prevents the NFS server daemons from starting when the system reboots.
For more information about forced unmount, unmounting and unsharing, see mount_nfs (1M),
unshare(1M), and umount(1M).
Configuring and administering NFS clients
An NFS client is a system that mounts remote directories using NFS. When a client mounts a remote
filesystem, it does not make a copy of the filesystem. The mounting process uses a series of remote
procedure calls that enable the client to transparently access the filesystem on the server’s disk. To
users, these mounted remote directories appear as if they are a part of the local filesystem. An
NFS client can also be an NFS server. NFS filesystems can also be automounted using AutoFS.
For information on how to automount a filesystem, see Chapter 3: “Configuring and administering
AutoFS” (page 49).
NFS client configuration files and daemons
This section describes the NFS client configuration files and daemons.
Configuration Files
Table 6 describes the NFS configuration files and their functions.
34 Configuring and administering NFS services