Move /var/svc/log to /var/log/svc
[unleashed/lotheac.git] / share / man / man8 / mountall.8
blob315b28a05a06d55d5c5bcf088db3a7cc2484ec4a
1 '\" te
2 .\" Copyright 1989 AT&T Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH MOUNTALL 8 "Dec 17, 2008"
7 .SH NAME
8 mountall, umountall \- mount, unmount multiple file systems
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBmountall\fR [\fB-F\fR \fIFSType\fR] [\fB-l\fR | \fB-r\fR] [\fIfile_system_table\fR]
13 .fi
15 .LP
16 .nf
17 \fBumountall\fR [\fB-k\fR] [\fB-s\fR] [\fB-F\fR \fIFSType\fR] [\fB-l\fR | \fB-r\fR] [\fB-n\fR]  [\fB-Z\fR]
18 .fi
20 .LP
21 .nf
22 \fBumountall\fR [\fB-k\fR] [\fB-s\fR] [\fB-h\fR \fIhost\fR] [\fB-n\fR] [\fB-Z\fR]
23 .fi
25 .SH DESCRIPTION
26 .sp
27 .LP
28 \fBmountall\fR is used to mount file systems specified in a file system table.
29 The file system table must be in \fBvfstab\fR(4) format. If no
30 \fIfile_system_table\fR is specified, \fB/etc/vfstab\fR is used. If \(mi is
31 specified as \fIfile_system_table\fR, \fBmountall\fR reads the file system
32 table from the standard input. \fBmountall\fR mounts only those file systems
33 with the \fBmount at boot\fR field set to \fByes\fR in the
34 \fIfile_system_table\fR.
35 .sp
36 .LP
37 For each file system in the file system table, the following logic is executed:
38 if there exists a file \fB/usr/lib/fs/\fR\fIFSType\fR\fB/fsckall\fR, where
39 \fIFSType\fR is the type of the file system, save that file system in a list to
40 be passed later, and all at once, as arguments to the
41 \fB/usr/lib/fs/\fR\fIFSType\fR\fB/fsckall\fR script. The
42 \fB/usr/lib/fs/\fR\fIFSType\fR\fB/fsckall\fR script checks all of the file
43 systems in its argument list to determine whether they can be safely mounted.
44 If no \fB/usr/lib/fs/\fR\fIFSType\fR\fB/fsckall\fR script exists for the
45 \fIFSType\fR of the file system, the file system is individually checked using
46 \fBfsck\fR(1M). If the file system does not appear mountable, it is fixed using
47 \fBfsck\fR before the mount is attempted. File systems with a \(mi entry in the
48 \fBfsckdev\fR field are mounted without first being checked.
49 .sp
50 .LP
51 \fBumountall\fR causes all mounted file systems in the current zone except
52 \fBroot\fR, \fB/usr\fR, \fB/var\fR, \fB/var/log\fR, \fB/var/run\fR,
53 \fB/proc\fR, and \fB/dev/fd\fR to be unmounted. If the \fIFSType\fR is
54 specified, \fBmountall\fR and \fBumountall\fR limit their actions to the
55 \fIFSType\fR specified. There is no guarantee that \fBumountall\fR unmounts
56 \fIbusy\fR file systems, even if the \fB-k\fR option is specified.
57 .SH OPTIONS
58 .sp
59 .LP
60 The following options are supported:
61 .sp
62 .ne 2
63 .na
64 \fB\fB-F\fR\fR
65 .ad
66 .RS 11n
67 Specify the \fIFSType\fR of the file system to be mounted or unmounted.
68 .RE
70 .sp
71 .ne 2
72 .na
73 \fB\fB-h\fR \fIhost\fR\fR
74 .ad
75 .RS 11n
76 Unmount all file systems listed in \fB/etc/mnttab\fR that are remote-mounted
77 from host.
78 .RE
80 .sp
81 .ne 2
82 .na
83 \fB\fB-k\fR\fR
84 .ad
85 .RS 11n
86 Use the \fBfuser\fR \fB-k\fR \fImount-point\fR command. See the \fBfuser\fR(8)
87 for details. The \fB-k\fR option sends the \fBSIGKILL\fR signal to each process
88 using the file. As this option spawns kills for each process, the kill messages
89 might not show up immediately. There is no guarantee that \fBumountall\fR
90 unmounts \fIbusy\fR file systems, even if the \fB-k\fR option is specified.
91 .RE
93 .sp
94 .ne 2
95 .na
96 \fB\fB-l\fR\fR
97 .ad
98 .RS 11n
99 Limit the action to local file systems.
103 .ne 2
105 \fB\fB-n\fR\fR
107 .RS 11n
108 List the actions that would be performed for the specified options, but do not
109 actually execute these actions. Repeating the command without the \fB-n\fR
110 option executes the listed actions, assuming that the \fB/etc/mnttab\fR file
111 has not changed in the interval prior to repeating the command.
115 .ne 2
117 \fB\fB-r\fR\fR
119 .RS 11n
120 Limit the action to remote file system types.
124 .ne 2
126 \fB\fB-s\fR\fR
128 .RS 11n
129 Do not perform the \fBumount\fR operation in parallel.
133 .ne 2
135 \fB\fB-Z\fR\fR
137 .RS 11n
138 Apply the action(s) only to the file systems  mounted in non-global zones. By
139 default, \fBumountall\fR unmounts only file systems mounted in the current
140 zone. Option \fB-Z\fR is ignored if used in a non-global zone.
143 .SH FILES
145 .ne 2
147 \fB\fB/etc/mnttab\fR\fR
149 .sp .6
150 .RS 4n
151 Mounted file system table
155 .ne 2
157 \fB\fB/etc/vfstab\fR\fR
159 .sp .6
160 .RS 4n
161 Table of file system defaults
165 .ne 2
167 \fB\fB/usr/lib/fs/\fIFSType\fR/fsckall\fR\fR
169 .sp .6
170 .RS 4n
171 Script called by \fBmountall\fR to perform the file system check of all file
172 systems of type \fIFSType\fR
175 .SH ATTRIBUTES
178 See \fBattributes\fR(5) for descriptions of the following attributes:
183 box;
184 c | c
185 l | l .
186 ATTRIBUTE TYPE  ATTRIBUTE VALUE
188 Interface Stability     Committed
190 Output Stability        Uncommitted
193 .SH SEE ALSO
196 \fBfsck\fR(8), \fBfuser\fR(8), \fBmount\fR(8), \fBmnttab\fR(4),
197 \fBvfstab\fR(4), \fBattributes\fR(5)
198 .SH DIAGNOSTICS
201 No messages are printed if the file systems are mountable and clean.
204 Error and warning messages come from \fBfsck\fR(8) and \fBmount\fR(8).
205 .SH NOTES
208 At this time, NFS is the only remote file system supported by the \fB-l\fR,
209 \fB-r\fR, and \fB-h\fR options.