Deleted Added
full compact
ccdconfig.8 (149318) ccdconfig.8 (157740)
1.\" $NetBSD: ccdconfig.8,v 1.1.2.1 1995/11/11 02:43:33 thorpej Exp $
2.\"
3.\" Copyright (c) 1995 Jason R. Thorpe.
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 12 unchanged lines hidden (view full) ---

21.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27.\" SUCH DAMAGE.
28.\"
1.\" $NetBSD: ccdconfig.8,v 1.1.2.1 1995/11/11 02:43:33 thorpej Exp $
2.\"
3.\" Copyright (c) 1995 Jason R. Thorpe.
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 12 unchanged lines hidden (view full) ---

21.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27.\" SUCH DAMAGE.
28.\"
29.\" $FreeBSD: head/sbin/ccdconfig/ccdconfig.8 149318 2005-08-20 09:10:31Z simon $
29.\" $FreeBSD: head/sbin/ccdconfig/ccdconfig.8 157740 2006-04-13 20:35:31Z cracauer $
30.\"
31.Dd July 17, 1995
32.Dt CCDCONFIG 8
33.Os
34.Sh NAME
35.Nm ccdconfig
36.Nd configuration utility for the concatenated disk driver
37.Sh SYNOPSIS

--- 61 unchanged lines hidden (view full) ---

99The flags may be represented
100as a decimal number, a hexadecimal number, a comma-separated list
101of strings, or the word
102.Dq none .
103The flags are as follows:
104.Bd -literal -offset indent
105CCDF_UNIFORM 0x02 Use uniform interleave
106CCDF_MIRROR 0x04 Support mirroring
30.\"
31.Dd July 17, 1995
32.Dt CCDCONFIG 8
33.Os
34.Sh NAME
35.Nm ccdconfig
36.Nd configuration utility for the concatenated disk driver
37.Sh SYNOPSIS

--- 61 unchanged lines hidden (view full) ---

99The flags may be represented
100as a decimal number, a hexadecimal number, a comma-separated list
101of strings, or the word
102.Dq none .
103The flags are as follows:
104.Bd -literal -offset indent
105CCDF_UNIFORM 0x02 Use uniform interleave
106CCDF_MIRROR 0x04 Support mirroring
107CCDF_NO_OFFSET 0x08 Do not use an offset
108CCDF_LINUX 0x0A Linux md(4) compatibility
107.Ed
108.Pp
109The format in the
110configuration file appears exactly as if it were entered on the command line.
111Note that on the command line and in the configuration file, the
112.Pa flags
113argument is optional.
114.Bd -literal -offset indent

--- 7 unchanged lines hidden (view full) ---

122.Ed
123.Pp
124The component devices need to name partitions of type
125.Li FS_BSDFFS
126(or
127.Dq 4.2BSD
128as shown by
129.Xr disklabel 8 ) .
109.Ed
110.Pp
111The format in the
112configuration file appears exactly as if it were entered on the command line.
113Note that on the command line and in the configuration file, the
114.Pa flags
115argument is optional.
116.Bd -literal -offset indent

--- 7 unchanged lines hidden (view full) ---

124.Ed
125.Pp
126The component devices need to name partitions of type
127.Li FS_BSDFFS
128(or
129.Dq 4.2BSD
130as shown by
131.Xr disklabel 8 ) .
132.Pp
133If you want to use the Linux md(4) compatibility mode, please be sure
134to read the notes in
135.Xr ccd 4 .
130.Sh FILES
131.Bl -tag -width /etc/ccd.conf -compact
132.It Pa /etc/ccd.conf
133default ccd configuration file
134.El
135.Sh EXAMPLES
136A number of
137.Nm

--- 16 unchanged lines hidden (view full) ---

154and assigned to ccd0.
155.Pp
156.Bd -literal
157# ccdconfig ccd0 64 none /dev/da0s1 /dev/da1s1 /dev/da2s1 /dev/da3s1
158# ccdconfig ccd0 128 CCDF_MIRROR /dev/da4 /dev/da5 /dev/da6 /dev/da7
159# ccdconfig ccd0 128 CCDF_MIRROR /dev/da8s2 /dev/da9s3
160.Ed
161.Pp
136.Sh FILES
137.Bl -tag -width /etc/ccd.conf -compact
138.It Pa /etc/ccd.conf
139default ccd configuration file
140.El
141.Sh EXAMPLES
142A number of
143.Nm

--- 16 unchanged lines hidden (view full) ---

160and assigned to ccd0.
161.Pp
162.Bd -literal
163# ccdconfig ccd0 64 none /dev/da0s1 /dev/da1s1 /dev/da2s1 /dev/da3s1
164# ccdconfig ccd0 128 CCDF_MIRROR /dev/da4 /dev/da5 /dev/da6 /dev/da7
165# ccdconfig ccd0 128 CCDF_MIRROR /dev/da8s2 /dev/da9s3
166.Ed
167.Pp
168The following are matching commands in Linux and FreeBSD to create a
169raid-0 in Linux and read it from FreeBSD.
170.Bd -literal
171# Create a raid-0 on Linux:
172mdadm --create --chunk=32 --level=0 --raid-devices=2 /dev/md0 \\
173 /dev/hda1 /dev/hdb1
174# Make the raid-0 just created available on FreeBSD:
175ccdconfig -c /dev/ccd0 32 linux /dev/ad0s1 /dev/ad0s2
176.Ed
177.Pp
162When you create a new ccd disk you generally want to
163.Xr fdisk 8
164and
165.Xr disklabel 8
166it before doing anything else.
167Once you create the initial label you can
168edit it, adding additional partitions.
169The label itself takes up the first

--- 66 unchanged lines hidden ---
178When you create a new ccd disk you generally want to
179.Xr fdisk 8
180and
181.Xr disklabel 8
182it before doing anything else.
183Once you create the initial label you can
184edit it, adding additional partitions.
185The label itself takes up the first

--- 66 unchanged lines hidden ---