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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download) (as text)
Sun Apr 11 14:39:33 2004 UTC (10 years, 3 months ago) by swift
Branch: MAIN
Changes since 1.1: +4 -0 lines
File MIME type: application/xml
Improve contents

1 swift 1.1 <?xml version='1.0' encoding="UTF-8"?>
2     <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3    
4     <guide link="/doc/en/gentoo-x86-tipsntricks.xml">
5     <title>Gentoo/x86 Installation Tips &amp; Tricks</title>
6     <author title="Author">
7     <mail link="swift@gentoo.org">Sven Vermeulen</mail>
8     </author>
9    
10     <abstract>
11     The Gentoo installation allows for very flexible approaches to the various
12     installation methods. As it is almost impossible to insert every single tip or
13     trick in the installation instructions this document tries to deal with all
14     submitted tips and tricks for reference purposes.
15     </abstract>
16    
17     <license/>
18    
19     <version>1.0</version>
20     <date>April 11, 2004</date>
21    
22     <chapter>
23     <title>Introduction</title>
24     <section>
25     <title>Preliminary</title>
26     <body>
27    
28     <p>
29     This document contains various tips and tricks for the Gentoo/x86 installation.
30     Most of them are discussed in a dense way - they are meant as an addendum to the
31     installation instructions and not as a replacement.
32     </p>
33    
34     </body>
35     </section>
36     <section>
37     <title>Contents</title>
38     <body>
39    
40 swift 1.2 <p>
41     <b>Advanced Installations</b>
42     </p>
43    
44 swift 1.1 <ul>
45     <li><uri link="#software-raid">Software RAID</uri></li>
46     </ul>
47    
48     </body>
49     </section>
50     </chapter>
51     <chapter>
52     <title>Advanced Installations</title>
53     <section id="software-raid">
54     <title>Software RAID</title>
55     <body>
56    
57     <note>
58     If you are not known to software raid, please read the <uri
59     link="http://tldp.org/HOWTO/Software-RAID-HOWTO.html">Software-RAID-HOWTO</uri>.
60     </note>
61    
62     <p>
63     Once you are booted from the LiveCD, load the appropriate RAID modules. For
64     instance, if you plan on using RAID-1:
65     </p>
66    
67     <pre caption="Loading the RAID-1 module">
68     # <i>modprobe raid1</i>
69     </pre>
70    
71     <p>
72     When you partition your disks, make sure that your partitions use <c>fd</c>
73     (Linux raid autodetect) as Partition Type instead of <c>83</c> (Linux native).
74     You can alter the partition type using the <c>t</c> command in <c>fdisk</c>.
75     </p>
76    
77     <p>
78     After partitioning, create the <path>/etc/raidtab</path> file (yes, indeed, on
79     the LiveCD environment) and insert the necessary commands for your RAID setup.
80     For instance, to have your boot, swap and root partition mirrored (RAID-1)
81     covering <path>/dev/sda</path> and <path>/dev/sdb</path>, you can use:
82     </p>
83    
84     <pre caption="/etc/raidtab for RAID-1 setup">
85     raiddev /dev/md0
86     raid-level 1
87     nr-raid-disks 2
88     chunk-size 32
89     persistent-superblock 1
90     device /dev/sda1
91     raid-disk 0
92     device /dev/sdb1
93     raid-disk 1
94    
95     raiddev /dev/md1
96     raid-level 1
97     nr-raid-disks 2
98     chunk-size 32
99     persistent-superblock 1
100     device /dev/sda2
101     raid-disk 0
102     device /dev/sdb2
103     raid-disk 1
104    
105     raiddev /dev/md2
106     raid-level 1
107     nr-raid-disks 2
108     chunk-size 32
109     persistent-superblock 1
110     device /dev/sda3
111     raid-disk 0
112     device /dev/sdb3
113     raid-disk 1
114     </pre>
115    
116     <p>
117     Now create the necessary RAID devices for each RAID device you listed in
118     <path>/etc/raidtab</path>:
119     </p>
120    
121     <pre caption="Creating RAID devices">
122     # <i>mkraid /dev/md0</i>
123     # <i>mkraid /dev/md1</i>
124     # <i>mkraid /dev/md2</i>
125     </pre>
126    
127     <p>
128     The Linux Software RAID driver will start creating the metadevices. You can see
129     its progress in <path>/proc/mdstat</path>. Wait until the metadevices are
130     completely finished before proceeding.
131     </p>
132    
133     <p>
134     From now onwards, use <path>/dev/md0</path> for the boot partition,
135     <path>/dev/md1</path> for the swap partition and <path>/dev/md2</path> for the
136     root partition.
137     </p>
138    
139     <p>
140     After mounting <path>/dev/md2</path> on <path>/mnt/gentoo</path>, don't forget
141     to copy over <path>/etc/raidtab</path> to <path>/mnt/gentoo/etc</path>.
142     </p>
143    
144     <p>
145     When you're configuring your kernel, make sure you have the appropriate RAID
146     support <e>in</e> your kernel and not as module.
147     </p>
148    
149     <p>
150     When installing extra tools, emerge <c>raidtools</c> as well. Note that this
151     isn't available on all LiveCDs so you might not be able to install Gentoo on a
152     Software RAID when using a networkless installation!
153     </p>
154    
155     <p>
156     When configuring your bootloader, make sure it gets installed in the MBR of
157     <e>both</e> disks if you use mirroring.
158     </p>
159    
160     </body>
161     </section>
162     </chapter>
163     </guide>

  ViewVC Help
Powered by ViewVC 1.1.20