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