|
Lines 267-272
Link Here
|
| 267 |
|
267 |
|
| 268 |
<screen>&prompt.root; <userinput>gmirror label -vnb round-robin gm0 /dev/da1</userinput></screen> |
268 |
<screen>&prompt.root; <userinput>gmirror label -vnb round-robin gm0 /dev/da1</userinput></screen> |
| 269 |
|
269 |
|
|
|
270 |
<para>The system should respond with:</para> |
| 271 |
<screen> |
| 272 |
Metadata value stored on /dev/da1. |
| 273 |
Done.</screen> |
| 274 |
|
| 275 |
<para>Initialize GEOM, this will load the |
| 276 |
<filename>/boot/kernel/geom_mirror.ko</filename> kernel |
| 277 |
module:</para> |
| 278 |
|
| 279 |
<screen>&prompt.root; <userinput>gmirror load</userinput></screen> |
| 280 |
|
| 270 |
<note> |
281 |
<note> |
| 271 |
<para>This command should have created the |
282 |
<para>This command should have created the |
| 272 |
<filename>gm0</filename>, <filename>gm0s1</filename>, |
283 |
<filename>gm0</filename>, <filename>gm0s1</filename>, |
|
Lines 276-287
Link Here
|
| 276 |
directory.</para> |
287 |
directory.</para> |
| 277 |
</note> |
288 |
</note> |
| 278 |
|
289 |
|
| 279 |
<para>Initialize GEOM; this will load the |
|
|
| 280 |
<filename>/boot/kernel/geom_mirror.ko</filename> kernel |
| 281 |
module:</para> |
| 282 |
|
| 283 |
<screen>&prompt.root; <userinput>geom load</userinput></screen> |
| 284 |
|
| 285 |
<para>Install a generic <command>fdisk</command> label and boot code |
290 |
<para>Install a generic <command>fdisk</command> label and boot code |
| 286 |
to newly created <filename>gm0</filename> device:</para> |
291 |
to newly created <filename>gm0</filename> device:</para> |
| 287 |
|
292 |
|
|
Lines 323-335
Link Here
|
| 323 |
aforementioned command.</para> |
328 |
aforementioned command.</para> |
| 324 |
|
329 |
|
| 325 |
<para>Now edit the replicated <filename>/mnt/etc/fstab</filename> |
330 |
<para>Now edit the replicated <filename>/mnt/etc/fstab</filename> |
| 326 |
file and remove or comment out the swap file. Change the other |
331 |
file and remove or comment out the swap file <footnote><para>It |
| 327 |
file system information to use the new disk. See the following |
332 |
should be noted that commenting out the swap file entry in |
|
|
333 |
<filename>fstab</filename> will most likely require you to |
| 334 |
re-establish a different way of enabling swap space. Please |
| 335 |
refer to <xref linkend="adding-swap-space"> for further |
| 336 |
information.</para></footnote>. Change the other file system |
| 337 |
information to use the new disk. See the following |
| 328 |
example:</para> |
338 |
example:</para> |
| 329 |
|
339 |
|
| 330 |
<programlisting># Device Mountpoint FStype Options Dump Pass# |
340 |
<screen> |
|
|
341 |
# Device Mountpoint FStype Options Dump Pass# |
| 331 |
#/dev/da0s2b none swap sw 0 0 |
342 |
#/dev/da0s2b none swap sw 0 0 |
| 332 |
/dev/mirror/gm0sa1 / ufs rw 1 1</programlisting> |
343 |
/dev/mirror/gm0s1a / ufs rw 1 1 |
|
|
344 |
</screen> |
| 345 |
|
| 333 |
|
346 |
|
| 334 |
<para>Now create a <filename>boot.conf</filename> file on both the |
347 |
<para>Now create a <filename>boot.conf</filename> file on both the |
| 335 |
current and new root partitions. This file will |
348 |
current and new root partitions. This file will |