Gentoo Archives: gentoo-doc-cvs

From: Xavier Neys <neysx@×××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: lvm2.xml
Date: Fri, 20 Jan 2006 11:43:00
Message-Id: 200601201142.k0KBghZN019986@robin.gentoo.org
1 neysx 06/01/20 11:42:43
2
3 Modified: xml/htdocs/doc/en lvm2.xml
4 Log:
5 #116288 Do not activate swap until you're done with the partitioning, and a well needed refresh
6
7 Revision Changes Path
8 1.17 +43 -34 xml/htdocs/doc/en/lvm2.xml
9
10 file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/lvm2.xml?rev=1.17&content-type=text/x-cvsweb-markup&cvsroot=gentoo
11 plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/lvm2.xml?rev=1.17&content-type=text/plain&cvsroot=gentoo
12 diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/lvm2.xml.diff?r1=1.16&r2=1.17&cvsroot=gentoo
13
14 Index: lvm2.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/lvm2.xml,v
17 retrieving revision 1.16
18 retrieving revision 1.17
19 diff -u -r1.16 -r1.17
20 --- lvm2.xml 3 Oct 2005 22:49:15 -0000 1.16
21 +++ lvm2.xml 20 Jan 2006 11:42:43 -0000 1.17
22 @@ -1,8 +1,8 @@
23 <?xml version='1.0' encoding="UTF-8"?>
24 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/lvm2.xml,v 1.16 2005/10/03 22:49:15 rane Exp $ -->
25 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/lvm2.xml,v 1.17 2006/01/20 11:42:43 neysx Exp $ -->
26 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
27
28 -<guide link = "/doc/en/lvm2.xml">
29 +<guide link="/doc/en/lvm2.xml">
30 <title>Gentoo LVM2 installation</title>
31
32 <author title="Author">
33 @@ -24,8 +24,8 @@
34 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
35 <license/>
36
37 -<version>2.0.11</version>
38 -<date>2005-08-17</date>
39 +<version>2.1</version>
40 +<date>2006-01-20</date>
41
42 <chapter>
43 <title>Introduction</title>
44 @@ -62,7 +62,7 @@
45 LVM2 support such as a Gentoo Installation CD. You can find the Installation CDs for an x86
46 architecture on our <uri
47 link="/main/en/mirrors.xml">mirrors</uri> under
48 -<path>/releases/x86/2005.1/installcd</path>. Other architectures might
49 +<path>/releases/x86/2005.1-r1/installcd</path>. Other architectures might
50 be supported as well.
51 </p>
52
53 @@ -134,21 +134,16 @@
54 </p>
55
56 <p>
57 -Create a small physical /boot partition (hda1). In this example, /boot will be
58 -not managed by LVM2. This partition will contain your bootloader and your
59 -kernel(s). A 64MB partition should be well enough for quite a few kernel
60 -generations.
61 +Create a small physical <path>/boot</path> partition (hda1). In this example,
62 +<path>/boot</path> will be not managed by LVM2. This partition will contain
63 +your bootloader and your kernel(s). A 64MB partition should be well enough for
64 +quite a few kernel generations.
65 </p>
66
67 <p>
68 -Create a swap partition (hda2) and activate it.
69 +Create a swap partition (hda2).
70 </p>
71
72 -<pre caption="Activating the swap partition">
73 -# <i>mkswap /dev/hda2</i>
74 -# <i>swapon /dev/hda2</i>
75 -</pre>
76 -
77 <p>
78 Create a / (root) partition (hda3). If you are interested in trying to put your
79 root partition under LVM management (which we do not recommend), see the
80 @@ -167,10 +162,10 @@
81 </note>
82
83 <p>
84 -Assuming the /boot, swap and root partitions do not use the whole physical disk,
85 -create a fourth partition on this disk and set it to type 8e (Linux LVM).
86 -If you have more physical drives you would like to use with LVM, create
87 -one partition on each and give them the same type (8e).
88 +Assuming the <path>/boot</path>, swap and root partitions do not use the whole
89 +physical disk, create a fourth partition on this disk and set it to type 8e
90 +(Linux LVM). If you have more physical drives you would like to use with LVM,
91 +create one partition on each and give them the same type (8e).
92 </p>
93
94 <note>
95 @@ -184,6 +179,12 @@
96 </note>
97
98 <p>
99 +Create the filesystems on <path>/dev/hda1</path> and <path>/dev/hda3</path>,
100 +and create and activate the swap on <path>/dev/hda2</path> as described in the
101 +handbook.
102 +</p>
103 +
104 +<p>
105 Load the LVM2 <path>dm-mod</path> module.
106 </p>
107
108 @@ -192,13 +193,22 @@
109 </pre>
110
111 <p>
112 -Scan and activate LVM:
113 +Before scanning and activating LVM, you might want to edit
114 +<path>/etc/lvm/lvm.conf</path> to exclude some devices. By default, LVM2 will
115 +scan all devices, even your CDROM which can generate error messages. In the
116 +following exemple, the line that allows scanning of all devices is replaced by
117 +one that rejects every device but our two IDE disks.
118 </p>
119
120 <pre caption="Activating LVM">
121 -<comment>(Avoid scanning your cdrom)</comment>
122 -# <i>mkdir -p /etc/lvm</i>
123 -# <i>echo 'devices { filter=["r/cdrom/"] }' >/etc/lvm/lvm.conf</i>
124 +<comment>(Avoid scanning all devices but our disks)</comment>
125 +# <i>nano -w /etc/lvm/lvm.conf</i>
126 +<comment>(Look for the following line)</comment>
127 + filter = [ "a/.*/" ]
128 +<comment>(Replace it with the following one to scan
129 +/dev/hda and /dev/hdb and reject anything else)</comment>
130 + filter = [ "a|/dev/hd[ab]|", "r/.*/" ]
131 +<comment>(Save the file and quit nano)</comment>
132 # <i>vgscan</i>
133 Reading all physical volumes. This may take a while...
134 No volume groups found
135 @@ -389,16 +399,16 @@
136
137 <pre caption="Emerging the LVM2 package">
138 # <i>emerge lvm2</i>
139 -<comment>(At the time of writing, the stable version is 2.00.08.
140 -With version 2.00.08, prevent lvm2 from probing your cdrom by doing:</comment>
141 -# <i>echo 'devices { filter=["r/cdrom/"] }' >> /etc/lvm/lvm.conf</i>
142 -
143 -<comment>(Versions 2.00.15 and later come with a /etc/lvm/lvm.conf
144 -Edit your /etc/lvm/lvm.conf and follow the comments</comment>
145 -# <i>nano -w /etc/lvm/lvm.conf</i>
146 </pre>
147
148 <p>
149 +Edit <path>/etc/lvm/lvm.conf</path> as described <uri
150 +link="#doc_chap2_pre2">earlier</uri>. The file you previously edited is part of
151 +your installation environment and will disappear after the next reboot. This
152 +time, you edit the real one inside your new Gentoo install.
153 +</p>
154 +
155 +<p>
156 When editing your <path>/etc/fstab</path> file, follow the handbook and add
157 your LVM2 logical volumes as needed. Again, here are a few lines needed for
158 our example:
159 @@ -481,10 +491,9 @@
160 The <uri link="http://tldp.org/HOWTO/LVM-HOWTO">LVM Howto</uri>
161 </li>
162 <li>
163 - Daniel Robbins's articles on LVM at IBM's DeveloperWorks:
164 - <uri>http://www-106.ibm.com/developerworks/linux/library/l-lvm/?dwzone=linux</uri>
165 - and
166 - <uri>http://www-106.ibm.com/developerworks/linux/library/l-lvm2.html?dwzone=linux</uri>
167 + Daniel Robbins's articles on LVM for IBM's DeveloperWorks: <uri
168 + link="/doc/en/articles/lvm-p1.xml">Part 1</uri> and <uri
169 + link="/doc/en/articles/lvm-p2.xml">Part 2</uri>
170 </li>
171 <li>
172 How to boot your root FS off of LVM1:
173
174
175
176 --
177 gentoo-doc-cvs@g.o mailing list