Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar performance so far
Date: Wed, 10 Feb 2010 10:56:44
Message-Id: 201002101156.28209.joost@antarean.org
In Reply to: Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar performance so far by Alan McKinnon
1 On Wednesday 10 February 2010 08:08:44 Alan McKinnon wrote:
2 > On Wednesday 10 February 2010 01:22:31 Iain Buchanan wrote:
3 > > On Tue, 2010-02-09 at 08:47 +0100, J. Roeleveld wrote:
4 > > > I now only need to figure out the best way to configure LVM over this
5 > > > to get the best performance from it. Does anyone know of a decent way
6 > > > of figuring this out?
7 > > > I got 6 disks in Raid-5.
8 > >
9 > > why LVM? Planning on changing partition size later? LVM is good for
10 > > (but not limited to) non-raid setups where you want one partition over a
11 > > number of disks.
12 > >
13 > > If you have RAID 5 however, don't you just get one large disk out of it?
14 > > In which case you could just create x partitions. You can always use
15 > > parted to resize / move them later.
16 > >
17 > > IMHO recovery from tiny boot disks is easier without LVM too.
18 >
19 > General observation (not saying that Iain is wrong):
20 >
21 > You use RAID to get redundancy, data integrity and performance.
22 >
23 > You use lvm to get flexibility, ease of maintenance and the ability to
24 > create volumes larger than any single disk or array. And do it at a
25 > reasonable price.
26 >
27 > These two things have nothing to do with each other and must be viewed as
28 > such. There are places where RAID and lvm seem to overlap, where one might
29 > think that a feature of one can be used to replace the other. But both
30 > really suck in these overlaps and are not very good at them.
31 >
32 > Bottom line: don't try and use RAID or LVM to do $STUFF outside their core
33 > functions. They each do one thing and do it well.
34 >
35
36 I completely agree with this.
37 RAID is for redundancy (Loose a disk, and the system will keep running)
38 LVM is for flexibility (Resizing/moving partitions using parted or similar
39 takes time during which the whole system is unusable)
40
41 With LVM, I can resize a partition while it is actually in use (eg. write-
42 activities)