Gentoo Archives: gentoo-user

From: Michael Mol <mikemol@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] dmraid, mdraid, lvm, btrfs, what?
Date: Tue, 29 Nov 2011 13:45:38
Message-Id: CA+czFiDydR=iBb9=-g2ooWEohFeEgAT52vpiXEeLDiM_Ffo9Sg@mail.gmail.com
In Reply to: Re: [gentoo-user] dmraid, mdraid, lvm, btrfs, what? by Florian Philipp
1 On Tue, Nov 29, 2011 at 2:07 AM, Florian Philipp <lists@×××××××××××.net> wrote:
2 > Am 29.11.2011 05:10, schrieb Michael Mol:
3 >> I've got four 750GB drives in addition to the installed system drive.
4 >>
5 >> I'd like to aggregate them and split them into a few volumes. My first
6 >> inclination would be to raid them and drop lvm on top.  I know lvm well
7 >> enough, but I don't remember md that well.
8 >>
9 >> Since I don't recall md well, and this isn't urgent, I figure I can look
10 >> at the options.
11 >>
12 >> The obvious ones appear tobe mdraid, dmraid and btrfs. I'm not sure I'm
13 >> interested in btrfs until it's got a fsck that will repair errors, but
14 >> I'm looking forward to it once it's ready.
15 >>
16 >> Any options I missed? What are the advantages and disadvantages?
17 >>
18 >> ZZ
19 >>
20 >
21 > Sounds good so far. Of course, you only need mdraid OR dmraid (md
22 > recommended).
23
24 dmraid looks rather new on the block. Or, at least, I've been more
25 aware of md than dm over the years. What's its purpose, as compared to
26 dmraid? Why is mdraid recommended over it?
27
28 > What kind of RAID level do you want to use, 10 or 5? You
29 > can also split it: Use a smaller RAID 10 for performance-critical
30 > partitions like /usr and the more space-efficient RAID 5 for bulk like
31 > videos. You can handle this with one LVM volume group consisting of two
32 > physical volumes. Then you can decide on a per-logical-volume basis
33 > where it should allocate space and also migrate LVs between the two PVs.
34
35 Since I've got four disks for the pool, I was thinking raid10 with lvm
36 on top, and a single lvm pv above that.
37
38 > Another thing you can think of is whether you want encryption. I've done
39 > this for my laptop. The usual setup would by md->lvm->crypt. I've done
40 > it crypt->lvm (an LVM physical volume on top of an encrypted partition).
41 > This way, I only need to enter the password once. You can enforce a
42 > specific order between lvm, md and dmcrypt by putting stuff like this in
43 > /etc/rc.conf:
44 > rc_dmcrypt_before="lvm"
45 > rc_dmcrypt_after="udev"
46
47 Really not interested in encryption for this box. No need.
48
49 --
50 :wq

Replies

Subject Author
Re: [gentoo-user] dmraid, mdraid, lvm, btrfs, what? Florian Philipp <lists@×××××××××××.net>