/[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.15 Revision 1.16
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.15 2005/10/03 20:53:53 rane Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-tipsntricks.xml,v 1.16 2006/03/14 14:59:22 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<author title="Author"> 8<author title="Author">
8 <mail link="swift@gentoo.org">Sven Vermeulen</mail> 9 <mail link="swift@gentoo.org">Sven Vermeulen</mail>
10</author>
11<author title="Editor">
12 <mail link="neysx@gentoo.org">Xavier Neys</mail>
9</author> 13</author>
10 14
11<abstract> 15<abstract>
12The Gentoo installation allows for very flexible approaches to the various 16The Gentoo installation allows for very flexible approaches to the various
13installation methods. As it is almost impossible to insert every single tip or 17installation methods. As it is almost impossible to insert every single tip or
17 21
18<!-- 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 -->
19<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 23<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
20<license/> 24<license/>
21 25
22<version>1.9</version> 26<version>1.10</version>
23<date>2005-07-02</date> 27<date>2006-03-14</date>
24 28
25<chapter> 29<chapter>
26<title>Introduction</title> 30<title>Introduction</title>
27<section> 31<section>
28<title>Preliminary</title> 32<title>Preliminary</title>
102Now 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
103nodes: 107nodes:
104</p> 108</p>
105 109
106<pre caption="Creating metadevice nodes"> 110<pre caption="Creating metadevice nodes">
107# <i>mknod /dev/md0 b 9 0</i> 111# <i>mknod /dev/md0 b 9 1</i>
108# <i>mknod /dev/md1 b 9 1</i> 112# <i>mknod /dev/md1 b 9 2</i>
109# <i>mknod /dev/md2 b 9 2</i> 113# <i>mknod /dev/md2 b 9 3</i>
110</pre> 114</pre>
111 115
112<p> 116<p>
113After partitioning, create the <path>/etc/mdadm.conf</path> file (yes, indeed, 117After partitioning, create the <path>/etc/mdadm.conf</path> file (yes, indeed,
114on 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
117mirrored (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>,
118you can use: 122you can use:
119</p> 123</p>
120 124
121<pre caption="mdadm command example"> 125<pre caption="mdadm command example">
122# <i>mdadm --create --verbose /dev/md0 --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>
123# <i>mdadm --create --verbose /dev/md1 --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>
124# <i>mdadm --create --verbose /dev/md2 --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>
125<comment>(Save information about the created devices in mdadm.conf)</comment> 129<comment>(Save information about the created devices in mdadm.conf)</comment>
126# <i>mdadm --detail --scan > /etc/mdadm.conf</i> 130# <i>mdadm --detail --scan > /etc/mdadm.conf</i>
127</pre> 131</pre>
132
133<impo>
134You should not use any form of striping such as raid-0 or raid-5 on your the
135partition you boot from.
136</impo>
128 137
129<p> 138<p>
130The Linux Software RAID driver will start creating the metadevices. You can see 139The Linux Software RAID driver will start creating the metadevices. You can see
131its progress in <path>/proc/mdstat</path>. Wait until the metadevices are 140its progress in <path>/proc/mdstat</path>. Wait until the metadevices are
132completely finished before proceeding. 141completely finished before proceeding.
133</p> 142</p>
134 143
135<p> 144<p>
136From now onwards, use <path>/dev/md0</path> for the boot partition, 145From now onwards, use <path>/dev/md1</path> for the boot partition,
137<path>/dev/md1</path> for the swap partition and <path>/dev/md2</path> for the 146<path>/dev/md2</path> for the swap partition and <path>/dev/md3</path> for the
138root partition. 147root partition.
139</p> 148</p>
140 149
141<p> 150<p>
142After mounting <path>/dev/md2</path> on <path>/mnt/gentoo</path>, don't forget 151Right before chrooting, don't forget to copy over <path>/etc/mdadm.conf</path>
143to copy over <path>/etc/mdadm.conf</path> to <path>/mnt/gentoo/etc</path>. You 152to <path>/mnt/gentoo/etc</path>.
144should also bind-mount <path>/dev</path> to <path>/mnt/gentoo/dev</path> or
145create the device nodes in the chrooted environment as well:
146</p>
147
148<pre caption="Bind-mounting /dev to /mnt/gentoo/dev">
149# <i>mount -o bind /dev /mnt/gentoo/dev</i>
150</pre> 153</p>
151 154
152<p> 155<p>
153When you're configuring your kernel, make sure you have the appropriate RAID 156When you're configuring your kernel, make sure you have the appropriate RAID
154support <e>in</e> your kernel and not as module. 157support <e>in</e> your kernel and not as module.
155</p> 158</p>
156 159
157<p> 160<p>
158When installing extra tools, emerge <c>mdadm</c> as well. Note that this 161When installing extra tools, emerge <c>mdadm</c> as well. Note that this isn't
159isn't available on all Installation CDs so you might not be able to install Gentoo on a 162available on all Installation CDs so you might not be able to install Gentoo on
160Software RAID when using a networkless installation! 163a Software RAID when using a networkless installation!
161</p> 164</p>
162 165
163<p> 166<p>
164When configuring your bootloader, make sure it gets installed in the MBR of 167When configuring your bootloader, make sure it gets installed in the MBR of
165<e>both</e> disks if you use mirroring. 168<e>both</e> disks if you use mirroring.

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

  ViewVC Help
Powered by ViewVC 1.1.20