| Main index | Section 8 | 日本語 | Options |
The options are as follows:
| | |
| Configure a ccd. This is the default behavior of ccdconfig. | |
| | |
| Configure all ccd devices listed in the ccd configuration file. | |
| | |
| When configuring or unconfiguring all devices, read the file config_file instead of the default /etc/ccd.conf. | |
| | |
| Dump the current ccd configuration in a format suitable for use as the ccd configuration file. If no arguments are specified, every configured ccd is dumped. Otherwise, the configuration of each listed ccd is dumped. | |
| | |
| Unconfigure a ccd. | |
| | |
| Unconfigure all ccd devices listed the ccd configuration file. | |
| | |
| Cause ccdconfig to be verbose. | |
A ccd is described on the command line and in the ccd configuration file by the name of the ccd, the interleave factor, the ccd configuration flags, and a list of one or more devices. The flags may be represented as a decimal number, a hexadecimal number, a comma-separated list of strings, or the word "none". The flags are as follows:
CCDF_UNIFORM 0x02 Use uniform interleave CCDF_MIRROR 0x04 Support mirroring CCDF_NO_OFFSET 0x08 Do not use an offset CCDF_LINUX 0x0A Linux md(4) compatibility
The format in the configuration file appears exactly as if it were entered on the command line. Note that on the command line and in the configuration file, the flags argument is optional.
# # /etc/ccd.conf # Configuration file for concatenated disk devices ## ccd ileave flags component devices ccd0 16 none /dev/da2s1 /dev/da3s1
If you want to use the Linux md(4) compatibility mode, please be sure to read the notes in ccd(4).
| /etc/ccd.conf | |
| default ccd configuration file | |
# ccdconfig ccd0 64 none /dev/da0s1 /dev/da1s1 /dev/da2s1 /dev/da3s1 # ccdconfig ccd0 128 CCDF_MIRROR /dev/da4 /dev/da5 /dev/da6 /dev/da7 # ccdconfig ccd0 128 CCDF_MIRROR /dev/da8s2 /dev/da9s3
The following are matching commands in Linux and FreeBSD to create a RAID-0 in Linux and read it from FreeBSD .
# Create a RAID-0 on Linux: mdadm --create --chunk=32 --level=0 --raid-devices=2 /dev/md0 \ /dev/hda1 /dev/hdb1 # Make the RAID-0 just created available on FreeBSD: ccdconfig -c /dev/ccd0 32 linux /dev/ada0s1 /dev/ada0s2
When you create a new ccd disk you generally want to partition it using gpart(8) it before doing anything else. Beware that changing any ccd parameters: interleave, flags, or the device list making up the ccd disk, will usually destroy any prior data on that ccd disk. If this occurs it is usually a good idea to reinitialize the label before [re]constructing your ccd disk.
| CCDCONFIG (8) | January 23, 2025 |
| Main index | Section 8 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Our grievance is not just against Unix itself, but against the cult of Unix zealots who defend and nurture it. They take the heat, disease, and pestilence as givens, and, as ancient shamans did, display their wounds, some self-inflicted, as proof of their power and wizardry. We aim, through bluntness and humor, to show them that they pray to a tin god, and that science, not religion, is the path to useful and friendly technology. | ” |
| — The Unix Haters' handbook | ||