From owner-man-jp-reviewer@jp.freebsd.org  Thu Aug 12 14:18:51 1999
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id OAA93227;
	Thu, 12 Aug 1999 14:18:51 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from mail.yk.rim.or.jp (root@mail.yk.rim.or.jp [202.247.130.37])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id OAA93222
	for <man-jp-reviewer@jp.freebsd.org>; Thu, 12 Aug 1999 14:18:51 +0900 (JST)
	(envelope-from k-horik@yk.rim.or.jp)
Received: from localhost (ppp924.yk.rim.or.jp [202.247.185.175])
	by mail.yk.rim.or.jp (8.8.8/3.6W-RIMNET-98-06-09) with ESMTP id OAA13434
	for <man-jp-reviewer@jp.freebsd.org>; Thu, 12 Aug 1999 14:18:48 +0900 (JST)
To: man-jp-reviewer@jp.freebsd.org
X-Mailer: Mew version 1.93 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Multipart/Mixed;
	boundary="--Next_Part(Thu_Aug_12_12:48:26_1999_518)--"
Content-Transfer-Encoding: 7bit
Message-Id: <19990812141826J.k-horik@yk.rim.or.jp>
Date: Thu, 12 Aug 1999 14:18:26 +0900
From: Kazuo Horikawa <k-horik@yk.rim.or.jp>
X-Dispatcher: imput version 980905(IM100)
Lines: 331
Reply-To: man-jp-reviewer@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990727
X-Sequence: man-jp-reviewer 1456
Subject: [man-jp-reviewer 1456] ccd.4
Errors-To: owner-man-jp-reviewer@jp.freebsd.org
Sender: owner-man-jp-reviewer@jp.freebsd.org
X-Originator: k-horik@yk.rim.or.jp

----Next_Part(Thu_Aug_12_12:48:26_1999_518)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit

 ccd.4 $B$NK]Lu$G$9!#(B
 YABU (Shigeru Kasahara) $B$5$s$+$i(B man-jp 1289 $B$G$$$?$@$$$?$b$N$r%Y!<%9(B
$B$K$7$F$$$^$9!#(B


----Next_Part(Thu_Aug_12_12:48:26_1999_518)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Content-Description: ccd.4 Japanese
Content-Disposition: attachment; filename=ccd.4

.\"	%NetBSD: ccd.4,v 1.5 1995/10/09 06:09:09 thorpej Exp %
.\"
.\" Copyright (c) 1994 Jason Downs.
.\" Copyright (c) 1994, 1995 Jason R. Thorpe.
.\" All rights reserved.
.\"
.\" 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.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"	This product includes software developed for the NetBSD Project
.\"	by Jason Downs and Jason R. Thorpe.
.\" 4. Neither the name of the author nor the names of its contributors
.\"    may be used to endorse or promote products derived from this software
.\"    without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR 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.
.\"
.\" jpman %Id: ccd.4,v 0.0 1999/02/22 16:13:16 horikawa Stab %
.\" Based on Japanese translation by
.\" YABU (Shigeru Kasahara) <bush@jrtokyohosp.gr.jp> [man-jp 1289]
.Dd August 9, 1995
.Dt CCD 4
.Os NetBSD
.Sh $BL>>N(B
.Nm ccd
.Nd $B7k9g%G%#%9%/%I%i%$%P(B
.Sh $B=q<0(B
.Cd "pseudo-device ccd 4"
.Sh $B2r@b(B
.Nm
$B%I%i%$%P$O!"(B
1 $B$D0J>e$N%G%#%9%/$d%Q!<%F%#%7%g%s$r7k9g$7!"(B
1 $B$D$N2>A[%G%#%9%/$K$9$k$3$H$r2DG=$K$7$^$9!#(B
.Pp
$B$3$NJ8=q$O!"FI<T$,%+!<%M%k$r@8@.$G$-$k$3$H!"(B
$B%+!<%M%k$N@_Dj%U%!%$%k$N$J$+$G%G%#%9%/$H2>A[%G%P%$%9$r@5$7$/@_Dj$G$-$k$3$H!"(B
$B%G%#%9%/%Q!<%F%#%7%g%s$rE,@Z$K@Z$l$k$3$H$rA0Ds$H$7$F$$$^$9!#(B
.Pp
.Sq $B@8$N(B
$B%G%#%9%/%Q!<%F%#%7%g%s$O!"7k9g(B
.Pa $B$9$Y$-$G$O$"$j$^$;$s(B
$B!#9=@.MWAG$N%Q!<%F%#%7%g%s$H$7$F$O!"(BFS_BSDFS $B%?%$%W(B (
.Xr disllabel 8
$B$G$O!"%?%$%W(B
.Dq 4.2BSD
$B$HI=<($5$l$^$9(B) $B$N$_!"%+!<%M%k$O<u$1F~$l$^$9!#(B
.Pp
ccd $B%5%]!<%H$r%+!<%M%k$KAH$_9~$`$K$O!"(B
$B%+!<%M%k$N@_Dj%U%!%$%kCf$K<!$N$h$&$J9T$rA^F~$9$kI,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BC10l%G%#%9%/$N(B
.Nm 
$B$O%*%j%8%J%k$N%Q!<%F%#%7%g%s$HF1$8$G$O$J$$$3$H$KCm0U$7$F$/$@$5$$!#(B
$B$3$l$OFC$K!"(B2 $B8D$N%G%#%9%/$G%_%i!<$5$l$?(B
.Nm
$B>e$K%U%!%$%k%7%9%F%`$,$"$C$FJRJ}$N%G%#%9%/$,ITNI$K$J$C$?$H$9$k$H!"(B
$B;D$j$N%Q!<%F%#%7%g%s$r%^%&%s%H$7$F$=$N$^$^;H$&$3$H$O$G$-$J$$$3$H$r0UL#$7$^$9!#(B
$B$3$N>l9g!"C10l%G%#%9%/$N(B
.Nm
$B$H$7$F;H$&I,MW$,$"$j$^$9!#(B
.Sh $B7Y9p(B
.Nm
$B$H$7$F;HMQ$7$F$$$k(B 1 $B8D(B ($B0J>e(B) $B$N%G%#%9%/$,ITNI$H$J$C$?>l9g!"(B
$B%G%#%9%/$r%_%i!<%j%s%0$7$F$$$k$N$G$J$1$l$P!"(B
$B%U%!%$%k%7%9%F%`A4BN$,<:$o$l$^$9!#(B
.Sh $B4XO"%U%!%$%k(B
/dev/{,r}ccd* - ccd $B%G%P%$%9$NFC<l%U%!%$%k!#(B
.Pp
.Sh $BNr;K(B
$B7k9g%G%#%9%/%I%i%$%P$O!"$b$H$b$H(B University of Utah $B$G5-=R$5$l$^$7$?!#(B
.Sh $B4XO"9`L\(B
.Xr dd 1 ,
.Xr ccdconfig 8 ,
.Xr config 8 ,
.Xr disklabel 8 ,
.Xr fsck 8 ,
.Xr MAKEDEV 8 ,
.Xr mount 8 ,
.Xr newfs 8

----Next_Part(Thu_Aug_12_12:48:26_1999_518)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Description: ccd.4 English
Content-Disposition: attachment; filename=ccd.4.eng

.\"	$NetBSD: ccd.4,v 1.5 1995/10/09 06:09:09 thorpej Exp $
.\"
.\" Copyright (c) 1994 Jason Downs.
.\" Copyright (c) 1994, 1995 Jason R. Thorpe.
.\" All rights reserved.
.\"
.\" 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.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"	This product includes software developed for the NetBSD Project
.\"	by Jason Downs and Jason R. Thorpe.
.\" 4. Neither the name of the author nor the names of its contributors
.\"    may be used to endorse or promote products derived from this software
.\"    without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR 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.
.\"
.Dd August 9, 1995
.Dt CCD 4
.Os NetBSD
.Sh NAME
.Nm ccd
.Nd Concatenated Disk Driver
.Sh SYNOPSIS
.Cd "pseudo-device ccd 4"
.Sh DESCRIPTION
The
.Nm
driver provides the capability of combining one or more disks/partitions
into one virtual disk.
.Pp
This document assumes that you're familiar with how to generate kernels,
how to properly configure disks and pseudo-devices in a kernel
configuration file, and how to partition disks.
.Pp
Note that the
.Sq raw
partitions of the disks
.Pa should not
be combined.  The kernel will only allow component partitions of type
FS_BSDFFS (type
.Dq 4.2BSD
as shown as
.Xr disklabel 8 ).
.Pp
In order to compile in support for the ccd, you must add a line similar
to the following to your kernel configuration file:
.Bd -unfilled -offset indent
pseudo-device	ccd	4	# concatenated disk devices
.Ed
.Pp
The count argument is how many
.Nm ccds
memory is allocated for a boot time.  In this example, no more than 4
.Nm ccds
may be configured.
.Pp
A
.Nm ccd
may be either serially concatenated or interleaved.  To serially
concatenate the partitions, specify the interleave factor of 0.
.Pp
There is a run-time utility that is used for configuring
.Nm ccds .
See
.Xr ccdconfig 8
for more information.
.Ss The Interleave Factor
If a
.Nm ccd
is interleaved correctly, a
.Dq striping
effect is achieved, which can increase sequential read/write
performance.  The interleave factor is expressed in units of DEV_BSIZE
(usually 512 bytes).  For large writes, the optimum interleave factor
is typically the size of a track, while for large reads, it is about a
quarter of a track. (Note that this changes greatly depending on the
number and speed of disks.)  For instance, with eight 7,200 RPM drives
on two Fast-Wide SCSI buses, this translates to about 128 for writes
and 32 for reads.
.Pp
The best performance is achieved if all component disks have the same
geometry and size.  Optimum striping cannot occur with different
disk types.
.Pp
For random-access oriented workloads, such as news servers, a larger
interleave factor (e.g., 65,536) is more desirable.  Note that there
isn't much
.Nm ccd
can do to speed up applications that are seek-time limited.  Larger
interleave factors will at least reduce the chance of having to seek
two disk-heads to read one directory or a file.
.Ss Disk Mirroring
You can configure the
.Nm ccd
to
.Dq mirror
any even number of disks.  See
.Xr ccdconfig 8
for how to specify the necessary flags.  In an event of a disk
failure, you can use
.Xr dd 1
to recover the failed disk.
.Pp
Note that a one-disk
.Nm ccd
is not the same as the original partition.  In particular, this means
if you have a filesystem on a two-disk mirrored
.Nm ccd
and one of the disks fail, you cannot mount and use the remaining
partition as itself; you have to configure it as a one-disk
.Nm ccd.
.Sh WARNINGS
If just one (or more) of the disks in a
.Nm ccd
fails, the entire
file system will be lost unless you are mirroring the disks.
.Sh FILES
/dev/{,r}ccd* - ccd device special files.
.Pp
.Sh HISTORY
The concatenated disk driver was originally written at the University of
Utah.
.Sh SEE ALSO
.Xr dd 1 ,
.Xr ccdconfig 8 ,
.Xr config 8 ,
.Xr disklabel 8 ,
.Xr fsck 8 ,
.Xr MAKEDEV 8 ,
.Xr mount 8 ,
.Xr newfs 8 .

----Next_Part(Thu_Aug_12_12:48:26_1999_518)----
