A few wording fix ups to the GEOM chapter.

PR:		85353
Submitted by:	"Julien Gabel" <jpeg@thilelli.net> (original submission)
This commit is contained in:
Tom Rhodes 2006-10-19 03:31:13 +00:00
parent a01b4db776
commit 05d923d013
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=28882

View file

@ -148,7 +148,7 @@
<step><para>Load the <filename>geom_stripe</filename> <step><para>Load the <filename>geom_stripe</filename>
module:</para> module:</para>
<screen>&prompt.root; <userinput>kldload geom_stripe.ko</userinput></screen> <screen>&prompt.root; <userinput>kldload geom_stripe</userinput></screen>
</step> </step>
<step><para>Ensure that a suitable mount point exists. If this <step><para>Ensure that a suitable mount point exists. If this
@ -161,10 +161,9 @@
<step><para>Determine the device names for the disks which will <step><para>Determine the device names for the disks which will
be striped, and create the new stripe device. For example, be striped, and create the new stripe device. For example,
the following command could be used to stripe two unused, to stripe two unused and unpartitioned <acronym>ATA</acronym> disks,
unpartitioned <acronym>ATA</acronym> disks: for example <filename>/dev/ad2</filename> and
<filename>/dev/ad2</filename> and <filename>/dev/ad3</filename>:</para>
<filename>/dev/ad3</filename>.</para>
<screen>&prompt.root; <userinput>gstripe label -v st0 /dev/ad2 /dev/ad3</userinput></screen> <screen>&prompt.root; <userinput>gstripe label -v st0 /dev/ad2 /dev/ad3</userinput></screen>
@ -175,8 +174,9 @@ XXX: What message? Put it inside the screen output above.
--> -->
</step> </step>
<step><para>A partition table must be created on the new volume <step><para>Write a standard label, also known as a partition
with the following command:</para> table, on the new volume and install the default
bootstrap code:</para>
<screen>&prompt.root; <userinput>bsdlabel -wB /dev/stripe/st0</userinput></screen> <screen>&prompt.root; <userinput>bsdlabel -wB /dev/stripe/st0</userinput></screen>
@ -186,9 +186,9 @@ XXX: What message? Put it inside the screen output above.
in the <filename role="directory">/dev/stripe</filename> in the <filename role="directory">/dev/stripe</filename>
directory in addition to the <devicename>st0</devicename> device. directory in addition to the <devicename>st0</devicename> device.
Those include <devicename>st0a</devicename> and Those include <devicename>st0a</devicename> and
<devicename>st0c</devicename>. A file system must now be created <devicename>st0c</devicename>. At this point a file system may be created
on the <devicename>st0a</devicename> device using the following on the <devicename>st0a</devicename> device with the
<command>newfs</command> command:</para> <command>newfs</command> utility:</para>
<screen>&prompt.root; <userinput>newfs -U /dev/stripe/st0a</userinput></screen> <screen>&prompt.root; <userinput>newfs -U /dev/stripe/st0a</userinput></screen>
@ -198,8 +198,7 @@ XXX: What message? Put it inside the screen output above.
</step> </step>
</procedure> </procedure>
<para>The following command can be used to manually mount a newly <para>To manually mount the created disk stripe:</para>
created disk stripe:</para>
<screen>&prompt.root; <userinput>mount /dev/stripe/st0a /mnt</userinput></screen> <screen>&prompt.root; <userinput>mount /dev/stripe/st0a /mnt</userinput></screen>
@ -279,7 +278,7 @@ Done.</screen>
</note> </note>
<para>Install a generic <command>fdisk</command> label and boot code <para>Install a generic <command>fdisk</command> label and boot code
to newly created <devicename>gm0</devicename> device:</para> to new <devicename>gm0</devicename> device:</para>
<screen>&prompt.root; <userinput>fdisk -vBI /dev/mirror/gm0</userinput></screen> <screen>&prompt.root; <userinput>fdisk -vBI /dev/mirror/gm0</userinput></screen>
@ -294,8 +293,8 @@ Done.</screen>
the slice and partition size of the other disk.</para> the slice and partition size of the other disk.</para>
</note> </note>
<para>Use the &man.newfs.8; utility to create a default file <para>Use the &man.newfs.8; utility to construct a default <acronym>UFS</acronym>
system on the <devicename>gm0s1a</devicename> device node:</para> file system on the <devicename>gm0s1a</devicename> device node:</para>
<screen>&prompt.root; <userinput>newfs -U /dev/mirror/gm0s1a</userinput></screen> <screen>&prompt.root; <userinput>newfs -U /dev/mirror/gm0s1a</userinput></screen>
@ -326,7 +325,7 @@ Done.</screen>
refer to <xref linkend="adding-swap-space"> for more refer to <xref linkend="adding-swap-space"> for more
information.</para> information.</para>
</footnote>. Change the other file system information to use the </footnote>. Change the other file system information to use the
new disk. See the following example:</para> new disk as shown in the following example:</para>
<programlisting># Device Mountpoint FStype Options Dump Pass# <programlisting># Device Mountpoint FStype Options Dump Pass#
#/dev/da0s2b none swap sw 0 0 #/dev/da0s2b none swap sw 0 0
@ -347,15 +346,11 @@ Done.</screen>
new root partition, a failsafe is available.</para> new root partition, a failsafe is available.</para>
</note> </note>
<para>Now add the following line to the new <para>Ensure the <filename>geom_mirror.ko</filename> module will load
<filename>/boot/loader.conf</filename>:</para> on boot by running the following command:</para>
<screen>&prompt.root; <userinput>echo 'geom_mirror_load="YES"' &gt;&gt; /mnt/boot/loader.conf</userinput></screen> <screen>&prompt.root; <userinput>echo 'geom_mirror_load="YES"' &gt;&gt; /mnt/boot/loader.conf</userinput></screen>
<para>This will instruct &man.loader.8; utility to load the
<filename>geom_mirror.ko</filename> module during system
initialization.</para>
<para>Reboot the system:</para> <para>Reboot the system:</para>
<screen>&prompt.root; <userinput>shutdown -r now</userinput></screen> <screen>&prompt.root; <userinput>shutdown -r now</userinput></screen>
@ -393,7 +388,7 @@ mountroot></programlisting>
system to a &man.loader.8; prompt. Load the kernel module system to a &man.loader.8; prompt. Load the kernel module
manually:</para> manually:</para>
<screen>OK? <userinput>load geom_mirror.ko</userinput> <screen>OK? <userinput>load geom_mirror</userinput>
OK? <userinput>boot</userinput></screen> OK? <userinput>boot</userinput></screen>
<para>If this works then for whatever reason the module was not <para>If this works then for whatever reason the module was not