/[gentoo]/xml/htdocs/doc/en/gentoo-x86-tipsntricks.xml
Gentoo

Diff of /xml/htdocs/doc/en/gentoo-x86-tipsntricks.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.16 Revision 1.17
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-tipsntricks.xml,v 1.16 2006/03/14 14:59:22 neysx Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-tipsntricks.xml,v 1.17 2006/03/30 08:49:58 neysx Exp $ -->
4 4
5<guide link="/doc/en/gentoo-x86-tipsntricks.xml"> 5<guide link="/doc/en/gentoo-x86-tipsntricks.xml">
6<title>Gentoo/x86 Installation Tips &amp; Tricks</title> 6<title>Gentoo/x86 Installation Tips &amp; Tricks</title>
7 7
8<author title="Author"> 8<author title="Author">
21 21
22<!-- The content of this document is licensed under the CC-BY-SA license --> 22<!-- The content of this document is licensed under the CC-BY-SA license -->
23<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 23<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
24<license/> 24<license/>
25 25
26<version>1.10</version> 26<version>1.11</version>
27<date>2006-03-14</date> 27<date>2006-03-30</date>
28 28
29<chapter> 29<chapter>
30<title>Introduction</title> 30<title>Introduction</title>
31<section> 31<section>
32<title>Preliminary</title> 32<title>Preliminary</title>
106Now before we start creating the RAID arrays, we need to create the metadevice 106Now before we start creating the RAID arrays, we need to create the metadevice
107nodes: 107nodes:
108</p> 108</p>
109 109
110<pre caption="Creating metadevice nodes"> 110<pre caption="Creating metadevice nodes">
111# <i>mknod /dev/md0 b 9 1</i> 111# <i>mknod /dev/md1 b 9 1</i>
112# <i>mknod /dev/md1 b 9 2</i> 112# <i>mknod /dev/md2 b 9 2</i>
113# <i>mknod /dev/md2 b 9 3</i> 113# <i>mknod /dev/md3 b 9 3</i>
114</pre> 114</pre>
115 115
116<p> 116<p>
117After partitioning, create the <path>/etc/mdadm.conf</path> file (yes, indeed, 117After partitioning, create the <path>/etc/mdadm.conf</path> file (yes, indeed,
118on the Installation CD environment) using <c>mdadm</c>, an advanced tool for <uri 118on the Installation CD environment) using <c>mdadm</c>, an advanced tool for <uri
120management</uri>. For instance, to have your boot, swap and root partition 120management</uri>. For instance, to have your boot, swap and root partition
121mirrored (RAID-1) covering <path>/dev/sda</path> and <path>/dev/sdb</path>, 121mirrored (RAID-1) covering <path>/dev/sda</path> and <path>/dev/sdb</path>,
122you can use: 122you can use:
123</p> 123</p>
124 124
125<pre caption="mdadm command example"> 125<pre caption="Creating raid devices with the mdadm command">
126# <i>mdadm --create --verbose /dev/md1 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1</i> 126# <i>mdadm --create --verbose /dev/md1 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1</i>
127# <i>mdadm --create --verbose /dev/md2 --level=1 --raid-devices=2 /dev/sda2 /dev/sdb2</i> 127# <i>mdadm --create --verbose /dev/md2 --level=1 --raid-devices=2 /dev/sda2 /dev/sdb2</i>
128# <i>mdadm --create --verbose /dev/md3 --level=1 --raid-devices=2 /dev/sda3 /dev/sdb3</i> 128# <i>mdadm --create --verbose /dev/md3 --level=1 --raid-devices=2 /dev/sda3 /dev/sdb3</i>
129<comment>(Save information about the created devices in mdadm.conf)</comment>
130# <i>mdadm --detail --scan > /etc/mdadm.conf</i>
131</pre> 129</pre>
132 130
133<impo> 131<impo>
134You should not use any form of striping such as raid-0 or raid-5 on your the 132You should not use any form of striping such as raid-0 or raid-5 on your the
135partition you boot from. 133partition you boot from.
138<p> 136<p>
139The Linux Software RAID driver will start creating the metadevices. You can see 137The Linux Software RAID driver will start creating the metadevices. You can see
140its progress in <path>/proc/mdstat</path>. Wait until the metadevices are 138its progress in <path>/proc/mdstat</path>. Wait until the metadevices are
141completely finished before proceeding. 139completely finished before proceeding.
142</p> 140</p>
141
142<pre caption="Saving information about the created devices">
143# <i>mdadm --detail --scan > /etc/mdadm.conf</i>
144</pre>
143 145
144<p> 146<p>
145From now onwards, use <path>/dev/md1</path> for the boot partition, 147From now onwards, use <path>/dev/md1</path> for the boot partition,
146<path>/dev/md2</path> for the swap partition and <path>/dev/md3</path> for the 148<path>/dev/md2</path> for the swap partition and <path>/dev/md3</path> for the
147root partition. 149root partition.

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20