From mboxrd@z Thu Jan 1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
by nuthatch.gentoo.org with esmtp (Exim 4.54)
id 1EzufT-0002K7-HX
for garchives@archives.gentoo.org; Fri, 20 Jan 2006 11:43:00 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k0KBgj5W032197;
Fri, 20 Jan 2006 11:42:45 GMT
Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30])
by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k0KBghZN019986
for ; Fri, 20 Jan 2006 11:42:44 GMT
Message-Id: <200601201142.k0KBghZN019986@robin.gentoo.org>
Received: from lark.gentoo.osuosl.org ([140.211.166.177] helo=lark.gentoo.org)
by smtp.gentoo.org with smtp (Exim 4.54)
id 1EzufD-0000sk-Ji
for gentoo-doc-cvs@lists.gentoo.org; Fri, 20 Jan 2006 11:42:43 +0000
Received: by lark.gentoo.org (sSMTP sendmail emulation); Fri, 20 Jan 2006 11:42:43 +0000
From: "Xavier Neys"
Date: Fri, 20 Jan 2006 11:42:43 +0000
To: gentoo-doc-cvs@lists.gentoo.org
Subject: [gentoo-doc-cvs] cvs commit: lvm2.xml
Precedence: bulk
List-Post:
List-Help:
List-Unsubscribe:
List-Subscribe:
List-Id: Gentoo Linux mail
X-BeenThere: gentoo-doc-cvs@gentoo.org
Reply-to: docs-team@lists.gentoo.org
X-Archives-Salt: 4bcdd143-a35b-4ceb-8078-31d56c9eca45
X-Archives-Hash: 6714067c7cd08df394ea7292f2435d82
neysx 06/01/20 11:42:43
Modified: xml/htdocs/doc/en lvm2.xml
Log:
#116288 Do not activate swap until you're done with the partitioning, and a well needed refresh
Revision Changes Path
1.17 +43 -34 xml/htdocs/doc/en/lvm2.xml
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
plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/lvm2.xml?rev=1.17&content-type=text/plain&cvsroot=gentoo
diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/lvm2.xml.diff?r1=1.16&r2=1.17&cvsroot=gentoo
Index: lvm2.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/lvm2.xml,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- lvm2.xml 3 Oct 2005 22:49:15 -0000 1.16
+++ lvm2.xml 20 Jan 2006 11:42:43 -0000 1.17
@@ -1,8 +1,8 @@
-
+
-
+
Gentoo LVM2 installation
@@ -24,8 +24,8 @@
-2.0.11
-2005-08-17
+2.1
+2006-01-20
Introduction
@@ -62,7 +62,7 @@
LVM2 support such as a Gentoo Installation CD. You can find the Installation CDs for an x86
architecture on our mirrors under
-/releases/x86/2005.1/installcd. Other architectures might
+/releases/x86/2005.1-r1/installcd. Other architectures might
be supported as well.
@@ -134,21 +134,16 @@
-Create a small physical /boot partition (hda1). In this example, /boot will be
-not managed by LVM2. This partition will contain your bootloader and your
-kernel(s). A 64MB partition should be well enough for quite a few kernel
-generations.
+Create a small physical /boot partition (hda1). In this example,
+/boot will be not managed by LVM2. This partition will contain
+your bootloader and your kernel(s). A 64MB partition should be well enough for
+quite a few kernel generations.
-Create a swap partition (hda2) and activate it.
+Create a swap partition (hda2).
-
-# mkswap /dev/hda2
-# swapon /dev/hda2
-
-
Create a / (root) partition (hda3). If you are interested in trying to put your
root partition under LVM management (which we do not recommend), see the
@@ -167,10 +162,10 @@
-Assuming the /boot, swap and root partitions do not use the whole physical disk,
-create a fourth partition on this disk and set it to type 8e (Linux LVM).
-If you have more physical drives you would like to use with LVM, create
-one partition on each and give them the same type (8e).
+Assuming the /boot, swap and root partitions do not use the whole
+physical disk, create a fourth partition on this disk and set it to type 8e
+(Linux LVM). If you have more physical drives you would like to use with LVM,
+create one partition on each and give them the same type (8e).
@@ -184,6 +179,12 @@
+Create the filesystems on /dev/hda1 and /dev/hda3,
+and create and activate the swap on /dev/hda2 as described in the
+handbook.
+
+
+
Load the LVM2 dm-mod module.
@@ -192,13 +193,22 @@
-Scan and activate LVM:
+Before scanning and activating LVM, you might want to edit
+/etc/lvm/lvm.conf to exclude some devices. By default, LVM2 will
+scan all devices, even your CDROM which can generate error messages. In the
+following exemple, the line that allows scanning of all devices is replaced by
+one that rejects every device but our two IDE disks.
-(Avoid scanning your cdrom)
-# mkdir -p /etc/lvm
-# echo 'devices { filter=["r/cdrom/"] }' >/etc/lvm/lvm.conf
+(Avoid scanning all devices but our disks)
+# nano -w /etc/lvm/lvm.conf
+(Look for the following line)
+ filter = [ "a/.*/" ]
+(Replace it with the following one to scan
+/dev/hda and /dev/hdb and reject anything else)
+ filter = [ "a|/dev/hd[ab]|", "r/.*/" ]
+(Save the file and quit nano)
# vgscan
Reading all physical volumes. This may take a while...
No volume groups found
@@ -389,16 +399,16 @@
# emerge lvm2
-(At the time of writing, the stable version is 2.00.08.
-With version 2.00.08, prevent lvm2 from probing your cdrom by doing:
-# echo 'devices { filter=["r/cdrom/"] }' >> /etc/lvm/lvm.conf
-
-(Versions 2.00.15 and later come with a /etc/lvm/lvm.conf
-Edit your /etc/lvm/lvm.conf and follow the comments
-# nano -w /etc/lvm/lvm.conf
+Edit /etc/lvm/lvm.conf as described earlier. The file you previously edited is part of
+your installation environment and will disappear after the next reboot. This
+time, you edit the real one inside your new Gentoo install.
+
+
+
When editing your /etc/fstab file, follow the handbook and add
your LVM2 logical volumes as needed. Again, here are a few lines needed for
our example:
@@ -481,10 +491,9 @@
The LVM Howto
- Daniel Robbins's articles on LVM at IBM's DeveloperWorks:
- http://www-106.ibm.com/developerworks/linux/library/l-lvm/?dwzone=linux
- and
- http://www-106.ibm.com/developerworks/linux/library/l-lvm2.html?dwzone=linux
+ Daniel Robbins's articles on LVM for IBM's DeveloperWorks: Part 1 and Part 2
How to boot your root FS off of LVM1:
--
gentoo-doc-cvs@gentoo.org mailing list