1 .\" Copyright (c) 2000 Christoph Herrmann, Thomas-Henning von Kamptz
2 .\" Copyright (c) 1980, 1989, 1993 The Regents of the University of California.
3 .\" All rights reserved.
5 .\" This code is derived from software contributed to Berkeley by
6 .\" Christoph Herrmann and Thomas-Henning von Kamptz, Munich and Frankfurt.
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. All advertising materials mentioning features or use of this software
17 .\" must display the following acknowledgment:
18 .\" This product includes software developed by the University of
19 .\" California, Berkeley and its contributors, as well as Christoph
20 .\" Herrmann and Thomas-Henning von Kamptz.
21 .\" 4. Neither the name of the University nor the names of its contributors
22 .\" may be used to endorse or promote products derived from this software
23 .\" without specific prior written permission.
25 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
26 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
29 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 .\" $TSHeader: src/sbin/growfs/growfs.8,v 1.3 2000/12/12 19:31:00 tomsoft Exp $
38 .\" $FreeBSD: src/sbin/growfs/growfs.8,v 1.6.2.6 2003/01/26 03:30:25 keramida Exp $
39 .\" $DragonFly: src/sbin/growfs/growfs.8,v 1.3 2006/02/17 19:33:32 swildner Exp $
46 .Nd grow size of an existing ufs file system
60 the disk must be labeled to a bigger size using
62 If you wish to grow a file system beyond the boundary of
63 the slice it resides in, you must re-size the slice using
67 If you are using volumes you must enlarge them by using
71 utility extends the size of the file system on the specified special file.
74 can only enlarge unmounted file systems.
75 Do not try enlarging a mounted file system, your system may panic and you will
76 not be able to use the file system any longer.
79 options cannot be changed by
81 In fact, you can only increase the size of the file system.
86 The following options are available:
87 .Bl -tag -width indent
90 Causes the new file system parameters to be printed out without actually
91 enlarging the file system.
96 will ask you if you took a backup of your data before and will do some tests
99 is currently mounted or whether there are any active snapshots on the file
101 This will be suppressed.
102 So use this option with great care!
106 of the file system after enlarging in sectors.
107 This value defaults to the size of the raw partition specified in
111 will enlarge the file system to the size of the entire partition).
114 .Dl growfs -s 4194304 /dev/vinum/testvol
117 .Pa /dev/vinum/testvol
118 up to 2GB if there is enough space in
119 .Pa /dev/vinum/testvol .
132 utility first appeared in
135 .An Christoph Herrmann Aq chm@FreeBSD.org
136 .An Thomas-Henning von Kamptz Aq tomsoft@FreeBSD.org
137 .An The GROWFS team Aq growfs@Tomsoft.COM
141 utility works starting with
144 There may be cases on
148 does not recognize properly whether or not the file system is mounted and
149 exits with an error message.
153 if you are sure that the file system is not mounted.
154 It is also recommended to always use
156 after enlarging (just to be on the safe side).
158 For enlarging beyond certain limits, it is essential to have some free blocks
159 available in the first cylinder group.
160 If that space is not available in the first cylinder group, a critical data
161 structure has to be relocated into one of the new available cylinder groups.
164 3.x this will cause problems with
169 needs to be patched if you want to use
174 This patch is already integrated in
178 To avoid an unexpected relocation of that structure it is possible to use
181 on the first cylinder group to verify that
183 in the CYLINDER SUMMARY (internal cs) of the CYLINDER GROUP
186 As a rule of thumb for default file system parameters one block is needed for
187 every 2 GB of total file system size.
191 writes this critical structure to disk and reads it again later for doing more
193 This read operation will provide unexpected data when using
195 Therefore, this part cannot really be simulated and will be skipped in test