1 .\" Copyright (c) 2004-2005 Pawel Jakub Dawidek <pjd@FreeBSD.org>
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .Nd "disk concatenation control utility"
75 utility is used for device concatenation configuration.
76 The concatenation can be configured using two different methods:
82 method, no metadata are stored on the devices, so the concatenated
83 device has to be configured by hand every time it is needed.
86 method uses on-disk metadata to detect devices.
87 Once devices are labeled, they will be automatically detected and
92 indicates an action to be performed:
93 .Bl -tag -width ".Cm destroy"
95 Concatenate the given devices with specified
102 will be loaded if it is not loaded already.
104 Concatenate the given devices with the specified
108 method, where metadata are stored in every device's last sector.
111 will be loaded if it is not loaded already.
113 Additional options include:
114 .Bl -tag -width ".Fl h"
116 Hardcode providers' names in metadata.
119 Append a new device to the end of an existing concatenate device
123 If the existing device is using the
125 method, the new device is simply appended as-is.
127 If the existing device is using the
129 method, the device is appended persistently.
132 metadata is written to all existing components, as well as to the
135 Additional options include:
136 .Bl -tag -width ".Fl h"
138 Hardcode providers' names in metadata.
141 Turn off existing concatenate device by its
143 This command does not touch on-disk metadata!
145 Additional options include:
146 .Bl -tag -width ".Fl f"
148 Stop the given device even if it is opened.
154 Clear metadata on the given devices.
156 Dump metadata stored on the given devices.
172 .Bl -tag -width indent
179 variables can be used to control the behavior of the
182 The default value is shown next to each variable.
183 .Bl -tag -width indent
184 .It Va kern.geom.concat.debug : No 0
188 This can be set to a number between 0 and 3 inclusive.
189 If set to 0 minimal debug information is printed, and if set to 3 the
190 maximum amount of debug information is printed.
193 Exit status is 0 on success, and 1 if the command fails.
195 The following example shows how to configure four disks for automatic
196 concatenation, create a file system on it, and mount it:
197 .Bd -literal -offset indent
198 gconcat label -v data /dev/da0 /dev/da1 /dev/da2 /dev/da3
199 newfs /dev/concat/data
200 mount /dev/concat/data /mnt
207 Configure concatenated provider on one disk only.
209 Add two more disks and extend existing file system.
210 .Bd -literal -offset indent
211 gconcat label data /dev/da0
212 newfs /dev/concat/data
213 gconcat label data /dev/da0 /dev/da1 /dev/da2
214 growfs /dev/concat/data
232 .An Pawel Jakub Dawidek Aq Mt pjd@FreeBSD.org