1999-11-21 08:06:00 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1999 Martin Blapp
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
|
|
|
.Dd November 17, 1999
|
|
|
|
.Dt RPC.UMNTALL 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm rpc.umntall
|
2002-12-12 17:26:04 +00:00
|
|
|
.Nd notify NFS servers about unmounted NFS file systems
|
1999-11-21 08:06:00 +00:00
|
|
|
.Sh SYNOPSIS
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1999-11-21 08:06:00 +00:00
|
|
|
.Op Fl e Ar expire
|
|
|
|
.Op Fl h Ar host
|
|
|
|
.Op Fl k
|
|
|
|
.Op Fl p Ar remotepath
|
|
|
|
.Op Fl v
|
|
|
|
.Sh DESCRIPTION
|
2002-07-14 14:47:15 +00:00
|
|
|
The
|
1999-11-21 08:06:00 +00:00
|
|
|
.Nm
|
2002-07-14 14:47:15 +00:00
|
|
|
utility is proposed in the
|
1999-11-21 08:06:00 +00:00
|
|
|
.Tn NFS
|
|
|
|
RPC specification; see
|
2000-01-05 15:21:01 +00:00
|
|
|
.Rs
|
|
|
|
.%T "NFS Version 3 Protocol Specification"
|
|
|
|
.%O "RFC 1813, Appendix I"
|
|
|
|
.Re
|
|
|
|
It uses remote procedure calls to remove mount entries from
|
1999-11-21 08:06:00 +00:00
|
|
|
.Pa /var/db/mountdtab
|
2000-03-01 14:09:25 +00:00
|
|
|
on the remote NFS server.
|
|
|
|
It is called automatically
|
1999-11-21 08:06:00 +00:00
|
|
|
without any parameters during startup and shutdown of
|
2000-03-01 14:09:25 +00:00
|
|
|
the system.
|
|
|
|
This ensures that
|
1999-11-21 08:06:00 +00:00
|
|
|
.Xr showmount 8
|
2000-03-01 14:09:25 +00:00
|
|
|
does not display old and expired entries.
|
|
|
|
The
|
1999-11-21 08:06:00 +00:00
|
|
|
.Nm
|
2002-07-14 14:47:15 +00:00
|
|
|
utility
|
1999-11-21 08:06:00 +00:00
|
|
|
is only needed on client side, where
|
|
|
|
.Xr mount_nfs 8
|
|
|
|
adds a mount entry with the current date to
|
2000-01-05 15:21:01 +00:00
|
|
|
.Pa /var/db/mounttab ,
|
1999-11-21 08:06:00 +00:00
|
|
|
and
|
|
|
|
.Xr umount 8
|
2000-03-01 14:09:25 +00:00
|
|
|
removes the entry again.
|
|
|
|
The
|
1999-11-21 08:06:00 +00:00
|
|
|
.Nm
|
2002-07-14 14:47:15 +00:00
|
|
|
utility
|
1999-11-21 08:06:00 +00:00
|
|
|
cares about all remaining entries in this table which result from crashes
|
|
|
|
or unproper shutdowns.
|
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
2000-01-05 15:21:01 +00:00
|
|
|
.Bl -tag -width indentxxx
|
1999-11-21 08:06:00 +00:00
|
|
|
.It Fl e Ar expire
|
|
|
|
All entries which are not actually mounted or older than
|
|
|
|
.Ar expire
|
2000-01-05 15:21:01 +00:00
|
|
|
(seconds) are removed from
|
|
|
|
.Pa /var/db/mounttab .
|
|
|
|
This may be the case
|
2000-03-01 14:09:25 +00:00
|
|
|
for DNS changes or long out of service periods.
|
|
|
|
Default expire time
|
2000-01-15 14:28:14 +00:00
|
|
|
is 86400 seconds (one day).
|
1999-11-21 08:06:00 +00:00
|
|
|
.It Fl h Ar host
|
2000-03-01 14:09:25 +00:00
|
|
|
Only remove the specific hostname.
|
|
|
|
Send a UMNTALL RPC to the NFS server.
|
1999-11-21 08:06:00 +00:00
|
|
|
.It Fl k
|
2002-12-12 17:26:04 +00:00
|
|
|
Keep entries for existing NFS file systems.
|
|
|
|
Compare the NFS file systems from
|
1999-11-21 08:06:00 +00:00
|
|
|
the mounttab against the kernel mountlist and do not send the RPC to
|
2000-03-06 09:45:37 +00:00
|
|
|
existing mount entries.
|
|
|
|
Useful during startup of the system.
|
2000-03-01 14:09:25 +00:00
|
|
|
It may be
|
2002-12-12 17:26:04 +00:00
|
|
|
possible that there are already mounted NFS file systems, so calling
|
2000-03-01 14:09:25 +00:00
|
|
|
RPC UMOUNT isn't a good idea.
|
|
|
|
This is the case if the user has rebooted
|
1999-11-21 08:06:00 +00:00
|
|
|
to 'single user mode' and starts up the system again.
|
|
|
|
.It Fl p Ar path
|
2000-03-01 14:09:25 +00:00
|
|
|
Only remove the specific mount-path.
|
|
|
|
Send a UMOUNT RPC to the NFS server.
|
1999-11-21 08:06:00 +00:00
|
|
|
This option implies the
|
|
|
|
.Fl host
|
|
|
|
option.
|
|
|
|
.It Fl v
|
|
|
|
Verbose, additional information is printed for each processed mounttab
|
|
|
|
entry.
|
|
|
|
.El
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /var/db/mounttab -compact
|
|
|
|
.It Pa /var/db/mounttab
|
2002-12-12 17:26:04 +00:00
|
|
|
mounted nfs-file systems
|
1999-11-21 08:06:00 +00:00
|
|
|
.El
|
2005-01-18 20:02:45 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr mountd 8 ,
|
|
|
|
.Xr mount_nfs 8 ,
|
|
|
|
.Xr umount 8
|
1999-11-21 08:06:00 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
2002-07-14 14:47:15 +00:00
|
|
|
utility first appeared in
|
1999-11-21 08:06:00 +00:00
|
|
|
.Fx 4.0 .
|
|
|
|
.Sh AUTHORS
|
|
|
|
.An Martin Blapp Aq mb@imp.ch
|