/[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.27 Revision 1.29
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.27 2011/12/26 15:22:40 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/lvm2.xml,v 1.29 2012/04/01 14:34:56 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
8<author title="Author"> 8<author title="Author">
9 <mail link="avi@CFFtechnologies.com">Avi Schwartz</mail> 9 <mail link="avi@CFFtechnologies.com">Avi Schwartz</mail>
10</author> 10</author>
11<author title="Contributor"> 11<author title="Contributor">
12 <mail link="rajiv@gentoo.org">Rajiv Manglani</mail> 12 <mail link="rajiv@gentoo.org">Rajiv Manglani</mail>
13</author> 13</author>
14<author title="Editor"> 14<author title="Editor">
15 <mail link="neysx@gentoo.org">Xavier Neys</mail> 15 <mail link="neysx@gentoo.org">Xavier Neys</mail>
16</author> 16</author>
17 17
18<abstract> 18<abstract>
19This guide describes how to setup your Gentoo machine using the Logical Volume 19This guide describes how to setup your Gentoo machine using the Logical Volume
20Manager version 2 (LVM2). 20Manager version 2 (LVM2).
21</abstract> 21</abstract>
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>4</version> 27<version>6</version>
28<date>2011-12-26</date> 28<date>2012-04-01</date>
29 29
30<chapter> 30<chapter>
31<title>Introduction</title> 31<title>Introduction</title>
32<section> 32<section>
33<body> 33<body>
34 34
35<p> 35<p>
36This guide is based on an example with two SATA hard disks. It means that you 36This guide is based on an example with two SATA hard disks. It means that you
37will more than likely need to change the drive, partition names and partition 37will more than likely need to change the drive, partition names and partition
38sizes to match your own setup and needs. 38sizes to match your own setup and needs.
39</p> 39</p>
40 40
41<warn> 41<warn>
42This document is not intended to be an LVM2 tutorial. It serves as a 42This document is not intended to be an LVM2 tutorial. It serves as a
43supplement to the Gentoo installation procedure as described in the <uri 43supplement to the Gentoo installation procedure as described in the <uri
362</pre> 362</pre>
363 363
364<pre caption="Selecting the LVM2 module in a 2.6.x kernel"> 364<pre caption="Selecting the LVM2 module in a 2.6.x kernel">
365Device Drivers ---&gt; 365Device Drivers ---&gt;
366 Multiple devices driver support (RAID and LVM) ---&gt; 366 Multiple devices driver support (RAID and LVM) ---&gt;
367 [*] Multiple devices driver support (RAID and LVM) 367 [*] Multiple devices driver support (RAID and LVM)
368 &lt; &gt; RAID support 368 &lt; &gt; RAID support
369 &lt;M&gt; Device mapper support 369 &lt;M&gt; Device mapper support
370</pre> 370</pre>
371 371
372<p> 372<p>
373The compiled module is called <path>dm-mod.ko</path> 373The compiled module is called <path>dm-mod.ko</path>
374</p> 374</p>
375 375
376<p> 376<p>
377Also build an initramfs if you have <path>/usr</path> or <path>/var</path> on an
378LVM-based partition. Don't forget to edit your boot loader to boot the system
379with the initramfs and add in <c>dolvm</c> as a boot parameter.
380</p>
381
382<pre caption="Building an initramfs">
383# <i>emerge genkernel</i>
384# <i>genkernel --lvm --install initramfs</i>
385# <i>nano -w /boot/grub/grub.conf</i>
386<comment>(...)</comment>
387title Gentoo Linux
388root (hd0,0)
389kernel /kernel-3.2.2-gentoo-r5 root=/dev/sda1 <i>dolvm</i>
390<i>initrd /initramfs-genkernel-x86_64-3.2.2-gentoo-r5</i>
391</pre>
392
393<p>
377Now, install the lvm2 package. 394Now, install the lvm2 package.
378</p> 395</p>
379 396
380<impo> 397<impo>
381Make sure your <path>/usr/src/linux</path> link points to the kernel sources you 398Make sure your <path>/usr/src/linux</path> link points to the kernel sources you
382are using because the lvm2 ebuild depends on the device-mapper ebuild which 399are using because the lvm2 ebuild depends on the device-mapper ebuild which
383will check the presence of a required source file under 400will check the presence of a required source file under
384<path>/usr/src/linux/include/linux</path>. 401<path>/usr/src/linux/include/linux</path>.
385</impo> 402</impo>
386 403
387<pre caption="Emerging the LVM2 package"> 404<pre caption="Emerging the LVM2 package">
388# <i>emerge lvm2</i> 405# <i>emerge lvm2</i>
389</pre> 406</pre>
390 407
391<p> 408<p>

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.29

  ViewVC Help
Powered by ViewVC 1.1.20