From: David Brown <david.brown@hesbynett.no>
To: Fabian Knorr <knorrfab@fim.uni-passau.de>,
Phil Turmel <philip@turmel.org>
Cc: linux-raid@vger.kernel.org
Subject: Re: Recovering an Array with inconsistent Superblocks
Date: Tue, 14 Jan 2014 09:54:56 +0100 [thread overview]
Message-ID: <52D4FB60.8050004@hesbynett.no> (raw)
In-Reply-To: <1388873143.7641.20.camel@vessel>
On 04/01/14 23:05, Fabian Knorr wrote:
> Hi, Phil,
>
> thank you very much for your reply.
>
>> Side note: If you have a live spare available for a raid5, there's no
>> good reason not to reshape to a raid6, and very good reasons to do so.
>
> I was worried that RAID6 would incur a significant load on the CPU,
> especially if one disk fails. The system is a single-core Intel Atom.
>
Recovery of a single disk failure with RAID6 is the same as for RAID5 -
if a data block is missing, md will use the other data blocks and the
RAID5 xor parity for the recovery. It only needs to do "hard" RAID6
recovery if there are /two/ disks (or blocks) that have failed.
RAID6 parity generation is harder than RAID5 generation, but it is not
/that/ hard, even for a single core Atom - especially if the cpu is not
doing many other tasks. You might feel it on big writes, or during a
resync / rebuild.
Other than that, the only disadvantage of RAID6 is that you don't get
the RMW behaviour on partial stripe writes (I believe this is under
development, but I don't know the current status). With RAID5, if you
write to a single block in a stripe then md can read the old block and
the old parity, then write the new block and the new parity rather than
having to read in the whole stripe. RAID6 always has to read the whole
stripe to create new parities. This means that small writes will be
slower on RAID6 than RAID5.
However, if you are doing so many small writes that this is an important
factor, you are probably better off with RAID10.
So IMHO if you have the drives for RAID5 + spare, you are almost always
better off using RAID6.
next prev parent reply other threads:[~2014-01-14 8:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-04 10:04 Recovering an Array with inconsistent Superblocks Fabian Knorr
2014-01-04 16:24 ` Phil Turmel
2014-01-04 17:59 ` Can Jeuleers
2014-01-04 19:16 ` Phil Turmel
2014-01-04 22:05 ` Fabian Knorr
2014-01-05 2:32 ` Phil Turmel
2014-01-05 9:07 ` Fabian Knorr
2014-01-05 9:56 ` NeilBrown
2014-01-05 10:40 ` Fabian Knorr
[not found] ` <1388918703.3591.20.camel@vessel>
2014-01-05 18:25 ` Phil Turmel
2014-01-05 23:50 ` NeilBrown
2014-01-06 14:00 ` Fabian Knorr
2014-01-07 0:26 ` NeilBrown
2014-01-14 8:54 ` David Brown [this message]
2014-01-04 22:08 ` Fabian Knorr
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=52D4FB60.8050004@hesbynett.no \
--to=david.brown@hesbynett.no \
--cc=knorrfab@fim.uni-passau.de \
--cc=linux-raid@vger.kernel.org \
--cc=philip@turmel.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 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).