linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: Gilad Arnold <arnold@cs.berkeley.edu>
Cc: Bill Davidsen <davidsen@tmr.com>, Roman Mamedov <roman@rm.pp.ru>,
	linux-raid@vger.kernel.org
Subject: Re: migrating from RAID5 to RAID10
Date: Fri, 18 Jun 2010 08:30:53 +1000	[thread overview]
Message-ID: <20100618083053.7df5248b@notabene.brown> (raw)
In-Reply-To: <20100617174445.GB8450@libra.CS.Berkeley.EDU>

On Thu, 17 Jun 2010 10:44:46 -0700
Gilad Arnold <arnold@cs.berkeley.edu> wrote:

> On Thu, Jun 17, 2010 at 07:26:31AM +1000, Neil Brown wrote:
> > A RAID5 on 2 devices would be a little slower than RAID1 on two
> > devices as there is more copying of data around in memory, and there
> > is no read balancing, but it shouldn't be much slower.
> > 
> > However with recent mdadm and kernel you can trivially convert a 2 drive
> > RAID1 to a 2 drive RAID5 while the array is online, so it should be easy to
> > experiment and change you mind about how you want it configured.
> 
> Thanks for the interesting comments, Neil.
> 
> Preparing for the upgrade I've been cleaning up data and ended up
> realizing that I won't need to add another drive in the near future ;-)
> I would like to change my RAID level, though, to improve performance,
> and the idea of online layout conversion is very appealing.
> 
> I understand that a 2-drive RAID5 can be converted to a RAID1 already,
> but it is also my understanding that RAID1 currently does not benefit
> from striped reading performance, either entirely (due to
> implementation) or partly (compared to RAID10 in f2 mode).  This leads
> me to think that even with 2 drives, RAID10/f2 is a better choice than
> RAID1. Is this a fair assessment?  And, if it is the case, can RAID5 be
> converted to RAID10/f2 on-the-fly, or would I have to take the longer
> path?  (i.e.  degrade RAID5, start RAID10 in degraded mode, copy data,
> kill RAID5 and rebuild RAID10)


2-drive RAID10 f2  would be expected to provide better read throughput
(possibly twice as fast) at some cost to write throughput.  For many people
this is a worthwhile trade-off.  So it might be better for you.
Read throughput would degraded down to write throughput (i.e. slower than
RAID1) if the RAID10 were degraded.

There is currently no support for converting RAID10 arrays in any way.  You
have to copy the data.
With 2 drives, you could make a degraded RAID1 and a degraded RAID10 and copy
the data across.  Then add the RAID1 device into the RAID10 array.

NeilBrown

  reply	other threads:[~2010-06-17 22:30 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-09 15:11 migrating from RAID5 to RAID10 Gilad Arnold
2010-06-10 18:52 ` Roman Mamedov
2010-06-10 19:58   ` Gilad Arnold
2010-06-10 22:11     ` Drew
2010-06-10 22:21       ` Drew
2010-06-10 22:30         ` Gilad Arnold
2010-06-10 22:26       ` Gilad Arnold
2010-06-16 15:54     ` Bill Davidsen
2010-06-16 18:30       ` Gilad Arnold
2010-06-16 20:15         ` Gilad Arnold
2010-06-17  1:59           ` Bill Davidsen
2010-06-16 21:26       ` Neil Brown
2010-06-17 17:44         ` Gilad Arnold
2010-06-17 22:30           ` Neil Brown [this message]
2010-06-18  8:40             ` Keld Simonsen
2010-06-21 22:09               ` Neil Brown
2010-06-17 22:46           ` Gilad Arnold
2010-06-18  2:39             ` Neil Brown
2010-06-18  4:01               ` Gilad Arnold

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=20100618083053.7df5248b@notabene.brown \
    --to=neilb@suse.de \
    --cc=arnold@cs.berkeley.edu \
    --cc=davidsen@tmr.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=roman@rm.pp.ru \
    /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;
as well as URLs for NNTP newsgroup(s).