NAME
mountd — NFS mount request server
SYNOPSIS
/usr/sbin/rpc.mountd
[-l
log_file]
[-t
n]
[-p|-e|-n
]
DESCRIPTION
mountd
is an
RPC
server that answers file system mount requests.
It reads file
/etc/xtab
(described in
exports(4))
to determine which directories are available to which machines.
It also provides information on what file systems are mounted by which
clients.
This information can be printed using the
showmount
command (see
showmount(1M)).
rpc.mountd
can be started at boot time by setting the variable
NFS_SERVER
to 1 in the file
/etc/rc.config.d/nfsconf.
It can also be started through
/etc/inetd.conf
(see
inetd(1M)),
provided that the
START_MOUNTD
variable is set to 0 in
/etc/rc.config.d/nfsconf.
Options
mountd
recognizes the following options:
- -l log_file
Log any errors to the named log file,
log_file.
Errors are not logged if the
-l
option is not specified.
The information logged to the file
includes the date and time of the error,
the host name, process
ID
and name of the function generating the error,
and the error message.
Note that different services can share a single log file
since enough information is included to uniquely identify each error.
- -p
Run from unreserved ports. This option restores the old default behavior
on HP-UX. The default has been changed for the mount daemon to run from
reserved ports unless this option is set.
- -e
Exit after serving each
RPC
request.
When this option is used, the
inetd
security file
/var/adm/inetd.sec
can control access to
RPC
services. This option only supports
UDP
requests.
- -n
Exit only if:
portmap
dies (see
portmap(1M)),
another
rpc.mountd
registers with
portmap,
or
rpc.mountd
becomes unregistered with
portmap.
This option is more efficient
because a new process is not launched for each
RPC
request.
This option is the default.
- -tn
Specify tracing level
n ,
where
n
can have one of the following values:
- 1
Errors only (default)
- 2
Errors, mount requests and mount failures
WARNINGS
The default behavior of the mount daemon is to run from reserved ports.
If the daemon needs to be run from unreserved ports, use the -p option.
If a client crashes, executing
showmount
on the server will show
that the client still has a file system mounted;
i.e., the client's entry is not removed from
/etc/rmtab
until the client reboots and executes
umount -a
(see
showmount(1M)).
Also, if a client mounts the same remote directory twice,
only one entry appears in
/etc/rmtab.
Doing a
umount
of one of these directories removes the single entry and
showmount
no longer indicates that the remote directory is mounted.
AUTHOR
mountd
was developed by Sun Microsystems, Inc.
FILES
- /etc/rmtab
List of all hosts having file systems mounted from this machine