From: Douglas Siebert <douglas-siebert@uiowa.edu>
To: linux-raid@vger.kernel.org
Subject: LVM striping RAID volumes
Date: Tue, 24 Jan 2012 22:50:50 -0600 [thread overview]
Message-ID: <1327467050.3474.303.camel@slacker> (raw)
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)
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
3) ideally should maximize performance by splitting reads between both
SSDs
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.
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...
--
Douglas Siebert
douglas-siebert@uiowa.edu
next reply other threads:[~2012-01-25 4:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-25 4:50 Douglas Siebert [this message]
2012-01-25 10:04 ` LVM striping RAID volumes David Brown
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=1327467050.3474.303.camel@slacker \
--to=douglas-siebert@uiowa.edu \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.