All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Brown <david.brown@hesbynett.no>
To: Raul Dias <raul@dias.com.br>
Cc: Scott D'Vileskis <sdvileskis@gmail.com>,
	"linux-raid@vger.kernel.org List" <linux-raid@vger.kernel.org>
Subject: Re: Replace RAID devices without resorting to degraded mode?
Date: Wed, 12 Mar 2014 13:45:31 +0100	[thread overview]
Message-ID: <532056EB.2080206@hesbynett.no> (raw)
In-Reply-To: <CAE6VuKFxqRET=tQoSvbHFd7iiKeXBPJZTBUgTTwMpzOnrPEmbg@mail.gmail.com>

On 12/03/14 13:23, Raul Dias wrote:
> 2014-03-12 6:12 GMT-03:00 David Brown <david.brown@hesbynett.no>:
> ...
>>
>> If you want to safely replace the disks in a raid5 array, the easiest
>> way is to add a new disk (this can be an external USB disk if necessary)
>> and re-shape to an asymmetric raid6 with parity Q on the new disk.  Now
>> you have an extra redundancy for safety.  (Use asymmetric raid6 to avoid
>> re-striping the existing disks.)
> 
> Is there a solution for other RAID setups? 1,0,6,10?
> 
> thanks
> 

The whole idea of bumping up from raid5 to raid6 before maintenance is
to improve the redundancy before you remove existing drives.  It is not
strictly necessary, but I think it is nice to have the extra safety.
Hot replace makes it less important (since you don't remove the "old"
drive until the new one is fully sync'ed).

So for raid1, you would add a new mirror device, making a 3-way mirror
instead of a 2-way one (I don't know off-hand if md raid allows this
re-shape).

Raid0 has no redundancy at all - so re-shape it to raid4 or asymmetric
raid5 (which is equivalent) with parity on a new disk before doing the
replacements.

Raid6 already has two parities.  You'll have to wait for Andrea
Mazzoleni's great work on multi-parity raid to make it into mdadm and
the kernel before you can add extra redundancy, but two disk redundancy
is probably enough anyway (especially with hot replace).

I think there are sever limits on the type of Raid10 reshapes you can
do, so I don't think it is possible to add redundancy here.



  reply	other threads:[~2014-03-12 12:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-11 17:36 Replace RAID devices without resorting to degraded mode? Scott D'Vileskis
2014-03-11 23:26 ` Adam Goryachev
2014-03-12  0:00   ` Scott D'Vileskis
2014-03-12 11:54     ` Mikael Abrahamsson
2014-03-12  9:12 ` David Brown
2014-03-12 12:23   ` Raul Dias
2014-03-12 12:45     ` David Brown [this message]
2014-03-12 23:18       ` NeilBrown
2014-03-13  9:27         ` David Brown
2014-03-12 15:38   ` Scott D'Vileskis

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=532056EB.2080206@hesbynett.no \
    --to=david.brown@hesbynett.no \
    --cc=linux-raid@vger.kernel.org \
    --cc=raul@dias.com.br \
    --cc=sdvileskis@gmail.com \
    /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.