/[gentoo]/xml/htdocs/doc/en/lvm2.xml
Gentoo

Diff of /xml/htdocs/doc/en/lvm2.xml

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

Revision 1.30 Revision 1.31
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/lvm2.xml,v 1.30 2013/01/18 23:06:26 nightmorph Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/lvm2.xml,v 1.31 2013/01/20 16:21:39 swift Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4 4
5<guide> 5<guide>
6<title>Gentoo LVM2 installation</title> 6<title>Gentoo LVM2 installation</title>
7 7
22 22
23<!-- The content of this document is licensed under the CC-BY-SA license --> 23<!-- The content of this document is licensed under the CC-BY-SA license -->
24<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 24<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
25<license/> 25<license/>
26 26
27<version>7</version> 27<version>8</version>
28<date>2013-01-18</date> 28<date>2013-01-20</date>
29 29
30<chapter> 30<chapter>
31<title>Introduction</title> 31<title>Introduction</title>
32<section> 32<section>
33<body> 33<body>
70space, you will need to enable the LVM2 module (<path>dm-mod</path>) in the 70space, you will need to enable the LVM2 module (<path>dm-mod</path>) in the
71kernel. This module is available in <path>gentoo-sources</path>. Compiling 71kernel. This module is available in <path>gentoo-sources</path>. Compiling
72your kernel and getting LVM2 to work is covered later in this guide. 72your kernel and getting LVM2 to work is covered later in this guide.
73</p> 73</p>
74 74
75<p>
76Not all 2.4 kernels provided by Gentoo support LVM2!
77</p>
78
79</body> 75</body>
80</section> 76</section>
81<section> 77<section>
82<title>Partitions</title> 78<title>Partitions</title>
83<body> 79<body>
139Create a / (root) partition (sda3). If you are interested in trying to put your 135Create a / (root) partition (sda3). If you are interested in trying to put your
140root partition under LVM management (which we do not recommend), see the 136root partition under LVM management (which we do not recommend), see the
141resources section at the end of this guide for a link to a mini-howto on how to 137resources section at the end of this guide for a link to a mini-howto on how to
142do this. The size of the root partition need not be large if you will keep 138do this. The size of the root partition need not be large if you will keep
143<path>/opt /usr /home /var</path> and <path>/tmp</path> in an LVM2 Volume Group 139<path>/opt /usr /home /var</path> and <path>/tmp</path> in an LVM2 Volume Group
144(vg). In this case, 1GB should be sufficient. 140(vg). In this case, 1GB should be sufficient. Note however that, if you have
141<path>/usr</path> or <path>/var</path> in an LVM2 volume group, you will need to
142boot the system with an initramfs.
145</p> 143</p>
146 144
147<note> 145<note>
148It is <b>not</b> recommended to put the following directories in an 146It is <b>not</b> recommended to put the following directories in an
149LVM2 partition: <path>/etc</path>, <path>/lib</path>, <path>/mnt</path>, 147LVM2 partition: <path>/etc</path>, <path>/lib</path>, <path>/mnt</path>,
150<path>/proc</path>, <path>/sbin</path>, <path>/dev</path>, and 148<path>/proc</path>, <path>/sbin</path>, <path>/dev</path>, and
151<path>/root</path>. This way, you would still be able to log into your system 149<path>/root</path>. This way, you would still be able to log into your system
152(crippled, but still somewhat usable, as root) if something goes terribly wrong. 150(crippled, but still somewhat usable, as root) if something goes terribly wrong.
151Also exclude <path>/usr</path> and <path>/var</path> from LVM2 if you do not
152want to boot with an initramfs.
153</note> 153</note>
154 154
155<p> 155<p>
156Assuming the <path>/boot</path>, swap and root partitions do not use the whole 156Assuming the <path>/boot</path>, swap and root partitions do not use the whole
157physical disk, create a fourth partition on this disk and set it to type 8e 157physical disk, create a fourth partition on this disk and set it to type 8e
346walk you through it again except to point out differences. 346walk you through it again except to point out differences.
347</note> 347</note>
348 348
349<p> 349<p>
350When configuring your kernel, make sure to configure your kernel to 350When configuring your kernel, make sure to configure your kernel to
351support LVM2 (not all 2.4 kernels do). Select the LVM2 module as follows: 351support LVM2. Select the LVM2 module as follows:
352</p> 352</p>
353 353
354<pre caption="Selecting the LVM2 module in a 2.4.x kernel"> 354<pre caption="Selecting the LVM2 module in the Linux kernel">
355Multi-device support (RAID and LVM) ---&gt;
356 [*] Multiple devices driver support (RAID and LVM)
357 &lt; &gt; RAID support
358<comment>(Note that LVM is not selected on purpose, this was for LVM1)</comment>
359 &lt; &gt; Logical volume manager (LVM) support
360 &lt;M&gt; Device-mapper support
361 &lt; &gt; Mirror (RAID-1) support
362</pre>
363
364<pre caption="Selecting the LVM2 module in a 2.6.x kernel">
365Device Drivers ---&gt; 355Device Drivers ---&gt;
366 Multiple devices driver support (RAID and LVM) ---&gt; 356 Multiple devices driver support (RAID and LVM) ---&gt;
367 [*] Multiple devices driver support (RAID and LVM) 357 [*] Multiple devices driver support (RAID and LVM)
368 &lt; &gt; RAID support 358 &lt; &gt; RAID support
369 &lt;M&gt; Device mapper support 359 &lt;M&gt; Device mapper support

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

  ViewVC Help
Powered by ViewVC 1.1.20