ccdconfig.8 (b92f49fa86981b114f6daf77453130979129fae0) | ccdconfig.8 (3f4f4a1465e1b9e6174d6bac813020768efd18b3) |
---|---|
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: --- 90 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 | 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: --- 90 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 --- |