1 .\" $NetBSD: ccdconfig.8,v 1.24 2008/04/30 13:10:52 martin Exp $
3 .\" Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
7 .\" by Jason R. Thorpe.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
35 .Nd configuration utility for the concatenated disk driver
47 .Op Fl f Ar config_file
56 .Op Fl f Ar config_file
67 is used to dynamically configure and unconfigure concatenated disk
69 For more information about the ccd, see
72 The options are as follows:
73 .Bl -tag -width indent
76 This is the default behavior of
79 Configure all ccd devices listed in the ccd configuration file.
80 .It Fl f Ar config_file
81 When configuring or unconfiguring all devices, read the file
83 instead of the default
86 Dump the current ccd configuration in a format suitable
87 for use as the ccd configuration file.
88 If no arguments are specified, every configured ccd is dumped.
89 Otherwise, the configuration of each listed ccd is dumped.
91 Extract values associated with the name list from
93 instead of the default
96 Extract the name list from
98 instead of the default
103 Unconfigure all ccd devices listed the ccd configuration file.
110 A ccd is described on the command line and in the ccd configuration
111 file by the name of the ccd, the interleave factor,
112 the ccd configuration flags, and a list of one or more devices.
113 The flags may be represented as a decimal number, a hexadecimal number,
114 a comma-separated list of strings, or the word
116 The flags are as follows:
117 .Bl -column -offset indent "CCDF_UNIFORM " "0x02 "
118 .It Em "Symbolic Numeric Comment"
119 .It CCDF_UNIFORM 0x02 Use uniform interleave.
120 The size of all components is clamped to that of the smallest component.
121 .It CCDF_NOLABEL 0x04 Ignore raw disklabel.
122 Useful when creating a new ccd.
134 Each line of the configuration file contains arguments as per the
145 is a comment, and everything to end of line is ignored.
148 at the end of a line indicates that the next line should be concatenated
152 preceding any character (other than the end of line) prevents that
153 character's special meaning from taking effect.
160 /etc/ccd.conf - default ccd configuration file.
162 The following command, executed from the command line, would configure ccd0
163 with 4 components (/dev/sd2e, /dev/sd3e, /dev/sd4e, /dev/sd5e), and an
164 interleave factor of 32 blocks.
165 .Bd -unfilled -offset indent
166 # ccdconfig ccd0 32 0 /dev/sd2e /dev/sd3e /dev/sd4e /dev/sd5e
171 .Bd -unfilled -offset indent
174 # Configuration file for concatenated disk devices
177 # ccd ileave flags component devices
178 ccd0 16 none /dev/sd2e /dev/sd3e
187 command first appeared in