Gentoo Archives: gentoo-user

From: "W.Kenworthy" <billk@×××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] lvm2/external partitions question
Date: Tue, 30 Aug 2005 02:46:08
Message-Id: 1125367634.20471.73.camel@localhost
In Reply to: [gentoo-user] lvm2/external partitions question by Mark Knecht
1 My scheme is:
2 100 M /boot on ext3 (I was going to store some other info there, but
3 its mostly "space" att)
4
5 2G swap
6
7 4G reiserfs with a complete, basic gentoo rescue install - if all goes
8 pear shaped, I have a backup including a functioning /boot on this
9 partition. Particularly useful with things like a gateway: you can come
10 up on the rescue partition and provide near normal service/network
11 access while fixing the main problem in a chroot etc. Maintenance of
12 this partition is done offline in a chroot so other than an occasional
13 test, its rarely run in its own right.
14
15 4G / on reiserfs with /etc, /root etc
16
17 remainder (200G is below, and on my main desktop system similarly
18 arranged I have 200G + an extra 60G drive) is all LVM
19 containing /home, /var, /tmp and /usr.
20
21 This system is mainly a LAMP server/gateway for a home network. it also
22 contains mostly file storage and backups in /home
23
24 moriah ~ # df -h
25 Filesystem Size Used Avail Use% Mounted on
26 /dev/hda5 3.8G 2.2G 1.6G 59% /
27 udev 252M 2.6M 249M 2% /dev
28 cachedir 3.8G 2.2G 1.6G 59% /lib/splash/cache
29 /dev/vg1/usr 32G 5.9G 27G 19% /usr
30 /dev/vg1/var 48G 2.3G 46G 5% /var
31 /dev/vg1/tmp 16G 33M 16G 1% /tmp
32 /dev/vg1/opt 4.0G 169M 3.9G 5% /opt
33 /dev/vg1/home 77G 26G 52G 34% /home
34 none 252M 0 252M 0% /dev/shm
35 /dev/hda1 92M 18M 69M 21% /boot
36 /dev/hda3 3.8G 1.7G 2.1G 46% /mnt/hda3
37 moriah ~ #
38
39 There are probably performance issues, but they are not noticeable in
40 practise. hdparm actually shows a slight speed advantage for the LVM
41 partitions, but there are also error messages so I dont really trust it!
42
43 BillK
44
45
46 On Mon, 2005-08-29 at 17:50 -0700, Mark Knecht wrote:
47 > Hi,
48 > My new A8N-E/AMD64 hardware came up the first time. SATA/DVD/CDRW
49 > all seen. LiveCD boots fine. memtest86 has been running for the last
50 > hour and looks good so far. All looks good so I'll start a Gentoo
51 > install pretty soon.
52 >
53 > I'm looking at LVN2 for this install. The main drive is 250GB. I'm
54 > wondering a couple of things:
55 >
56 > 1) Should use all of the drive, other than the boot and swap
57 > partitions, for the main LVN partition and then let LVN subdivide it
58 > as needs come up as per the Gentoo-wiki on LVN2? This would meen, as I
59 > understand it, that there would never been more than real partitions
60 > on the drive.
61 >
62 > 2) Possibly make the main install partition something like 50GB and
63 > use the balance of the hard drive outside of LVM2? If I do this and
64 > later add a new partition within LVM does that somehow change device
65 > numbering (/dev/sdaX) on the external partitions?
66 >
67 > I don't know why I would do the latter, other than should LVM
68 > become inoperable it seems that I could still get at the 200GB that
69 > isn't within LVM's control. Since the hardware is new I don't know
70 > anything about it's reliability yet and hate to go down a path where
71 > data gets trapped in a few weeks if something dies.
72 >
73 > QUESTION: Are there any performance differences between using LVM and
74 > a standard partition?
75 >
76 > QUESTION 2: does anythign about LVM2 beg for a 2005.1 LiveCD? Mine is 2005.0.
77 >
78 > Probably I'll do #1 and just live with it but if there's a better
79 > way to do it I'd like to hear what and why.
80 >
81 > Thanks,
82 > Mark
83 >
84 --
85 gentoo-user@g.o mailing list

Replies

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