* Placed ccd in <application> tags

* shoud -> should
* exsist -> exist
* specificy -> specify
This commit is contained in:
Chern Lee 2001-08-24 20:44:08 +00:00
parent ba1c8adaa6
commit d4f93834b9
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=10470

View file

@ -1,7 +1,7 @@
<!--
The FreeBSD Documentation Project
$FreeBSD: doc/en_US.ISO8859-1/books/handbook/disks/chapter.sgml,v 1.54 2001/08/22 06:32:24 murray Exp $
$FreeBSD: doc/en_US.ISO8859-1/books/handbook/disks/chapter.sgml,v 1.55 2001/08/24 01:05:20 logo Exp $
-->
<chapter id="disks">
@ -1386,19 +1386,21 @@ ad3: 29333MB &lt;WDC WD307AA> [59598/16/63] at ata1-slave UDMA33</programlisting
<sect2 id="ccd-setup">
<title>Setting up the CCD</title>
<para>CCD allows me to take several identical disks and
<para><application>CCD</application> 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
<application>ccd</application>, I need a kernel with
<application>ccd</application> support built into it. I added
this line to my kernel configuration file and rebuilt the
kernel:</para>
<programlisting>pseudo-device ccd 4</programlisting>
<para>Ccd support can also be loaded as a kernel loadable module
in FreeBSD 4.0 or later.</para>
<para><application>ccd</application> support can also be loaded as a
kernel loadable module in FreeBSD 4.0 or later.</para>
<para>To set up ccd, first I need to disklabel the disks.
Here's how I disklabeled them:</para>
<para>To set up <application>ccd</application>, first I need to
disklabel the disks. Here's how I disklabeled them:</para>
<programlisting>disklabel -r -w ad1 auto
disklabel -r -w ad2 auto
@ -1425,7 +1427,7 @@ disklabel -e ad3</programlisting>
<para>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:</para>
disklabel should look like this:</para>
<programlisting>8 partitions:
# size offset fstype [fsize bsize bps/cpg]
@ -1438,11 +1440,12 @@ disklabel -e ad3</programlisting>
<title>Building the Filesystem</title>
<para>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 <application>ccd</application>. To do that, I used a
utility called
&man.ccdconfig.8;. <command>ccdconfig</command> takes several arguments, the first
argument being the device to configure, in this case,
<devicename>/dev/ccd0c</devicename>. The device node for
<devicename>ccd0c</devicename> may not exsist yet, so to create
<devicename>ccd0c</devicename> may not exist yet, so to create
it, preform the following commands:</para>
<programlisting>cd /dev
@ -1455,9 +1458,9 @@ sh MAKEDEV ccd0</programlisting>
three hundred and eighty-four bytes.</para>
<para>After the interleave comes the flags for <command>ccdconfig</command>. 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.</para>
you want to enable drive mirroring, you can specify a flag
here. In this configuration, I am not mirroring the
<application>ccd</application>, so I left it as zero.</para>
<para>The final arguments to <command>ccdconfig</command> are the devices to place
into the array. Putting it all together I get this
@ -1465,7 +1468,8 @@ sh MAKEDEV ccd0</programlisting>
<programlisting>ccdconfig ccd0 32 0 /dev/ad1c /dev/ad2c /dev/ad3c</programlisting>
<para>This configures the ccd. I can now &man.newfs.8; the filesystem.</para>
<para>This configures the <application>ccd</application>.
I can now &man.newfs.8; the filesystem.</para>
<programlisting>newfs /dev/ccd0c</programlisting>
@ -1473,7 +1477,8 @@ sh MAKEDEV ccd0</programlisting>
<sect2 id="ccd-auto">
<title>Making It All Automagic</title>
<para>Finally, if I want to be able to mount the ccd, I need to
<para>Finally, if I want to be able to mount the
<application>ccd</application>, I need to
configure it first. I write out my current configuration to
<filename>/etc/ccd.conf</filename> using the following command:</para>
@ -1481,15 +1486,18 @@ sh MAKEDEV ccd0</programlisting>
<para>When I reboot, the script <command>/etc/rc</command> runs
<command>ccdconfig -C</command> if /etc/ccd.conf exists. This
automatically configures the ccd so it can be mounted.</para>
automatically configures the <application>ccd</application>
so it can be mounted.</para>
<para>If you are booting into single user mode, before you can
<command>mount</command> the ccd, you need to issue the following command to
configure the array:</para>
<command>mount</command> the <application>ccd</application>, you
need to issue the following command to configure the
array:</para>
<programlisting>ccdconfig -C</programlisting>
<para>Then, we need an entry for the ccd in <filename>/etc/fstab</filename> so it
<para>Then, we need an entry for the <application>ccd</application>
in <filename>/etc/fstab</filename> so it
will be mounted at boot time.</para>
<programlisting>/dev/ccd0c /media ufs rw 2 2</programlisting>