ccdconfig.8 (6d25ea1fa6800529f0d513a937d1e632b61909a3) ccdconfig.8 (05527a9a28d6e1c79ea5dbf4d76cfd57f86ece03)
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:

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

98A ccd is described on the command line and in the ccd configuration
99file by the name of the ccd, the interleave factor, the ccd configuration
100flags, and a list of one or more devices.
101The flags may be represented
102as a decimal number, a hexadecimal number, a comma-separated list
103of strings, or the word
104.Dq none .
105The flags are as follows:
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:

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

98A ccd is described on the command line and in the ccd configuration
99file by the name of the ccd, the interleave factor, the ccd configuration
100flags, and a list of one or more devices.
101The flags may be represented
102as a decimal number, a hexadecimal number, a comma-separated list
103of strings, or the word
104.Dq none .
105The flags are as follows:
106.Bd -unfilled -offset indent
106.Bd -literal -offset indent
107CCDF_UNIFORM 0x02 Use uniform interleave
108CCDF_MIRROR 0x04 Support mirroring
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.
107CCDF_UNIFORM 0x02 Use uniform interleave
108CCDF_MIRROR 0x04 Support mirroring
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 -unfilled -offset indent
116.Bd -literal -offset indent
117#
118# /etc/ccd.conf
119# Configuration file for concatenated disk devices
120#
117#
118# /etc/ccd.conf
119# Configuration file for concatenated disk devices
120#
121.Pp
121
122# ccd ileave flags component devices
123ccd0 16 none /dev/da2s1 /dev/da3s1
124.Ed
125.Pp
126The component devices need to name partitions of type
127.Li FS_BSDFFS
128(or
129.Dq 4.2BSD

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

145The second example is an example of a complex stripe/mirror combination.
146It reads as a two disk stripe of da4 and da5 which is mirrored
147to a two disk stripe of da6 and da7.
148The last example is a simple
149mirror.
150The 2nd slice of /dev/da8 is mirrored with the 3rd slice of /dev/da9
151and assigned to ccd0.
152.Pp
122# ccd ileave flags component devices
123ccd0 16 none /dev/da2s1 /dev/da3s1
124.Ed
125.Pp
126The component devices need to name partitions of type
127.Li FS_BSDFFS
128(or
129.Dq 4.2BSD

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

145The second example is an example of a complex stripe/mirror combination.
146It reads as a two disk stripe of da4 and da5 which is mirrored
147to a two disk stripe of da6 and da7.
148The last example is a simple
149mirror.
150The 2nd slice of /dev/da8 is mirrored with the 3rd slice of /dev/da9
151and assigned to ccd0.
152.Pp
153.Bd -unfilled -offset
153.Bd -literal
154# ccdconfig ccd0 64 none /dev/da0s1 /dev/da1s1 /dev/da2s1 /dev/da3s1
155# ccdconfig ccd0 128 CCDF_MIRROR /dev/da4 /dev/da5 /dev/da6 /dev/da7
156# ccdconfig ccd0 128 CCDF_MIRROR /dev/da8s2 /dev/da9s3
157.Ed
158.Pp
159When you create a new ccd disk you generally want to
160.Xr fdisk 8
161and

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

171However, if you intend to
172.Xr dd 1
173to or from a ccd partition it is usually a good idea to construct the
174partition such that it does not overlap the label area.
175For example, if
176you have A ccd disk with 10000 sectors you might create a 'd' partition
177with offset 16 and size 9984.
178.Pp
154# ccdconfig ccd0 64 none /dev/da0s1 /dev/da1s1 /dev/da2s1 /dev/da3s1
155# ccdconfig ccd0 128 CCDF_MIRROR /dev/da4 /dev/da5 /dev/da6 /dev/da7
156# ccdconfig ccd0 128 CCDF_MIRROR /dev/da8s2 /dev/da9s3
157.Ed
158.Pp
159When you create a new ccd disk you generally want to
160.Xr fdisk 8
161and

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

171However, if you intend to
172.Xr dd 1
173to or from a ccd partition it is usually a good idea to construct the
174partition such that it does not overlap the label area.
175For example, if
176you have A ccd disk with 10000 sectors you might create a 'd' partition
177with offset 16 and size 9984.
178.Pp
179.Bd -unfilled -offset
179.Bd -literal
180# disklabel ccd0 > /tmp/disklabel.ccd0
181# disklabel -Rr ccd0 /tmp/disklabel.ccd0
182# disklabel -e ccd0
183.Ed
184.Pp
185The disklabeling of a ccd disk is usually a one-time affair.
186If you reboot the machine and reconfigure the ccd disk,
187the disklabel you

--- 51 unchanged lines hidden ---
180# disklabel ccd0 > /tmp/disklabel.ccd0
181# disklabel -Rr ccd0 /tmp/disklabel.ccd0
182# disklabel -e ccd0
183.Ed
184.Pp
185The disklabeling of a ccd disk is usually a one-time affair.
186If you reboot the machine and reconfigure the ccd disk,
187the disklabel you

--- 51 unchanged lines hidden ---