/[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.9 Revision 1.10
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.9 2004/11/21 22:10:01 neysx Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/lvm2.xml,v 1.10 2005/02/13 14:01:22 aaby Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4 4
5<guide link = "/doc/en/lvm2.xml"> 5<guide link = "/doc/en/lvm2.xml">
6<title>Gentoo LVM2 installation</title> 6<title>Gentoo LVM2 installation</title>
7<author title="Author"> 7<author title="Author">
62<path>/releases/x86/2004.3/livecd</path>. Other architectures might 62<path>/releases/x86/2004.3/livecd</path>. Other architectures might
63be supported as well. 63be supported as well.
64</p> 64</p>
65 65
66<p> 66<p>
67It you install LVM2 on a currently running system with some spare hard disk 67If you install LVM2 on a currently running system with some spare hard disk
68space, you will need to enable the LVM2 module (<path>dm-mod</path>). This 68space, you will need to enable the LVM2 module (<path>dm-mod</path>). This
69module is available in <path>gentoo-sources</path>, in 69module is available in <path>gentoo-sources</path>, in
70<path>development-sources</path> and in <path>gentoo-dev-sources</path>. 70<path>development-sources</path> and in <path>gentoo-dev-sources</path>.
71Compiling your kernel and getting LVM2 to work is covered later in this guide. 71Compiling your kernel and getting LVM2 to work is covered later in this guide.
72</p> 72</p>
80<section> 80<section>
81<title>Partitions</title> 81<title>Partitions</title>
82<body> 82<body>
83 83
84<p> 84<p>
85Our example system has 2 IDE hard disks and will be partitioned as follows: 85Our example system has two IDE hard disks and will be partitioned as follows:
86</p> 86</p>
87 87
88<ul> 88<ul>
89 <li>/dev/hda1 -- /boot</li> 89 <li>/dev/hda1 -- /boot</li>
90 <li>/dev/hda2 -- (swap)</li> 90 <li>/dev/hda2 -- (swap)</li>
149</p> 149</p>
150 150
151<note> 151<note>
152It is <b>not</b> recommended to put the following directories in an 152It is <b>not</b> recommended to put the following directories in an
153LVM2 partition: <path>/etc</path>, <path>/lib</path>, <path>/mnt</path>, 153LVM2 partition: <path>/etc</path>, <path>/lib</path>, <path>/mnt</path>,
154<path>/proc</path>, <path>/sbin</path>, <path>/dev</path>, <path>/root</path>. 154<path>/proc</path>, <path>/sbin</path>, <path>/dev</path>, and <path>/root</path>.
155This way, you would still be able to log into your system (crippled, but 155This way, you would still be able to log into your system (crippled, but
156still somewhat usable, as root) if something goes terribly wrong. 156still somewhat usable, as root) if something goes terribly wrong.
157</note> 157</note>
158 158
159<p> 159<p>
270sizes because they can always be expanded as needed. 270sizes because they can always be expanded as needed.
271</p> 271</p>
272 272
273<note> 273<note>
274As Terje Kvernes commented, it is easier to increase the size of a partition 274As Terje Kvernes commented, it is easier to increase the size of a partition
275then to shrink it. You might want therefore to start with smaller partitions 275then to shrink it. You might therefore want to start with smaller partitions
276and increase their size as needed. 276and increase their size as needed.
277</note> 277</note>
278 278
279<pre caption="Creating and extending logical volumes"> 279<pre caption="Creating and extending logical volumes">
280# <i>lvcreate -L10G -nusr vg</i> 280# <i>lvcreate -L10G -nusr vg</i>
329<p> 329<p>
330When configuring your kernel, make sure to configure your kernel to 330When configuring your kernel, make sure to configure your kernel to
331support LVM2 (not all 2.4 kernels do). Select the LVM2 module as follows: 331support LVM2 (not all 2.4 kernels do). Select the LVM2 module as follows:
332</p> 332</p>
333 333
334<pre caption="Selecting the LVM2 module in a kernel 2.4.x"> 334<pre caption="Selecting the LVM2 module in a 2.4.x kernel">
335Multi-device support (RAID and LVM) ---&gt; 335Multi-device support (RAID and LVM) ---&gt;
336 [*] Multiple devices driver support (RAID and LVM) 336 [*] Multiple devices driver support (RAID and LVM)
337 &lt; &gt; RAID support 337 &lt; &gt; RAID support
338<comment>(Note that LVM is not selected on purpose, this was for LVM1)</comment> 338<comment>(Note that LVM is not selected on purpose, this was for LVM1)</comment>
339 &lt; &gt; Logical volume manager (LVM) support 339 &lt; &gt; Logical volume manager (LVM) support
340 &lt;M&gt; Device-mapper support 340 &lt;M&gt; Device-mapper support
341 &lt; &gt; Mirror (RAID-1) support 341 &lt; &gt; Mirror (RAID-1) support
342</pre> 342</pre>
343 343
344<pre caption="Selecting the LVM2 module in a kernel 2.6.x"> 344<pre caption="Selecting the LVM2 module in a 2.6.x kernel">
345Device Drivers ---&gt; 345Device Drivers ---&gt;
346 Multi-device support (RAID and LVM) ---&gt; 346 Multi-device support (RAID and LVM) ---&gt;
347 [*] Multiple devices driver support (RAID and LVM) 347 [*] Multiple devices driver support (RAID and LVM)
348 &lt; &gt; RAID support 348 &lt; &gt; RAID support
349 &lt;M&gt; Device mapper support 349 &lt;M&gt; Device mapper support

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20