Correct various issues in the gmirror section.

PR:		docs/86650
Submitted by:	Chris Larsen <darth dot vader dot dk>
Feedback from:	flz
This commit is contained in:
Remko Lodder 2005-11-09 20:10:54 +00:00
parent e4d8188773
commit 1ec150b729
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=26301

View file

@ -267,6 +267,17 @@ XXX: What message? Put it inside the screen output above.
<screen>&prompt.root; <userinput>gmirror label -vnb round-robin gm0 /dev/da1</userinput></screen>
<para>The system should respond with:</para>
<screen>
Metadata value stored on /dev/da1.
Done.</screen>
<para>Initialize GEOM, this will load the
<filename>/boot/kernel/geom_mirror.ko</filename> kernel
module:</para>
<screen>&prompt.root; <userinput>gmirror load</userinput></screen>
<note>
<para>This command should have created the
<filename>gm0</filename>, <filename>gm0s1</filename>,
@ -276,12 +287,6 @@ XXX: What message? Put it inside the screen output above.
directory.</para>
</note>
<para>Initialize GEOM; this will load the
<filename>/boot/kernel/geom_mirror.ko</filename> kernel
module:</para>
<screen>&prompt.root; <userinput>geom load</userinput></screen>
<para>Install a generic <command>fdisk</command> label and boot code
to newly created <filename>gm0</filename> device:</para>
@ -323,9 +328,15 @@ XXX: What message? Put it inside the screen output above.
aforementioned command.</para>
<para>Now edit the replicated <filename>/mnt/etc/fstab</filename>
file and remove or comment out the swap file. Change the other
file system information to use the new disk. See the following
example:</para>
file and remove or comment out the swap file
<footnote>
<para>It should be noted that commenting out the swap file entry
in <filename>fstab</filename> will most likely require you to
re-establish a different way of enabling swap space. Please
refer to <xref linkend="adding-swap-space"> for more
information.</para>
</footnote>. Change the other file system information to use the
new disk. See the following example:</para>
<programlisting># Device Mountpoint FStype Options Dump Pass#
#/dev/da0s2b none swap sw 0 0
@ -346,10 +357,10 @@ XXX: What message? Put it inside the screen output above.
new root partition, a failsafe is available.</para>
</note>
<para>Now add the following line to
<para>Now add the following line to the new
<filename>/boot/loader.conf:</filename></para>
<screen>&prompt.root; <userinput>echo 'geom_mirror_load="YES"' &gt;&gt; /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> during system