From d4f93834b90c4c168742c47fcf2ca070c2af604b Mon Sep 17 00:00:00 2001 From: Chern Lee Date: Fri, 24 Aug 2001 20:44:08 +0000 Subject: [PATCH] * Placed ccd in tags * shoud -> should * exsist -> exist * specificy -> specify --- .../books/handbook/disks/chapter.sgml | 46 +++++++++++-------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/en_US.ISO8859-1/books/handbook/disks/chapter.sgml b/en_US.ISO8859-1/books/handbook/disks/chapter.sgml index 404fae124a..126a788849 100644 --- a/en_US.ISO8859-1/books/handbook/disks/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/disks/chapter.sgml @@ -1,7 +1,7 @@ @@ -1386,19 +1386,21 @@ ad3: 29333MB <WDC WD307AA> [59598/16/63] at ata1-slave UDMA33 Setting up the CCD - CCD allows me to take several identical disks and + CCD allows me to take several + identical disks and concatenate them into one logical filesystem. In order to use - ccd, I need a kernel with ccd support built into it. I added + ccd, I need a kernel with + ccd support built into it. I added this line to my kernel configuration file and rebuilt the kernel: pseudo-device ccd 4 - Ccd support can also be loaded as a kernel loadable module - in FreeBSD 4.0 or later. + ccd support can also be loaded as a + kernel loadable module in FreeBSD 4.0 or later. - To set up ccd, first I need to disklabel the disks. - Here's how I disklabeled them: + To set up ccd, first I need to + disklabel the disks. Here's how I disklabeled them: disklabel -r -w ad1 auto disklabel -r -w ad2 auto @@ -1425,7 +1427,7 @@ disklabel -e ad3 I need to add a new "e" partition for &man.ccd.4; to use. This can be a copy of the "c" partition. Once I was done, my - disklabel shoud look like this: + disklabel should look like this: 8 partitions: # size offset fstype [fsize bsize bps/cpg] @@ -1438,11 +1440,12 @@ disklabel -e ad3 Building the Filesystem Now that I have all of the disks labeled, I needed to - build the ccd. To do that, I used a utility called + build the ccd. To do that, I used a + utility called &man.ccdconfig.8;. ccdconfig takes several arguments, the first argument being the device to configure, in this case, /dev/ccd0c. The device node for - ccd0c may not exsist yet, so to create + ccd0c may not exist yet, so to create it, preform the following commands: cd /dev @@ -1455,9 +1458,9 @@ sh MAKEDEV ccd0 three hundred and eighty-four bytes. After the interleave comes the flags for ccdconfig. If - you want to enable drive mirroring, you can specificy a flag - here. In this configuration, I am not mirroring the ccd, so I - left it as zero. + you want to enable drive mirroring, you can specify a flag + here. In this configuration, I am not mirroring the + ccd, so I left it as zero. The final arguments to ccdconfig are the devices to place into the array. Putting it all together I get this @@ -1465,7 +1468,8 @@ sh MAKEDEV ccd0 ccdconfig ccd0 32 0 /dev/ad1c /dev/ad2c /dev/ad3c - This configures the ccd. I can now &man.newfs.8; the filesystem. + This configures the ccd. + I can now &man.newfs.8; the filesystem. newfs /dev/ccd0c @@ -1473,7 +1477,8 @@ sh MAKEDEV ccd0 Making It All Automagic - Finally, if I want to be able to mount the ccd, I need to + Finally, if I want to be able to mount the + ccd, I need to configure it first. I write out my current configuration to /etc/ccd.conf using the following command: @@ -1481,15 +1486,18 @@ sh MAKEDEV ccd0 When I reboot, the script /etc/rc runs ccdconfig -C if /etc/ccd.conf exists. This - automatically configures the ccd so it can be mounted. + automatically configures the ccd + so it can be mounted. If you are booting into single user mode, before you can - mount the ccd, you need to issue the following command to - configure the array: + mount the ccd, you + need to issue the following command to configure the + array: ccdconfig -C - Then, we need an entry for the ccd in /etc/fstab so it + Then, we need an entry for the ccd + in /etc/fstab so it will be mounted at boot time. /dev/ccd0c /media ufs rw 2 2