From: John Robinson <john.robinson@anonymous.org.uk>
To: Xavier Brochard <xavier@alternatif.org>
Cc: Doug Ledford <dledford@redhat.com>,
brian.foster@emc.com, mpower@dodtsair.com, rm@romanrm.ru,
linux-raid@vger.kernel.org
Subject: Re: RAID 1 using SSD and 2 HDD
Date: Fri, 29 Jul 2011 10:32:02 +0100 [thread overview]
Message-ID: <4E327E12.30900@anonymous.org.uk> (raw)
In-Reply-To: <201107290153.45227.xavier@alternatif.org>
On 29/07/2011 00:53, Xavier Brochard wrote:
> Le jeudi 28 juillet 2011 20:31:10 Doug Ledford, vous avez écrit :
>> On 07/20/2011 08:59 AM, brian.foster@emc.com wrote:
[...]
>>>> On 07/19/2011 11:32 AM, Roman Mamedov wrote:
[...]
>>>>> See http://bcache.evilpiepirate.org/
[...]
>>> https://github.com/facebook/flashcache
>>
>> Having not looked at those two, I can say that an md raid1 with two hard
>> drives and one SSD works *very* well. It's blazing fast. Here's how I
>> set mine up:
>>
>> SSD: three partitions, one for boot, one for /, and one for ~/repos
>> (which is where all my git/cvs/etc. checkouts reside)
>> hard disks: four partitions, one for boot, one for /, one for /home, one
>> for ~/repos
>>
>> Then I created four raid1 arrays like so:
>>
>> mdadm -C /dev/md/boot -l1 -n3 -e1.0 --bitmap=internal --name=boot
>> /dev/sda1 --write-mostly --write-behind=128 /dev/sdb1 /dev/sdc1
>> mdadm -C /dev/md/root -l1 -n3 -e1.2 --bitmap=internal --name=root
>> /dev/sda2 --write-mostly --write-behind=1024 /dev/sdb2 /dev/sdc2
>> mdadm -C /dev/md/home -l1 -n2 -e1.2 --bitmap=internal --name=home
>> /dev/sdb3 /dev/sdc3
>> mdadm -C /dev/md/repos -l1 -n3 -e1.2 --bitmap=internal --name=repos
>> /dev/sda4 --write-mostly --write-behind=1024 /dev/sdb4 /dev/sdc4
>>
>> Works for me with stellar performance. Treats the SSD as the only
>> device that matters on the three arrays it participates in with the hard
>> drives there merely as a backing store for safety in case the SSD blows
>> chunks some day. Obviously, if you need some other aspect of your home
>> directory to have the SSD benefit then modify to your tastes, but all my
>> scratch builds happen under ~/repos and the thing flies when compiling
>> stuff compared to how it used to be.
>
> One thing you didn't said is the respective size of the SSD and HD partitions.
> How did you determine them?
Since he's running RAID-1, the partitions on the SSD and HDDs must be
the same size. Note that the rest of the space on the HDDs was given to
/home and was not mirrored on the SSD.
Cheers,
John.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-07-29 9:32 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-19 18:15 RAID 1 using SSD and 2 HDD Mike Power
2011-07-19 18:27 ` Roberto Spadim
2011-07-28 18:32 ` Doug Ledford
[not found] ` <CABYL=To6GFBwsHi_2y6Rzgvr3LbP2Z9hUN8QjYP5Wf+vJtKsXw@mail.gmail.com>
2011-07-29 13:30 ` Doug Ledford
2011-07-29 14:55 ` David Brown
2011-07-29 15:30 ` Doug Ledford
2011-07-29 15:51 ` Roberto Spadim
2011-07-19 18:32 ` Roman Mamedov
2011-07-19 19:13 ` Mike Power
2011-07-20 12:59 ` brian.foster
2011-07-28 18:31 ` Doug Ledford
2011-07-28 23:53 ` Xavier Brochard
2011-07-29 9:32 ` John Robinson [this message]
2011-07-29 13:38 ` Doug Ledford
2011-07-29 17:50 ` Xavier Brochard
2011-07-29 18:31 ` Doug Ledford
2011-07-29 16:20 ` Failures Rates Using SSD maurice
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=4E327E12.30900@anonymous.org.uk \
--to=john.robinson@anonymous.org.uk \
--cc=brian.foster@emc.com \
--cc=dledford@redhat.com \
--cc=linux-raid@vger.kernel.org \
--cc=mpower@dodtsair.com \
--cc=rm@romanrm.ru \
--cc=xavier@alternatif.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.