ccdconfig.8 (3f4f4a1465e1b9e6174d6bac813020768efd18b3) | ccdconfig.8 (d5bd01d2136ab3597c686edfa5b63ba33312c4f8) |
---|---|
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: --- 116 unchanged lines hidden (view full) --- 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 | 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: --- 116 unchanged lines hidden (view full) --- 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 | 133If you want to use the 134.Tn Linux 135.Xr md 4 136compatibility mode, please be sure |
134to read the notes in 135.Xr ccd 4 . 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 --- 18 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 | 137to read the notes in 138.Xr ccd 4 . 139.Sh FILES 140.Bl -tag -width /etc/ccd.conf -compact 141.It Pa /etc/ccd.conf 142default ccd configuration file 143.El 144.Sh EXAMPLES --- 18 unchanged lines hidden (view full) --- 163and assigned to ccd0. 164.Pp 165.Bd -literal 166# ccdconfig ccd0 64 none /dev/da0s1 /dev/da1s1 /dev/da2s1 /dev/da3s1 167# ccdconfig ccd0 128 CCDF_MIRROR /dev/da4 /dev/da5 /dev/da6 /dev/da7 168# ccdconfig ccd0 128 CCDF_MIRROR /dev/da8s2 /dev/da9s3 169.Ed 170.Pp |
168The following are matching commands in Linux and FreeBSD to create a 169raid-0 in Linux and read it from FreeBSD. | 171The following are matching commands in 172.Tn Linux 173and 174.Fx 175to create a RAID-0 in 176.Tn Linux 177and read it from 178.Fx . |
170.Bd -literal | 179.Bd -literal |
171# Create a raid-0 on Linux: | 180# Create a RAID-0 on Linux: |
172mdadm --create --chunk=32 --level=0 --raid-devices=2 /dev/md0 \\ 173 /dev/hda1 /dev/hdb1 | 181mdadm --create --chunk=32 --level=0 --raid-devices=2 /dev/md0 \\ 182 /dev/hda1 /dev/hdb1 |
174# Make the raid-0 just created available on FreeBSD: | 183# Make the RAID-0 just created available on FreeBSD: |
175ccdconfig -c /dev/ccd0 32 linux /dev/ad0s1 /dev/ad0s2 176.Ed 177.Pp 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. --- 69 unchanged lines hidden --- | 184ccdconfig -c /dev/ccd0 32 linux /dev/ad0s1 /dev/ad0s2 185.Ed 186.Pp 187When you create a new ccd disk you generally want to 188.Xr fdisk 8 189and 190.Xr disklabel 8 191it before doing anything else. --- 69 unchanged lines hidden --- |