Gentoo Archives: gentoo-user

From: Joost Roeleveld <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] LVM (Was: the best filesystem for server: XFS or JFS (or?))
Date: Fri, 25 Mar 2011 06:40:37
Message-Id: 20110325064007.E6567241D@data.antarean.org
In Reply to: Re: [gentoo-user] LVM (Was: the best filesystem for server: XFS or JFS (or?)) by Dale
1 On Thursday 24 March 2011 12:19:39 Dale wrote:
2 > J. Roeleveld wrote:
3 > > On Thu, March 24, 2011 12:30 pm, Volker Armin Hemmann wrote:
4 > >> On Thursday 24 March 2011 08:49:52 J. Roeleveld wrote:
5 > >>> On Wed, March 23, 2011 5:43 pm, Volker Armin Hemmann wrote:
6 > >>>> md raid devices can do barriers. Don't know about lvm. But lvm is
7 > >>>> such
8 > >>>
9 > >>> a
10 > >>>
11 > >>>> can
12 > >>>> of worms I am surprised people still recommend it.
13 > >>>
14 > >>> What is wrong with LVM?
15 > >>> I've been using it successfully without any issues for years now.
16 > >>> It does what it says on the box.
17 > >>
18 > >> it is another layer that can go wrong. Why take the risk? There
19 > >> are enough cases of breakage after upgrades - and besides snapshots...
20 > >> is the
21 > >> amount of additional code running really worth it? Especially with
22 > >> bind
23 > >> mounting?
24 > >
25 > > There are always things that can go wrong and I agree, adding additional
26 > > layers can increase the risk.
27 > > However, the benefits of easily and quickly changing the size of
28 > > partitions and creating snapshots for the use of backups are a big
29 > > enough
30 > > benefit to off-set the risk.
31 > >
32 > > Bind-mounting is ok, if you use a single filesystem for everything. I
33 > > have partitions that are filled with thousands of small files and
34 > > partitions filled with files are are, on average, at 1GB in size.
35 > > I haven't found a filesystem yet that successfully handles both of these
36 > > with identical performance.
37 > > When I first tested performance I found that a simple "ls" in a
38 > > partition
39 > > would appear to just hang. This caused performance issues with my
40 > > IMAP-server.
41 > > I switched to a filesystem that better handles large amounts of small
42 > > files and performance increased significantly.
43 > >
44 > > The way I do backups is that I stop the services, create snapshots and
45 > > then restart the services.
46 > > I then have plenty of time to backup the snapshot.
47 > > If I were to do this differently, I'd end up having a downtime for over
48 > > an hour just for a backup.
49 > > Now, it's barely a minute of downtime.
50 > >
51 > > That, to me, is a very big bonus.
52 > >
53 > > --
54 > > Joost
55 >
56 > I have never used LVM but when it messes up after a upgrade, as has
57 > happened to many others, see if you say the same thing. I hope your
58 > backups are good and they can restore.
59 >
60 > Dale
61 >
62 > :-) :-)
63
64 Backups are good and I can restore.
65 Usually need them when I mess things up and accidentally delete files I wanted
66 to keep....
67
68 LVM may mess up if something goes wrong, but as the LVM-tools backup the
69 metadata for LVM, it is trivial to restore and I have not lost any data
70 because of issues like that. :)
71
72 --
73 Joost