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 19:29:16
Message-Id: CA+czFiBL+ZZVK7FXKAntfA43xxMzu_485SO_pnJarnAkS_7XAQ@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:23 PM, Florian Philipp <lists@×××××××××××.net> wrote:
2 > Am 29.11.2011 19:39, schrieb Michael Mol:
3 >> On Tue, Nov 29, 2011 at 1:20 PM, Florian Philipp <lists@×××××××××××.net> wrote:
4 >>> Am 29.11.2011 14:44, schrieb Michael Mol:
5 >>>> On Tue, Nov 29, 2011 at 2:07 AM, Florian Philipp <lists@×××××××××××.net> wrote:
6 >>>>> Am 29.11.2011 05:10, schrieb Michael Mol:
7 >>>>>> I've got four 750GB drives in addition to the installed system drive.
8 >>>>>>
9 >>>>>> I'd like to aggregate them and split them into a few volumes. My first
10 >>>>>> inclination would be to raid them and drop lvm on top.  I know lvm well
11 >>>>>> enough, but I don't remember md that well.
12 >>>>>>
13 >>>>>> Since I don't recall md well, and this isn't urgent, I figure I can look
14 >>>>>> at the options.
15 >>>>>>
16 > [...]
17 >>>>> What kind of RAID level do you want to use, 10 or 5? You
18 >>>>> can also split it: Use a smaller RAID 10 for performance-critical
19 >>>>> partitions like /usr and the more space-efficient RAID 5 for bulk like
20 >>>>> videos. You can handle this with one LVM volume group consisting of two
21 >>>>> physical volumes. Then you can decide on a per-logical-volume basis
22 >>>>> where it should allocate space and also migrate LVs between the two PVs.
23 >>>>
24 >>>> Since I've got four disks for the pool, I was thinking raid10 with lvm
25 >>>> on top, and a single lvm pv above that.
26 >>>>
27 >>>
28 >>> Yeah, that would also be my recommendation. But if storage efficiency is
29 >>> more relevant, RAID-5 with 4 disks brings you 750GB more usable storage.
30 >>>
31 >>>
32 >>
33 >> It looks like I'll want to try two different configurations. RAID5 and
34 >> RAID10. Not for different storage requirements, but I want to see
35 >> exactly what the performance drop is.
36 >>
37 >> I wish lvm striping supported data redundancy. But, then, I wish btrfs
38 >> was ready...
39 >>
40 >
41 > Just out of curiosity: What happens if you do `lvcreate --mirrors 1
42 > --stripes 2 ...`? Does it create something similar to a RAID-10 or does
43 > it simply fail?
44
45 Hm. I don't know. Honestly, I didn't know about that functionality.
46 Perhaps it's time I catch up on the docs again.
47
48 --
49 :wq