From: David Brown <david.brown@hesbynett.no>
To: linux-raid@vger.kernel.org
Subject: Re: LVM striping RAID volumes
Date: Wed, 25 Jan 2012 11:04:09 +0100 [thread overview]
Message-ID: <jfok2p$6vg$1@dough.gmane.org> (raw)
In-Reply-To: <1327467050.3474.303.camel@slacker>
On 25/01/12 05:50, Douglas Siebert wrote:
> I recently bought two Intel 320 80GB SSDs and plan to use them on a
> Fedora 16 system for boot/root, home and other frequently used data. I
> planned to mirror them together using md raid/Linux software RAID for
> reliability, and use LVM to partition. I did some investigation on
> insuring data alignment for best performance, etc. along with
> verification that my criteria for setting them up could be met:
>
> 1) must be mirrored since SSDs are similar to hard drives in their
> reliability (i.e. lack of)
SSD's are typically better than HD's, but certainly not failproof. I
get the impression that there is a bigger spread of reliabilities and
failures with SSD's than with HD's.
>
> 2) must support passing TRIM commands through the RAID layer (e.g. ext4-
>> LVM->RAID->SSD) to avoid write amplification that reduces SSD lifetime
> and performance
That's not really necessary with modern SSD's - TRIM is overrated.
Garbage collection on current generations is so much better than on
earlier models that you generally don't have to worry about TRIM.
Dropping TRIM makes your life /much/ easier with SSD's, especially when
you want raid. According to some benchmarks I've seen, it also makes
the disk measurably faster.
>
> 3) ideally should maximize performance by splitting reads between both
> SSDs
>
Sounds like Linux raid10 to me.
> Unfortunately, my investigation determined that while both md raid and
> dmraid/fakeraid can of course accomplish #1, only dmraid does #2 and
> only md raid does #3! At first it looked like I had to give up #3, but
> I think I have a way around this dilemma, at the cost of a bit of
> additional complexity which I'm totally comfortable with.
>
Drop #2, and you are done.
> My plan is to use dmraid/ICH10R to create two equal sized RAID-1
> volumes, with the primary mirror of the first volume as sda and the
> primary mirror of the second volume as sdb, then create all my LVM
> volumes by striping extents from the two dmraid devices.
>
> Am I correct that this will meet my criteria? Does anyone see another
> method that avoids dmraid? If md raid handled TRIM it would be my
> preference since I've used it before and have no need to dual boot with
> Windows, but I guess its not ready yet. Any gotchas to my solution I
> need to worry about which I may be overlooking? Thanks for any tips or
> suggestions!
>
>
> PS - its too bad you can't set the 'strip size' parameter for RAID 1 in
> dmraid and have it swap its idea of "primary mirror" on each stripe.
> Not sure if the Intel metadata format would allow storing that value for
> a RAID 1 volume, but if it does this would be a way to avoid having all
> reads directed at one drive. While there may be some good reasons to
> avoid indiscriminately splitting reads between hard drives, with SSDs
> the algorithm doesn't need much intelligence to see a major performance
> boost...
>
next prev parent reply other threads:[~2012-01-25 10:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-25 4:50 LVM striping RAID volumes Douglas Siebert
2012-01-25 10:04 ` David Brown [this message]
2012-01-25 13:55 ` Peter Grandi
2012-01-25 17:56 ` David Brown
2012-01-26 3:42 ` Douglas Siebert
[not found] ` <20120126034746.0D87428A6E@zebra.redhouse.homelinux.net>
2012-01-26 12:04 ` David Brown
2012-01-25 20:59 ` Andrei Warkentin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='jfok2p$6vg$1@dough.gmane.org' \
--to=david.brown@hesbynett.no \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox