xref: /freebsd/usr.sbin/rpc.umntall/rpc.umntall.8 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
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.Dd November 17, 1999
27c69a34d4SMatthew Dillon.Dt RPC.UMNTALL 8
28c69a34d4SMatthew Dillon.Os
29c69a34d4SMatthew Dillon.Sh NAME
30c69a34d4SMatthew Dillon.Nm rpc.umntall
31e12881b1SAlexey Zelkin.Nd notify NFS servers about unmounted NFS file systems
32c69a34d4SMatthew Dillon.Sh SYNOPSIS
33e97407b4SRuslan Ermilov.Nm
34c69a34d4SMatthew Dillon.Op Fl e Ar expire
35c69a34d4SMatthew Dillon.Op Fl h Ar host
36c69a34d4SMatthew Dillon.Op Fl k
37c69a34d4SMatthew Dillon.Op Fl p Ar remotepath
38c69a34d4SMatthew Dillon.Op Fl v
39c69a34d4SMatthew Dillon.Sh DESCRIPTION
40490d5836SPhilippe CharnierThe
41c69a34d4SMatthew Dillon.Nm
42490d5836SPhilippe Charnierutility is proposed in the
43c69a34d4SMatthew Dillon.Tn NFS
44c69a34d4SMatthew DillonRPC specification; see
45e12881b1SAlexey Zelkin.Rs
46e12881b1SAlexey Zelkin.%T "NFS Version 3 Protocol Specification"
47e12881b1SAlexey Zelkin.%O "RFC 1813, Appendix I"
48e12881b1SAlexey Zelkin.Re
49e12881b1SAlexey ZelkinIt uses remote procedure calls to remove mount entries from
50c69a34d4SMatthew Dillon.Pa /var/db/mountdtab
51f2e366a1SSheldon Hearnon the remote NFS server.
52f2e366a1SSheldon HearnIt is called automatically
53c69a34d4SMatthew Dillonwithout any parameters during startup and shutdown of
54f2e366a1SSheldon Hearnthe system.
55f2e366a1SSheldon HearnThis ensures that
56c69a34d4SMatthew Dillon.Xr showmount 8
57f2e366a1SSheldon Hearndoes not display old and expired entries.
58f2e366a1SSheldon HearnThe
59c69a34d4SMatthew Dillon.Nm
60490d5836SPhilippe Charnierutility
61c69a34d4SMatthew Dillonis only needed on client side, where
62c69a34d4SMatthew Dillon.Xr mount_nfs 8
63c69a34d4SMatthew Dillonadds a mount entry with the current date to
64c69a34d4SMatthew Dillon.Pa /var/db/mounttab ,
65c69a34d4SMatthew Dillonand
66c69a34d4SMatthew Dillon.Xr umount 8
67f2e366a1SSheldon Hearnremoves the entry again.
68f2e366a1SSheldon HearnThe
69c69a34d4SMatthew Dillon.Nm
70490d5836SPhilippe Charnierutility
71c69a34d4SMatthew Dilloncares about all remaining entries in this table which result from crashes
72c69a34d4SMatthew Dillonor unproper shutdowns.
73c69a34d4SMatthew Dillon.Pp
74c69a34d4SMatthew DillonThe options are as follows:
75e12881b1SAlexey Zelkin.Bl -tag -width indentxxx
76c69a34d4SMatthew Dillon.It Fl e Ar expire
77c69a34d4SMatthew DillonAll entries which are not actually mounted or older than
78c69a34d4SMatthew Dillon.Ar expire
79e12881b1SAlexey Zelkin(seconds) are removed from
80e12881b1SAlexey Zelkin.Pa /var/db/mounttab .
81e12881b1SAlexey ZelkinThis may be the case
82f2e366a1SSheldon Hearnfor DNS changes or long out of service periods.
83f2e366a1SSheldon HearnDefault expire time
84ab80d6faSBrian Feldmanis 86400 seconds (one day).
85c69a34d4SMatthew Dillon.It Fl h Ar host
86f2e366a1SSheldon HearnOnly remove the specific hostname.
87f2e366a1SSheldon HearnSend a UMNTALL RPC to the NFS server.
88c69a34d4SMatthew Dillon.It Fl k
89f2e366a1SSheldon HearnKeep entries for existing NFS file systems.
90f2e366a1SSheldon HearnCompare the NFS file systems from
91c69a34d4SMatthew Dillonthe mounttab against the kernel mountlist and do not send the RPC to
922ed2dc52SSheldon Hearnexisting mount entries.
932ed2dc52SSheldon HearnUseful during startup of the system.
94f2e366a1SSheldon HearnIt may be
95c69a34d4SMatthew Dillonpossible that there are already mounted NFS file systems, so calling
960227791bSRuslan ErmilovRPC UMOUNT is not 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-file systems
113c69a34d4SMatthew Dillon.El
11459a3c79dSRuslan Ermilov.Sh SEE ALSO
11559a3c79dSRuslan Ermilov.Xr mount_nfs 8 ,
116*914f6e62SJoel Dahl.Xr mountd 8 ,
11759a3c79dSRuslan Ermilov.Xr umount 8
118c69a34d4SMatthew Dillon.Sh HISTORY
119c69a34d4SMatthew DillonThe
120c69a34d4SMatthew Dillon.Nm
121490d5836SPhilippe Charnierutility first appeared in
122c69a34d4SMatthew Dillon.Fx 4.0 .
123c69a34d4SMatthew Dillon.Sh AUTHORS
12401c2b8acSBaptiste Daroussin.An Martin Blapp Aq Mt mb@imp.ch
125