xref: /freebsd/usr.sbin/rpc.umntall/rpc.umntall.8 (revision 5129159789cc9d7bc514e4546b88e3427695002d)
1.\"
2.\" Copyright (c) 1999 Martin Blapp
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
9.\"    notice, this list of conditions and the following disclaimer.
10.\" 2. Redistributions in binary form must reproduce the above copyright
11.\"    notice, this list of conditions and the following disclaimer in the
12.\"    documentation and/or other materials provided with the distribution.
13.\"
14.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
26.\" $FreeBSD$
27.\"
28.Dd November 17, 1999
29.Dt RPC.UMNTALL 8
30.Os
31.Sh NAME
32.Nm rpc.umntall
33.Nd Notify NFS servers about unmounted NFS filesystems
34.Sh SYNOPSIS
35.Nm rpc.umntall
36.Op Fl e Ar expire
37.Op Fl h Ar host
38.Op Fl k
39.Op Fl p Ar remotepath
40.Op Fl v
41.Sh DESCRIPTION
42.Nm
43is as command as proposed in the
44.Tn NFS
45RPC specification; see
46.%T "NFS Version 3 Protocol Specification",
47RFC 1813, Appendix I. It uses remote procedure calls
48to remove mount entries from
49.Pa /var/db/mountdtab
50on the remote NFS server. It is called automatically
51without any parameters during startup and shutdown of
52the system. This ensures that
53.Xr showmount 8
54does not display old and expired entries. The
55.Nm
56command
57is only needed on client side, where
58.Xr mount_nfs 8
59adds a mount entry with the current date to
60.Pa /var/db/mounttab,
61and
62.Xr umount 8
63removes the entry again. The
64.Nm
65command
66cares about all remaining entries in this table which result from crashes
67or unproper shutdowns.
68.Pp
69The options are as follows:
70.Bl -tag -width indent
71.It Fl e Ar expire
72All entries which are not actually mounted or older than
73.Ar expire
74(seconds) are removed from /var/db/mounttab. This may be the case
75for DNS changes or long out of service periods. Default expire time
76is 172800 seconds (2 days).
77.It Fl h Ar host
78Only remove the specific hostname. Send a UMNTALL RPC to the NFS server.
79.It Fl k
80Keep entries for existing NFS filesystems. Compare the NFS filesystems from
81the mounttab against the kernel mountlist and do not send the RPC to
82existing mount entries. Useful during startup of the system. It may be
83possible that there are already mounted NFS filesystems, so calling
84RPC UMOUNT isn't a good idea. This is the case if the user has rebooted
85to 'single user mode' and starts up the system again.
86.It Fl p Ar path
87Only remove the specific mount-path. Send a UMOUNT RPC to the NFS server.
88This option implies the
89.Fl host
90option.
91.It Fl v
92Verbose, additional information is printed for each processed mounttab
93entry.
94.El
95.Sh FILES
96.Bl -tag -width /var/db/mounttab -compact
97.It Pa /var/db/mounttab
98mounted nfs-filesystems
99.El
100.Sh HISTORY
101The
102.Nm
103command first appeared in
104.Fx 4.0 .
105.El
106.Sh SEE ALSO
107.Xr mountd 8 ,
108.Xr umount 8 ,
109.Xr mount_nfs 8
110.Sh AUTHORS
111.An Martin Blapp Aq mb@imp.ch
112