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"
70 utility is used for device concatenation configuration.
71 The concatenation can be configured using two different methods:
77 method, no metadata are stored on the devices, so the concatenated
78 device has to be configured by hand every time it is needed.
81 method uses on-disk metadata to detect devices.
82 Once devices are labeled, they will be automatically detected and
87 indicates an action to be performed:
88 .Bl -tag -width ".Cm destroy"
90 Concatenate the given devices with specified
97 will be loaded if it is not loaded already.
99 Concatenate the given devices with the specified
103 method, where metadata are stored in every device's last sector.
106 will be loaded if it is not loaded already.
108 Turn off existing concatenate device by its
110 This command does not touch on-disk metadata!
115 Clear metadata on the given devices.
117 Dump metadata stored on the given devices.
133 .Bl -tag -width indent
135 Force the removal of the specified concatenated device.
137 Hardcode providers' names in metadata.
144 variables can be used to control the behavior of the
147 The default value is shown next to each variable.
148 .Bl -tag -width indent
149 .It Va kern.geom.concat.debug : No 0
153 This can be set to a number between 0 and 3 inclusive.
154 If set to 0 minimal debug information is printed, and if set to 3 the
155 maximum amount of debug information is printed.
158 Exit status is 0 on success, and 1 if the command fails.
160 The following example shows how to configure four disks for automatic
161 concatenation, create a file system on it, and mount it:
162 .Bd -literal -offset indent
163 gconcat label -v data /dev/da0 /dev/da1 /dev/da2 /dev/da3
164 newfs /dev/concat/data
165 mount /dev/concat/data /mnt
172 Configure concatenated provider on one disk only.
174 Add two more disks and extend existing file system.
175 .Bd -literal -offset indent
176 gconcat label data /dev/da0
177 newfs /dev/concat/data
178 gconcat label data /dev/da0 /dev/da1 /dev/da2
179 growfs /dev/concat/data
197 .An Pawel Jakub Dawidek Aq pjd@FreeBSD.org