ccdconfig.8 (6907df799e874f2083bd8f05bfb0698ee7e4ac88) | ccdconfig.8 (f6b811bedb664fc17687064a575042e55c2a0eb5) |
---|---|
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: --- 136 unchanged lines hidden (view full) --- 145.Pp 146.Bd -unfilled -offset 147# ccdconfig ccd0 64 none /dev/da2e /dev/da3e /dev/da4e /dev/da5e 148# ccdconfig ccd0 128 CCDF_MIRROR /dev/da2e /dev/da3e /dev/da4e /dev/da5e 149# ccdconfig ccd0 128 CCDF_MIRROR /dev/da2e /dev/da4e 150.Ed 151.Pp 152When you create a new ccd disk you generally want to | 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: --- 136 unchanged lines hidden (view full) --- 145.Pp 146.Bd -unfilled -offset 147# ccdconfig ccd0 64 none /dev/da2e /dev/da3e /dev/da4e /dev/da5e 148# ccdconfig ccd0 128 CCDF_MIRROR /dev/da2e /dev/da3e /dev/da4e /dev/da5e 149# ccdconfig ccd0 128 CCDF_MIRROR /dev/da2e /dev/da4e 150.Ed 151.Pp 152When you create a new ccd disk you generally want to |
153.Nm disklabel | 153.Xr disklabel 8 |
154it before doing anything else. Once you create the initial label you can 155edit it, adding additional partitions. The label itself takes up the first 15616 sectors of the ccd disk. If all you are doing is creating file systems 157with newfs, you do not have to worry about this as newfs will skip the 158label area. However, if you intend to | 154it before doing anything else. Once you create the initial label you can 155edit it, adding additional partitions. The label itself takes up the first 15616 sectors of the ccd disk. If all you are doing is creating file systems 157with newfs, you do not have to worry about this as newfs will skip the 158label area. However, if you intend to |
159.Nm dd | 159.Xr dd 1 |
160to or from a ccd partition it is usually a good idea to construct the 161partition such that it does not overlap the label area. For example, if 162you have A ccd disk with 10000 sectors you might create a 'd' partition 163with offset 16 and size 9984. 164.Pp 165.Bd -unfilled -offset 166# disklabel ccd0 > /tmp/disklabel.ccd0 167# disklabel -Rr ccd0 /tmp/disklabel.ccd0 --- 14 unchanged lines hidden (view full) --- 182mirroring option. But mirroring has its own perils: It assumes that 183both copies of the data at any given sector are the same. This holds true 184until a write error occurs or until you replace either side of the mirror. 185This is a poor-man's mirroring implementation. It works well enough that if 186you begin to get disk errors you should be able to backup the ccd disk, 187replace the broken hardware, and then regenerate the ccd disk. If you need 188more than this you should look into external hardware RAID SCSI boxes, 189RAID controllers such as the | 160to or from a ccd partition it is usually a good idea to construct the 161partition such that it does not overlap the label area. For example, if 162you have A ccd disk with 10000 sectors you might create a 'd' partition 163with offset 16 and size 9984. 164.Pp 165.Bd -unfilled -offset 166# disklabel ccd0 > /tmp/disklabel.ccd0 167# disklabel -Rr ccd0 /tmp/disklabel.ccd0 --- 14 unchanged lines hidden (view full) --- 182mirroring option. But mirroring has its own perils: It assumes that 183both copies of the data at any given sector are the same. This holds true 184until a write error occurs or until you replace either side of the mirror. 185This is a poor-man's mirroring implementation. It works well enough that if 186you begin to get disk errors you should be able to backup the ccd disk, 187replace the broken hardware, and then regenerate the ccd disk. If you need 188more than this you should look into external hardware RAID SCSI boxes, 189RAID controllers such as the |
190.Nm dpt | 190.Xr dpt 4 |
191controller, or software RAID systems such as | 191controller, or software RAID systems such as |
192.Nm vinum . | 192.Xr vinum 8 . |
193.Sh FILES 194.Bl -tag -width /etc/ccd.conf -compact 195.It Pa /etc/ccd.conf 196default ccd configuration file 197.El 198.Sh SEE ALSO | 193.Sh FILES 194.Bl -tag -width /etc/ccd.conf -compact 195.It Pa /etc/ccd.conf 196default ccd configuration file 197.El 198.Sh SEE ALSO |
199.Xr dd 1 , |
|
199.Xr ccd 4 , | 200.Xr ccd 4 , |
201.Xr dpt 4 , 202.Xr disklabel 8 , |
|
200.Xr rc 8 , 201.Xr vinum 8 202.Sh BUGS 203The initial disklabel returned by 204.Xr ccd 4 205specifies only 3 partitions. 206One needs to change the number of paritions to "8" using `disklabel -e' 207to get the usual BSD expectations. 208.Sh HISTORY 209The 210.Nm 211utility first appeared in 212.Nx 1.0a . | 203.Xr rc 8 , 204.Xr vinum 8 205.Sh BUGS 206The initial disklabel returned by 207.Xr ccd 4 208specifies only 3 partitions. 209One needs to change the number of paritions to "8" using `disklabel -e' 210to get the usual BSD expectations. 211.Sh HISTORY 212The 213.Nm 214utility first appeared in 215.Nx 1.0a . |