Thread (10 messages) 10 messages, 6 authors, 2014-03-13

Re: Replace RAID devices without resorting to degraded mode?

From: David Brown <hidden>
Date: 2014-03-12 12:45:31

On 12/03/14 13:23, Raul Dias wrote:
2014-03-12 6:12 GMT-03:00 David Brown [off-list ref]:
...
quoted
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.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help