189a7b2b7SSatoshi Asami.\" $NetBSD: ccdconfig.8,v 1.1.2.1 1995/11/11 02:43:33 thorpej Exp $ 289a7b2b7SSatoshi Asami.\" 389a7b2b7SSatoshi Asami.\" Copyright (c) 1995 Jason R. Thorpe. 489a7b2b7SSatoshi Asami.\" All rights reserved. 589a7b2b7SSatoshi Asami.\" 689a7b2b7SSatoshi Asami.\" Redistribution and use in source and binary forms, with or without 789a7b2b7SSatoshi Asami.\" modification, are permitted provided that the following conditions 889a7b2b7SSatoshi Asami.\" are met: 989a7b2b7SSatoshi Asami.\" 1. Redistributions of source code must retain the above copyright 1089a7b2b7SSatoshi Asami.\" notice, this list of conditions and the following disclaimer. 1189a7b2b7SSatoshi Asami.\" 2. Redistributions in binary form must reproduce the above copyright 1289a7b2b7SSatoshi Asami.\" notice, this list of conditions and the following disclaimer in the 1389a7b2b7SSatoshi Asami.\" documentation and/or other materials provided with the distribution. 1489a7b2b7SSatoshi Asami.\" 3. All advertising materials mentioning features or use of this software 1589a7b2b7SSatoshi Asami.\" must display the following acknowledgement: 1689a7b2b7SSatoshi Asami.\" This product includes software developed for the NetBSD Project 1789a7b2b7SSatoshi Asami.\" by Jason R. Thorpe. 1889a7b2b7SSatoshi Asami.\" 4. The name of the author may not be used to endorse or promote products 1989a7b2b7SSatoshi Asami.\" derived from this software without specific prior written permission. 2089a7b2b7SSatoshi Asami.\" 2189a7b2b7SSatoshi Asami.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 2289a7b2b7SSatoshi Asami.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2389a7b2b7SSatoshi Asami.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2489a7b2b7SSatoshi Asami.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2589a7b2b7SSatoshi Asami.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 2689a7b2b7SSatoshi Asami.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 2789a7b2b7SSatoshi Asami.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 2889a7b2b7SSatoshi Asami.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2989a7b2b7SSatoshi Asami.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3089a7b2b7SSatoshi Asami.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3189a7b2b7SSatoshi Asami.\" SUCH DAMAGE. 3289a7b2b7SSatoshi Asami.\" 3389a7b2b7SSatoshi Asami.Dd July 17, 1995 3489a7b2b7SSatoshi Asami.Dt CCDCONFIG 8 3589a7b2b7SSatoshi Asami.Os NetBSD 3689a7b2b7SSatoshi Asami.Sh NAME 3789a7b2b7SSatoshi Asami.Nm ccdconfig 3889a7b2b7SSatoshi Asami.Nd configuration utility for the concatenated disk driver 3989a7b2b7SSatoshi Asami.Sh SYNOPSIS 4089a7b2b7SSatoshi Asami.Nm ccdconfig 4189a7b2b7SSatoshi Asami.Op Fl cv 4289a7b2b7SSatoshi Asami.Ar ccd 4389a7b2b7SSatoshi Asami.Ar ileave 4489a7b2b7SSatoshi Asami.Op Ar flags 4589a7b2b7SSatoshi Asami.Ar dev 4689a7b2b7SSatoshi Asami.Op Ar ... 4789a7b2b7SSatoshi Asami.Nm ccdconfig 4889a7b2b7SSatoshi Asami.Fl C 4989a7b2b7SSatoshi Asami.Op Fl v 5089a7b2b7SSatoshi Asami.Op Fl f Ar config_file 5189a7b2b7SSatoshi Asami.Nm ccdconfig 5289a7b2b7SSatoshi Asami.Fl u 5389a7b2b7SSatoshi Asami.Op Fl v 5489a7b2b7SSatoshi Asami.Ar ccd 5589a7b2b7SSatoshi Asami.Op Ar ... 5689a7b2b7SSatoshi Asami.Nm ccdconfig 5789a7b2b7SSatoshi Asami.Fl U 5889a7b2b7SSatoshi Asami.Op Fl v 5989a7b2b7SSatoshi Asami.Op Fl f Ar config_file 6089a7b2b7SSatoshi Asami.Nm ccdconfig 6189a7b2b7SSatoshi Asami.Fl g 6289a7b2b7SSatoshi Asami.Op Fl M Ar core 6389a7b2b7SSatoshi Asami.Op Fl N Ar system 6489a7b2b7SSatoshi Asami.Oo 6589a7b2b7SSatoshi Asami.Ar ccd Oo ... 6689a7b2b7SSatoshi Asami.Oc 6789a7b2b7SSatoshi Asami.Oc 6889a7b2b7SSatoshi Asami.Sh DESCRIPTION 6989a7b2b7SSatoshi Asami.Nm Ccdconfig 7089a7b2b7SSatoshi Asamiis used to dynamically configure and unconfigure concatenated disk 7189a7b2b7SSatoshi Asamidevices, or ccds. For more information about the ccd, see 7289a7b2b7SSatoshi Asami.Xr ccd 4 . 7389a7b2b7SSatoshi Asami.Pp 7489a7b2b7SSatoshi AsamiThe options are as follows: 7589a7b2b7SSatoshi Asami.Bl -tag -width indent 7689a7b2b7SSatoshi Asami.It Fl c 7789a7b2b7SSatoshi AsamiConfigure a ccd. This is the default behavior of 7889a7b2b7SSatoshi Asami.Nm ccdconfig . 7989a7b2b7SSatoshi Asami.It Fl C 8089a7b2b7SSatoshi AsamiConfigure all ccd devices listed in the ccd configuration file. 8189a7b2b7SSatoshi Asami.It Fl f Ar config_file 8289a7b2b7SSatoshi AsamiWhen configuring or unconfiguring all devices, read the file 8389a7b2b7SSatoshi Asami.Pa config_file 8489a7b2b7SSatoshi Asamiinstead of the default 8589a7b2b7SSatoshi Asami.Pa /etc/ccd.conf . 8689a7b2b7SSatoshi Asami.It Fl g 8789a7b2b7SSatoshi AsamiDump the current ccd configuration in a format suitable for use as the 8889a7b2b7SSatoshi Asamiccd configuration file. If no arguments are specified, every configured 8989a7b2b7SSatoshi Asamiccd is dumped. Otherwise, the configuration of each listed ccd is dumped. 9089a7b2b7SSatoshi Asami.It Fl M Ar core 9189a7b2b7SSatoshi AsamiExtract values associated with the name list from 9289a7b2b7SSatoshi Asami.Pa core 9389a7b2b7SSatoshi Asamiinstead of the default 9489a7b2b7SSatoshi Asami.Pa /dev/mem . 9589a7b2b7SSatoshi Asami.It Fl N Ar system 9689a7b2b7SSatoshi AsamiExtract the name list from 9789a7b2b7SSatoshi Asami.Pa system 9889a7b2b7SSatoshi Asamiinstead of the default 9989a7b2b7SSatoshi Asami.Pa /netbsd . 10089a7b2b7SSatoshi Asami.It Fl u 10189a7b2b7SSatoshi AsamiUnconfigure a ccd. 10289a7b2b7SSatoshi Asami.It Fl U 10389a7b2b7SSatoshi AsamiUnconfigure all ccd devices listed the ccd configuration file. 10489a7b2b7SSatoshi Asami.It Fl v 10589a7b2b7SSatoshi AsamiCauses 10689a7b2b7SSatoshi Asami.Nm ccdconfig 10789a7b2b7SSatoshi Asamito be verbose. 10889a7b2b7SSatoshi Asami.El 10989a7b2b7SSatoshi Asami.Pp 11089a7b2b7SSatoshi AsamiA ccd is described on the command line and in the ccd configuration 11189a7b2b7SSatoshi Asamifile by the name of the ccd, the interleave factor, the ccd configuration 11289a7b2b7SSatoshi Asamiflags, and a list of one or more devices. The flags may be represented 11389a7b2b7SSatoshi Asamias a decimal number, a hexadecimal number, a comma-separated list 11489a7b2b7SSatoshi Asamiof strings, or the word 11589a7b2b7SSatoshi Asami.Dq none . 11689a7b2b7SSatoshi AsamiThe flags are as follows: 11789a7b2b7SSatoshi Asami.Bd -unfilled -offset indent 11889a7b2b7SSatoshi AsamiCCDF_SWAP 0x01 Interleave should be dmmax 11989a7b2b7SSatoshi AsamiCCDF_UNIFORM 0x02 Use uniform interleave 12089a7b2b7SSatoshi Asami.Ed 12189a7b2b7SSatoshi Asami.Pp 12289a7b2b7SSatoshi AsamiThe format in the 12389a7b2b7SSatoshi Asamiconfiguration file appears exactly as if it were entered on the command line. 12489a7b2b7SSatoshi AsamiNote that on the command line and in the configuration file, the 12589a7b2b7SSatoshi Asami.Pa flags 12689a7b2b7SSatoshi Asamiargument is optional. 12789a7b2b7SSatoshi Asami.Bd -unfilled -offset indent 12889a7b2b7SSatoshi Asami# 12989a7b2b7SSatoshi Asami# /etc/ccd.conf 13089a7b2b7SSatoshi Asami# Configuration file for concatenated disk devices 13189a7b2b7SSatoshi Asami# 13289a7b2b7SSatoshi Asami.Pp 13389a7b2b7SSatoshi Asami# ccd ileave flags component devices 13489a7b2b7SSatoshi Asamiccd0 16 none /dev/sd2e /dev/sd3e 13589a7b2b7SSatoshi Asami.Ed 13689a7b2b7SSatoshi Asami.Pp 13789a7b2b7SSatoshi Asami.Sh EXAMPLE 13889a7b2b7SSatoshi AsamiThe following command, executed from the command line, would configure ccd0 13989a7b2b7SSatoshi Asamiwith 4 components (/dev/sd2e, /dev/sd3e, /dev/sd4e, /dev/sd5e), and an 14089a7b2b7SSatoshi Asamiinterleave factor of 32 blocks. 14189a7b2b7SSatoshi Asami.Bd -unfilled -offset indent 14289a7b2b7SSatoshi Asami# ccdconfig ccd0 32 0 /dev/sd2e /dev/sd3e /dev/sd4e /dev/sd5e 14389a7b2b7SSatoshi Asami.Ed 14489a7b2b7SSatoshi Asami.Pp 14589a7b2b7SSatoshi Asami.Sh FILES 14689a7b2b7SSatoshi Asami/etc/ccd.conf - default ccd configuration file. 14789a7b2b7SSatoshi Asami.Sh SEE ALSO 14889a7b2b7SSatoshi Asami.Xr ccd 4 , 14989a7b2b7SSatoshi Asami.Xr rc 8 . 15089a7b2b7SSatoshi Asami.Sh HISTORY 15189a7b2b7SSatoshi AsamiThe 15289a7b2b7SSatoshi Asami.Nm ccdconfig 15389a7b2b7SSatoshi Asamicommand first appeared in 15489a7b2b7SSatoshi Asami.Nx 1.0a . 155