linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RAID5 to RAID6 migration
@ 2008-08-04 12:44 Michał Przyłuski
  2008-08-04 13:57 ` Conway S. Smith
  0 siblings, 1 reply; 3+ messages in thread
From: Michał Przyłuski @ 2008-08-04 12:44 UTC (permalink / raw)
  To: linux-raid

Good day,

I've been a happy user of md RAID5 for over 8 months now. However,
a few days ago, one (I wonder which one too) of my (3) WD RE2 750s
decided to start clicking every few seconds during write. No disk
shows any abnormalities from others on SMART tests, and raid5
sync_action check, checks all right. Seems it's all safe for now, it's
raid5 after all, but that brought to my attention a need, and
possibility, to improve my redundancy, by migrating to RAID6. I was
planning to grow the array anyways. Therefore, I sit back to google,
and encountered a few issues I couldn't really resolve myself.

First of all, what is the current state of RAID5->6 conversion?
I've went through a lot of blogs, and it seem that this matter has
been considered log ago to be added to mdadm, however I was unable to
find any definitive information about that for now. I've read, well
skimmed, latest mdadm source and I cannot really say I see it there.
What's more, I recall reading about future possibility (or lack of it)
to change the raid5/6 chunk size, in a way of reshape. I've not found
any updates on that since then. It's mostly out of curiosity, as it
seems I'll have to totally recreate my raid anyways.

My second question, is a bit of theoretical one.
I've read "The mathematics of RAID-6" by H. Peter Anvin (raid6.pdf).
In section 4, he describes a situation of a single disk *corruption*.
That makes me wonder, if md implementation, during a sync_action
repair/check follows that procedure. I remember reading up on raid5,
which of course cannot properly detect & correct such things, that all
it can do (again, of course) is set a new parity block. That's why
I'm wonder if raid6 repair/check does the same, just setting new
parity blocks, or it tries to detect which one is erroneous and take
appropriate actions.


Now, back to the point. What should I do? :) I want to migrate my
1.1TiB of data, from 3 hdd RAID5 to, most likely, a 5 hdd RAID6.
I guess it's the very last moment, size-of-data-wise, to accommodate
all data during migration.

I see the following ways, supposing there's no reshape from raid5
to raid6.

1. Copy stuff to 2 new hdds (not raid'ed), create a slightly degraded
raid6 out of old 3 hdds (making raid6 looks like it should have had 4),
copy stuff over to raid6, and then add/reshape/etc.

2. Create a totally degraded raid6 with 2 new hdds, lacking 2 drives.
Copy from current, operational, raid5, and then add/reshape/etc.

3. (risky) Check current raid5, and if it's checks ok, degrade it!
Create a 4 hdd raid6 (4 out of 4 operational), copy stuff from
degraded raid5, add/reshape/etc.

I'll be thankful for any kind of input on that matters.
Kind regards,
MiKylie
// Michał Przyłuski

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-04 18:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-04 12:44 RAID5 to RAID6 migration Michał Przyłuski
2008-08-04 13:57 ` Conway S. Smith
2008-08-04 18:18   ` Michal Przyluski

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).