Gentoo Archives: gentoo-doc-cvs

From: Xavier Neys <neysx@×××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: gentoo-x86-tipsntricks.xml
Date: Tue, 14 Mar 2006 14:59:33
Message-Id: 200603141459.k2EExN8c014486@robin.gentoo.org
1 neysx 06/03/14 14:59:22
2
3 Modified: gentoo-x86-tipsntricks.xml
4 Log:
5 #115151 clear up when mdadm.conf should be copied and extra improvements
6
7 Revision Changes Path
8 1.16 xml/htdocs/doc/en/gentoo-x86-tipsntricks.xml
9
10 file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/gentoo-x86-tipsntricks.xml?rev=1.16&content-type=text/x-cvsweb-markup&cvsroot=gentoo
11 plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/gentoo-x86-tipsntricks.xml?rev=1.16&content-type=text/plain&cvsroot=gentoo
12 diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/gentoo-x86-tipsntricks.xml.diff?r1=1.15&r2=1.16&cvsroot=gentoo
13
14 Index: gentoo-x86-tipsntricks.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-tipsntricks.xml,v
17 retrieving revision 1.15
18 retrieving revision 1.16
19 diff -u -r1.15 -r1.16
20 --- gentoo-x86-tipsntricks.xml 3 Oct 2005 20:53:53 -0000 1.15
21 +++ gentoo-x86-tipsntricks.xml 14 Mar 2006 14:59:22 -0000 1.16
22 @@ -1,11 +1,15 @@
23 <?xml version='1.0' encoding="UTF-8"?>
24 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
25 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-tipsntricks.xml,v 1.15 2005/10/03 20:53:53 rane Exp $ -->
26 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-tipsntricks.xml,v 1.16 2006/03/14 14:59:22 neysx Exp $ -->
27
28 <guide link="/doc/en/gentoo-x86-tipsntricks.xml">
29 <title>Gentoo/x86 Installation Tips &amp; Tricks</title>
30 +
31 <author title="Author">
32 - <mail link="swift@g.o">Sven Vermeulen</mail>
33 + <mail link="swift@g.o">Sven Vermeulen</mail>
34 +</author>
35 +<author title="Editor">
36 + <mail link="neysx@g.o">Xavier Neys</mail>
37 </author>
38
39 <abstract>
40 @@ -19,8 +23,8 @@
41 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
42 <license/>
43
44 -<version>1.9</version>
45 -<date>2005-07-02</date>
46 +<version>1.10</version>
47 +<date>2006-03-14</date>
48
49 <chapter>
50 <title>Introduction</title>
51 @@ -104,9 +108,9 @@
52 </p>
53
54 <pre caption="Creating metadevice nodes">
55 -# <i>mknod /dev/md0 b 9 0</i>
56 -# <i>mknod /dev/md1 b 9 1</i>
57 -# <i>mknod /dev/md2 b 9 2</i>
58 +# <i>mknod /dev/md0 b 9 1</i>
59 +# <i>mknod /dev/md1 b 9 2</i>
60 +# <i>mknod /dev/md2 b 9 3</i>
61 </pre>
62
63 <p>
64 @@ -119,13 +123,18 @@
65 </p>
66
67 <pre caption="mdadm command example">
68 -# <i>mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1</i>
69 -# <i>mdadm --create --verbose /dev/md1 --level=1 --raid-devices=2 /dev/sda2 /dev/sdb2</i>
70 -# <i>mdadm --create --verbose /dev/md2 --level=1 --raid-devices=2 /dev/sda3 /dev/sdb3</i>
71 +# <i>mdadm --create --verbose /dev/md1 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1</i>
72 +# <i>mdadm --create --verbose /dev/md2 --level=1 --raid-devices=2 /dev/sda2 /dev/sdb2</i>
73 +# <i>mdadm --create --verbose /dev/md3 --level=1 --raid-devices=2 /dev/sda3 /dev/sdb3</i>
74 <comment>(Save information about the created devices in mdadm.conf)</comment>
75 # <i>mdadm --detail --scan > /etc/mdadm.conf</i>
76 </pre>
77
78 +<impo>
79 +You should not use any form of striping such as raid-0 or raid-5 on your the
80 +partition you boot from.
81 +</impo>
82 +
83 <p>
84 The Linux Software RAID driver will start creating the metadevices. You can see
85 its progress in <path>/proc/mdstat</path>. Wait until the metadevices are
86 @@ -133,31 +142,25 @@
87 </p>
88
89 <p>
90 -From now onwards, use <path>/dev/md0</path> for the boot partition,
91 -<path>/dev/md1</path> for the swap partition and <path>/dev/md2</path> for the
92 +From now onwards, use <path>/dev/md1</path> for the boot partition,
93 +<path>/dev/md2</path> for the swap partition and <path>/dev/md3</path> for the
94 root partition.
95 </p>
96
97 <p>
98 -After mounting <path>/dev/md2</path> on <path>/mnt/gentoo</path>, don't forget
99 -to copy over <path>/etc/mdadm.conf</path> to <path>/mnt/gentoo/etc</path>. You
100 -should also bind-mount <path>/dev</path> to <path>/mnt/gentoo/dev</path> or
101 -create the device nodes in the chrooted environment as well:
102 +Right before chrooting, don't forget to copy over <path>/etc/mdadm.conf</path>
103 +to <path>/mnt/gentoo/etc</path>.
104 </p>
105
106 -<pre caption="Bind-mounting /dev to /mnt/gentoo/dev">
107 -# <i>mount -o bind /dev /mnt/gentoo/dev</i>
108 -</pre>
109 -
110 <p>
111 When you're configuring your kernel, make sure you have the appropriate RAID
112 support <e>in</e> your kernel and not as module.
113 </p>
114
115 <p>
116 -When installing extra tools, emerge <c>mdadm</c> as well. Note that this
117 -isn't available on all Installation CDs so you might not be able to install Gentoo on a
118 -Software RAID when using a networkless installation!
119 +When installing extra tools, emerge <c>mdadm</c> as well. Note that this isn't
120 +available on all Installation CDs so you might not be able to install Gentoo on
121 +a Software RAID when using a networkless installation!
122 </p>
123
124 <p>
125
126
127
128 --
129 gentoo-doc-cvs@g.o mailing list