/[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.8 Revision 1.9
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.8 2004/09/25 12:42:43 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/lvm2.xml,v 1.9 2004/11/21 22:10:01 neysx 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">
19Manager version 2 (LVM2). 19Manager version 2 (LVM2).
20</abstract> 20</abstract>
21 21
22<license/> 22<license/>
23 23
24<version>2.0.5</version> 24<version>2.0.6</version>
25<date>September 25, 2004</date> 25<date>2004-11-21</date>
26 26
27<chapter> 27<chapter>
28<title>Introduction</title> 28<title>Introduction</title>
29<section> 29<section>
30<body> 30<body>
57<p> 57<p>
58If you do a fresh install of Gentoo, you will need to use a bootable CD with 58If you do a fresh install of Gentoo, you will need to use a bootable CD with
59LVM2 support such as a Gentoo LiveCD. You can find the LiveCD for an x86 59LVM2 support such as a Gentoo LiveCD. You can find the LiveCD for an x86
60architecture on our <uri 60architecture on our <uri
61link="http://www.gentoo.org/main/en/mirrors.xml">mirrors</uri> under 61link="http://www.gentoo.org/main/en/mirrors.xml">mirrors</uri> under
62<path>/releases/x86/2004.0/livecd/universal</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 67It you install LVM2 on a currently running system with some spare hard disk
172until you know you need it. As an example, one contributor had split his 172until you know you need it. As an example, one contributor had split his
173160&nbsp;Gb hard disk into 8 partitions of 20&nbsp;Gb each. 173160&nbsp;Gb hard disk into 8 partitions of 20&nbsp;Gb each.
174</note> 174</note>
175 175
176<p> 176<p>
177Load the LVM2 <path>dm-mod</path> module. For some reason, this module has been 177Load the LVM2 <path>dm-mod</path> module.
178compiled into the kernel 2.6 (named <c>smp</c>) on the Gentoo LiveCD. If you
179used this kernel instead of the default 2.4 (named <c>gentoo</c>), you can skip
180this step or ignore the warning you will get.
181</p> 178</p>
182 179
183<pre caption="Loading the LVM2 module"> 180<pre caption="Loading the LVM2 module">
184# <i>modprobe dm-mod</i> 181# <i>modprobe dm-mod</i>
185</pre> 182</pre>
193# <i>mkdir -p /etc/lvm</i> 190# <i>mkdir -p /etc/lvm</i>
194# <i>echo 'devices { filter=["r/cdrom/"] }' >/etc/lvm/lvm.conf</i> 191# <i>echo 'devices { filter=["r/cdrom/"] }' >/etc/lvm/lvm.conf</i>
195# <i>vgscan</i> 192# <i>vgscan</i>
196 Reading all physical volumes. This may take a while... 193 Reading all physical volumes. This may take a while...
197 No volume groups found 194 No volume groups found
195<comment>(Make any previously set up volume groups available)</comment>
196# <i>vgchange -a y</i>
198</pre> 197</pre>
199 198
200<p> 199<p>
201Prepare the partitions. 200Prepare the partitions.
202</p> 201</p>
378<path>/usr/src/linux/include/linux</path>. 377<path>/usr/src/linux/include/linux</path>.
379</impo> 378</impo>
380 379
381<pre caption="Emerging the LVM2 package"> 380<pre caption="Emerging the LVM2 package">
382# <i>emerge lvm2</i> 381# <i>emerge lvm2</i>
383<comment>(Prevent lvm2 from probing your cdrom)</comment> 382<comment>(At the time of writing, the stable version is 2.00.08.
383With version 2.00.08, prevent lvm2 from probing your cdrom by doing:</comment>
384# <i>echo 'devices { filter=["r/cdrom/"] }' >> /etc/lvm/lvm.conf</i> 384# <i>echo 'devices { filter=["r/cdrom/"] }' >> /etc/lvm/lvm.conf</i>
385
386<comment>(Versions 2.00.15 and later come with a /etc/lvm/lvm.conf
387Edit your /etc/lvm/lvm.conf and follow the comments</comment>
388# <i>nano -w /etc/lvm/lvm.conf</i>
385</pre> 389</pre>
386 390
387<p> 391<p>
388When editing your <path>/etc/fstab</path> file, follow the handbook and add 392When editing your <path>/etc/fstab</path> file, follow the handbook and add
389your LVM2 logical volumes as needed. Again, here are a few lines needed for 393your LVM2 logical volumes as needed. Again, here are a few lines needed for
407to umount all your LVM2 logical volumes as well and for a good measure run the 411to umount all your LVM2 logical volumes as well and for a good measure run the
408following command before you reboot: 412following command before you reboot:
409</p> 413</p>
410 414
411<pre caption="Shutting down LVM2"> 415<pre caption="Shutting down LVM2">
412# <i>vgchange -an</i> 416# <i>vgchange -a n</i>
413</pre> 417</pre>
414 418
415<p> 419<p>
416Restart your machine and all partitions should be visible and mounted. 420Restart your machine and all partitions should be visible and mounted.
417</p> 421</p>

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

  ViewVC Help
Powered by ViewVC 1.1.20