xref: /freebsd/usr.sbin/rpc.umntall/rpc.umntall.8 (revision 490d5836b5ab0c76675986696b1637fff97dfae2)
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
35e97407b4SRuslan Ermilov.Nm
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
42490d5836SPhilippe CharnierThe
43c69a34d4SMatthew Dillon.Nm
44490d5836SPhilippe Charnierutility is proposed in the
45c69a34d4SMatthew Dillon.Tn NFS
46c69a34d4SMatthew DillonRPC specification; see
47e12881b1SAlexey Zelkin.Rs
48e12881b1SAlexey Zelkin.%T "NFS Version 3 Protocol Specification"
49e12881b1SAlexey Zelkin.%O "RFC 1813, Appendix I"
50e12881b1SAlexey Zelkin.Re
51e12881b1SAlexey ZelkinIt uses remote procedure calls to remove mount entries from
52c69a34d4SMatthew Dillon.Pa /var/db/mountdtab
53f2e366a1SSheldon Hearnon the remote NFS server.
54f2e366a1SSheldon HearnIt is called automatically
55c69a34d4SMatthew Dillonwithout any parameters during startup and shutdown of
56f2e366a1SSheldon Hearnthe system.
57f2e366a1SSheldon HearnThis ensures that
58c69a34d4SMatthew Dillon.Xr showmount 8
59f2e366a1SSheldon Hearndoes not display old and expired entries.
60f2e366a1SSheldon HearnThe
61c69a34d4SMatthew Dillon.Nm
62490d5836SPhilippe Charnierutility
63c69a34d4SMatthew Dillonis only needed on client side, where
64c69a34d4SMatthew Dillon.Xr mount_nfs 8
65c69a34d4SMatthew Dillonadds a mount entry with the current date to
66c69a34d4SMatthew Dillon.Pa /var/db/mounttab ,
67c69a34d4SMatthew Dillonand
68c69a34d4SMatthew Dillon.Xr umount 8
69f2e366a1SSheldon Hearnremoves the entry again.
70f2e366a1SSheldon HearnThe
71c69a34d4SMatthew Dillon.Nm
72490d5836SPhilippe Charnierutility
73c69a34d4SMatthew Dilloncares about all remaining entries in this table which result from crashes
74c69a34d4SMatthew Dillonor unproper shutdowns.
75c69a34d4SMatthew Dillon.Pp
76c69a34d4SMatthew DillonThe options are as follows:
77e12881b1SAlexey Zelkin.Bl -tag -width indentxxx
78c69a34d4SMatthew Dillon.It Fl e Ar expire
79c69a34d4SMatthew DillonAll entries which are not actually mounted or older than
80c69a34d4SMatthew Dillon.Ar expire
81e12881b1SAlexey Zelkin(seconds) are removed from
82e12881b1SAlexey Zelkin.Pa /var/db/mounttab .
83e12881b1SAlexey ZelkinThis may be the case
84f2e366a1SSheldon Hearnfor DNS changes or long out of service periods.
85f2e366a1SSheldon HearnDefault expire time
86ab80d6faSBrian Feldmanis 86400 seconds (one day).
87c69a34d4SMatthew Dillon.It Fl h Ar host
88f2e366a1SSheldon HearnOnly remove the specific hostname.
89f2e366a1SSheldon HearnSend a UMNTALL RPC to the NFS server.
90c69a34d4SMatthew Dillon.It Fl k
91f2e366a1SSheldon HearnKeep entries for existing NFS filesystems.
92f2e366a1SSheldon HearnCompare the NFS filesystems from
93c69a34d4SMatthew Dillonthe mounttab against the kernel mountlist and do not send the RPC to
942ed2dc52SSheldon Hearnexisting mount entries.
952ed2dc52SSheldon HearnUseful during startup of the system.
96f2e366a1SSheldon HearnIt may be
97c69a34d4SMatthew Dillonpossible that there are already mounted NFS filesystems, so calling
98f2e366a1SSheldon HearnRPC UMOUNT isn't a good idea.
99f2e366a1SSheldon HearnThis is the case if the user has rebooted
100c69a34d4SMatthew Dillonto 'single user mode' and starts up the system again.
101c69a34d4SMatthew Dillon.It Fl p Ar path
102f2e366a1SSheldon HearnOnly remove the specific mount-path.
103f2e366a1SSheldon HearnSend a UMOUNT RPC to the NFS server.
104c69a34d4SMatthew DillonThis option implies the
105c69a34d4SMatthew Dillon.Fl host
106c69a34d4SMatthew Dillonoption.
107c69a34d4SMatthew Dillon.It Fl v
108c69a34d4SMatthew DillonVerbose, additional information is printed for each processed mounttab
109c69a34d4SMatthew Dillonentry.
110c69a34d4SMatthew Dillon.El
111c69a34d4SMatthew Dillon.Sh FILES
112c69a34d4SMatthew Dillon.Bl -tag -width /var/db/mounttab -compact
113c69a34d4SMatthew Dillon.It Pa /var/db/mounttab
114c69a34d4SMatthew Dillonmounted nfs-filesystems
115c69a34d4SMatthew Dillon.El
116c69a34d4SMatthew Dillon.Sh HISTORY
117c69a34d4SMatthew DillonThe
118c69a34d4SMatthew Dillon.Nm
119490d5836SPhilippe Charnierutility first appeared in
120c69a34d4SMatthew Dillon.Fx 4.0 .
121c69a34d4SMatthew Dillon.Sh SEE ALSO
122c69a34d4SMatthew Dillon.Xr mountd 8 ,
1235521ff5aSRuslan Ermilov.Xr mount_nfs 8 ,
124e12881b1SAlexey Zelkin.Xr umount 8
125c69a34d4SMatthew Dillon.Sh AUTHORS
126c69a34d4SMatthew Dillon.An Martin Blapp Aq mb@imp.ch
127