Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] lvm2/external partitions question
Date: Tue, 30 Aug 2005 08:08:51
Message-Id: 20050830090319.2663ffd0@hactar.digimed.co.uk
In Reply to: [gentoo-user] lvm2/external partitions question by Mark Knecht
1 On Mon, 29 Aug 2005 17:50:15 -0700, Mark Knecht wrote:
2
3 > I'm looking at LVN2 for this install. The main drive is 250GB. I'm
4 > wondering a couple of things:
5
6 I've ben using LVM2 on my AMD64 box since I built it.
7
8 > 1) Should use all of the drive, other than the boot and swap
9 > partitions, for the main LVN partition and then let LVN subdivide it
10 > as needs come up as per the Gentoo-wiki on LVN2? This would meen, as I
11 > understand it, that there would never been more than real partitions
12 > on the drive.
13
14 I have /boot, swap and / on normal partitions, everything else on LVM. /
15 is only 300MB, as /usr is on an LVM2 partition, /var and /opt are bound
16 to directories in /usr. I kow I could put / on LVM, but that requires an
17 initrd, which adds unnecessary complication IMO.
18
19 > 2) Possibly make the main install partition something like 50GB and
20 > use the balance of the hard drive outside of LVM2? If I do this and
21 > later add a new partition within LVM does that somehow change device
22 > numbering (/dev/sdaX) on the external partitions?
23
24 LVM uses its own partition naming. As far as the /dev/sda is concerned,
25 there are only four partitions in my setup. As someone else has already
26 suggested, make your partitions within LVM no larger than you think
27 you'll need, because it is so easy to enlarge them later. Most
28 filesystems can be enlarged while still mounted, while shrinking a
29 filesystem either requires it to be unmounted or is impossible depending
30 on your filesystem.
31
32 > QUESTION: Are there any performance differences between using LVM and
33 > a standard partition?
34
35 Not that I've noticed.
36
37 > QUESTION 2: does anythign about LVM2 beg for a 2005.1 LiveCD? Mine is
38 > 2005.0.
39
40 I installed it with a 2004.x CD, so I'm sure 2005.0 should be fine.
41
42
43 --
44 Neil Bothwick
45
46 If you like this tagline, call 1-800-TAGS'R'US

Replies

Subject Author
Re: [gentoo-user] lvm2/external partitions question Mark Knecht <markknecht@×××××.com>