2014-08-13 17:14:35 +04:00
|
|
|
.\" $NetBSD: ccdconfig.8,v 1.27 2014/08/13 13:14:35 apb Exp $
|
1995-08-17 20:37:17 +04:00
|
|
|
.\"
|
1997-01-30 07:02:08 +03:00
|
|
|
.\" Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
1995-08-17 20:37:17 +04:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
1996-02-28 04:01:17 +03:00
|
|
|
.\" This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
.\" by Jason R. Thorpe.
|
|
|
|
.\"
|
1995-08-17 20:37:17 +04:00
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
1996-02-28 04:01:17 +03:00
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
1997-07-31 04:11:51 +04:00
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
1996-02-28 04:01:17 +03:00
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
1995-08-17 20:37:17 +04:00
|
|
|
.\"
|
2014-08-13 17:14:35 +04:00
|
|
|
.Dd August 13, 2014
|
1995-08-17 20:37:17 +04:00
|
|
|
.Dt CCDCONFIG 8
|
2001-06-05 15:22:41 +04:00
|
|
|
.Os
|
1995-08-17 20:37:17 +04:00
|
|
|
.Sh NAME
|
|
|
|
.Nm ccdconfig
|
|
|
|
.Nd configuration utility for the concatenated disk driver
|
|
|
|
.Sh SYNOPSIS
|
1997-09-15 05:32:32 +04:00
|
|
|
.Nm
|
1995-08-17 20:37:17 +04:00
|
|
|
.Op Fl cv
|
|
|
|
.Ar ccd
|
|
|
|
.Ar ileave
|
|
|
|
.Op Ar flags
|
|
|
|
.Ar dev
|
|
|
|
.Op Ar ...
|
2003-02-25 13:34:36 +03:00
|
|
|
.Nm
|
1995-08-17 20:37:17 +04:00
|
|
|
.Fl C
|
|
|
|
.Op Fl v
|
|
|
|
.Op Fl f Ar config_file
|
2003-02-25 13:34:36 +03:00
|
|
|
.Nm
|
1995-08-17 20:37:17 +04:00
|
|
|
.Fl u
|
|
|
|
.Op Fl v
|
|
|
|
.Ar ccd
|
|
|
|
.Op Ar ...
|
2003-02-25 13:34:36 +03:00
|
|
|
.Nm
|
1995-08-17 20:37:17 +04:00
|
|
|
.Fl U
|
|
|
|
.Op Fl v
|
|
|
|
.Op Fl f Ar config_file
|
2003-02-25 13:34:36 +03:00
|
|
|
.Nm
|
1995-08-17 20:37:17 +04:00
|
|
|
.Fl g
|
|
|
|
.Oo
|
|
|
|
.Ar ccd Oo ...
|
|
|
|
.Oc
|
|
|
|
.Oc
|
|
|
|
.Sh DESCRIPTION
|
1997-09-15 05:32:32 +04:00
|
|
|
.Nm
|
1995-08-17 20:37:17 +04:00
|
|
|
is used to dynamically configure and unconfigure concatenated disk
|
2002-10-01 17:40:23 +04:00
|
|
|
devices, or ccds.
|
|
|
|
For more information about the ccd, see
|
1995-08-17 20:37:17 +04:00
|
|
|
.Xr ccd 4 .
|
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl c
|
2002-10-01 17:40:23 +04:00
|
|
|
Configure a ccd.
|
|
|
|
This is the default behavior of
|
2003-02-25 13:34:36 +03:00
|
|
|
.Nm .
|
1995-08-17 20:37:17 +04:00
|
|
|
.It Fl C
|
|
|
|
Configure all ccd devices listed in the ccd configuration file.
|
|
|
|
.It Fl f Ar config_file
|
|
|
|
When configuring or unconfiguring all devices, read the file
|
|
|
|
.Pa config_file
|
|
|
|
instead of the default
|
|
|
|
.Pa /etc/ccd.conf .
|
|
|
|
.It Fl g
|
2002-10-01 17:40:23 +04:00
|
|
|
Dump the current ccd configuration in a format suitable
|
|
|
|
for use as the ccd configuration file.
|
|
|
|
If no arguments are specified, every configured ccd is dumped.
|
|
|
|
Otherwise, the configuration of each listed ccd is dumped.
|
1995-08-17 20:37:17 +04:00
|
|
|
.It Fl u
|
|
|
|
Unconfigure a ccd.
|
|
|
|
.It Fl U
|
|
|
|
Unconfigure all ccd devices listed the ccd configuration file.
|
|
|
|
.It Fl v
|
|
|
|
Causes
|
1997-09-15 05:32:32 +04:00
|
|
|
.Nm
|
1995-08-17 20:37:17 +04:00
|
|
|
to be verbose.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
A ccd is described on the command line and in the ccd configuration
|
2002-10-01 17:40:23 +04:00
|
|
|
file by the name of the ccd, the interleave factor,
|
|
|
|
the ccd configuration flags, and a list of one or more devices.
|
2014-08-13 17:14:35 +04:00
|
|
|
An interleave factor of 0 means that the devices are
|
|
|
|
concatenated serially, not interleaved.
|
2002-10-01 17:40:23 +04:00
|
|
|
The flags may be represented as a decimal number, a hexadecimal number,
|
|
|
|
a comma-separated list of strings, or the word
|
1995-08-17 20:37:17 +04:00
|
|
|
.Dq none .
|
|
|
|
The flags are as follows:
|
2003-10-17 09:23:56 +04:00
|
|
|
.Bl -column -offset indent "CCDF_UNIFORM " "0x02 "
|
2009-08-22 04:14:21 +04:00
|
|
|
.It Em "Symbolic Numeric Comment"
|
2003-10-17 09:23:56 +04:00
|
|
|
.It CCDF_UNIFORM 0x02 Use uniform interleave.
|
|
|
|
The size of all components is clamped to that of the smallest component.
|
|
|
|
.It CCDF_NOLABEL 0x04 Ignore raw disklabel.
|
|
|
|
Useful when creating a new ccd.
|
1997-11-24 09:27:01 +03:00
|
|
|
.El
|
|
|
|
.Ss /etc/ccd.conf
|
|
|
|
The file
|
|
|
|
.Pa /etc/ccd.conf
|
|
|
|
is used to configure
|
|
|
|
.Nm
|
|
|
|
if
|
|
|
|
.Fl C
|
1997-12-01 06:40:51 +03:00
|
|
|
or
|
|
|
|
.Fl U
|
1997-11-24 09:27:01 +03:00
|
|
|
is used.
|
2001-11-16 13:25:42 +03:00
|
|
|
Each line of the configuration file contains arguments as per the
|
1997-12-01 06:40:51 +03:00
|
|
|
.Fl c
|
|
|
|
argument:
|
|
|
|
.Ar ccd
|
|
|
|
.Ar ileave
|
|
|
|
.Op Ar flags
|
|
|
|
.Ar dev
|
|
|
|
.Op Ar ...
|
1995-08-17 20:37:17 +04:00
|
|
|
.Pp
|
1997-12-01 06:40:51 +03:00
|
|
|
A
|
|
|
|
.Sq #
|
|
|
|
is a comment, and everything to end of line is ignored.
|
|
|
|
A
|
|
|
|
.Sq \e
|
2001-07-27 02:49:09 +04:00
|
|
|
at the end of a line indicates that the next line should be concatenated
|
1997-12-01 06:40:51 +03:00
|
|
|
with the current.
|
|
|
|
A
|
|
|
|
.Sq \e
|
2001-08-20 16:00:46 +04:00
|
|
|
preceding any character (other than the end of line) prevents that
|
1997-12-01 06:40:51 +03:00
|
|
|
character's special meaning from taking effect.
|
1995-08-17 20:37:17 +04:00
|
|
|
.Pp
|
1997-12-01 06:40:51 +03:00
|
|
|
See
|
2001-11-16 14:26:53 +03:00
|
|
|
.Sx EXAMPLES
|
1997-12-01 06:40:51 +03:00
|
|
|
for an example of
|
|
|
|
.Pa /etc/ccd.conf .
|
2001-11-16 14:26:53 +03:00
|
|
|
.Sh FILES
|
|
|
|
/etc/ccd.conf - default ccd configuration file.
|
|
|
|
.Sh EXAMPLES
|
1995-08-17 20:37:17 +04:00
|
|
|
The following command, executed from the command line, would configure ccd0
|
|
|
|
with 4 components (/dev/sd2e, /dev/sd3e, /dev/sd4e, /dev/sd5e), and an
|
|
|
|
interleave factor of 32 blocks.
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
# ccdconfig ccd0 32 0 /dev/sd2e /dev/sd3e /dev/sd4e /dev/sd5e
|
|
|
|
.Ed
|
|
|
|
.Pp
|
1997-12-01 06:40:51 +03:00
|
|
|
An example
|
|
|
|
.Pa /etc/ccd.conf :
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
#
|
|
|
|
# /etc/ccd.conf
|
|
|
|
# Configuration file for concatenated disk devices
|
|
|
|
#
|
|
|
|
.Pp
|
|
|
|
# ccd ileave flags component devices
|
|
|
|
ccd0 16 none /dev/sd2e /dev/sd3e
|
|
|
|
.Ed
|
1995-08-17 20:37:17 +04:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr ccd 4 ,
|
2002-06-11 17:33:48 +04:00
|
|
|
.Xr ccd.conf 5 ,
|
1997-10-11 06:34:02 +04:00
|
|
|
.Xr rc 8
|
1995-08-17 20:37:17 +04:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
1997-09-15 05:32:32 +04:00
|
|
|
.Nm
|
1995-08-17 20:37:17 +04:00
|
|
|
command first appeared in
|
1997-11-24 09:27:01 +03:00
|
|
|
.Nx 1.1 .
|