Project

General

Profile

Bug #762 » ccdconfig.8.patch

thomas.nikolajsen, 08/09/2007 09:48 PM

View differences:

ccdconfig.8 8 Aug 2007 15:20:42 -0000
134 134
#
135 135
.Pp
136 136
# ccd           ileave  flags   component devices
137
ccd0            16      none    /dev/da2e /dev/da3e
137
ccd0            16      none    /dev/da2s0e /dev/da3s0e
138 138
.Ed
139 139
.Pp
140 140
The component devices need to name partitions of type
141 141
.Li FS_CCD
142 142
(or
143
.Dq CCD
143
.Dq ccd
144 144
as shown by
145 145
.Xr disklabel 8 ) .
146 146
.Sh RECOVERY
......
172 172
configuration file.  The first example creates a 4-disk stripe out of
173 173
four scsi disk partitions.  The stripe uses a 64 sector interleave.
174 174
The second example is an example of a complex stripe/mirror combination.
175
It reads as a two disk stripe of da2e and da3e which is mirrored
176
to a two disk stripe of da4e and da5e.  The last example is a simple
177
mirror.  /dev/da2e is mirrored with /dev/da4e and assigned to ccd0.
175
It reads as a two disk stripe of da2s0e and da3s0e which is mirrored
176
to a two disk stripe of da4s0e and da5s0e.  The last example is a simple
177
mirror.  /dev/da2s0e is mirrored with /dev/da4s0e and assigned to ccd0.
178 178
.Pp
179 179
.Bd -literal
180
# ccdconfig ccd0 64 none /dev/da2e /dev/da3e /dev/da4e /dev/da5e
181
# ccdconfig ccd0 128 CCDF_MIRROR /dev/da2e /dev/da3e /dev/da4e /dev/da5e
182
# ccdconfig ccd0 128 CCDF_MIRROR /dev/da2e /dev/da4e
180
# ccdconfig ccd0 64 none /dev/da2s0e /dev/da3s0e /dev/da4s0e /dev/da5s0e
181
# ccdconfig ccd0 128 CCDF_MIRROR /dev/da2s0e /dev/da3s0e /dev/da4s0e /dev/da5s0e
182
# ccdconfig ccd0 128 CCDF_MIRROR /dev/da2s0e /dev/da4s0e
183 183
.Ed
184 184
.Pp
185 185
When you create a new ccd disk you generally want to
......
196 196
with offset 16 and size 9984.
197 197
.Pp
198 198
.Bd -literal
199
# disklabel -r -w ccd0c auto
200
# disklabel -e ccd0c
199
# disklabel -r -w ccd0s0 auto
200
# disklabel -e ccd0s0
201 201
.Ed
202 202
.Pp
203
The disklabeling of a ccd disk is usually a one-time affair.  Unlike other
204
devices, ccd currently requires that you specify partition 'c' when
205
running disklabel.  If you reboot the machine and reconfigure the ccd disk,
203
The disklabeling of a ccd disk is usually a one-time affair.
204
If you reboot the machine and reconfigure the ccd disk,
206 205
the disklabel you
207 206
had created before will still be there and not require reinitialization.
208 207
Beware that changing any ccd parameters: interleave, flags, or the
(6-6/11)