From: Wols Lists <antlists@youngman.org.uk>
To: Jean-Baptiste Thomas <cau2jeaf1honoq@laposte.net>
Cc: NeilBrown <neilb@suse.de>, linux-raid@vger.kernel.org
Subject: Re: Paranoid mode for RAID-1 ?
Date: Mon, 27 Apr 2015 17:15:51 +0100 [thread overview]
Message-ID: <553E60B7.2060706@youngman.org.uk> (raw)
In-Reply-To: <1670710921.23079769.1430131923662.JavaMail.zimbra@laposte.net>
On 27/04/15 11:52, Jean-Baptiste Thomas wrote:
> On 2015-04-27 16:49 +1000, NeilBrown wrote:
>> On Mon, 27 Apr 2015 08:37:59 +0200 (CEST) Jean-Baptiste Thomas
>> <cau2jeaf1honoq@laposte.net> wrote:
>> ·
>>> I'm looking for a way to get MD to operate in a mode in which
>>> reading a sector from a RAID-1 device would not succeed until it
>>> got matching data from at least two components.
>> ·
>> No, there is no such thing.
>
> Thanks, now I can move on to working on plan B.
>
>> There "should" be no circumstance which would make it worth while.
>> A drive may well report an error, but it should *never* report
>> incorrect data as though it were correct. That is horribly
>> broken.
>
> Isn't it. <g>
>
>> The cost of running in a "safe" mode would be high, and the
>> likely benefit extremely low. So it is unlikely that anyone
>> would use it for long. So implementing it seems rather
>> pointless.
>
> How high would the cost be ?
>
> Seems to me that a 4-component RAID-1 with a 2-component quorum
> would incur no more I/O or CPU overhead than, say, a 4-component
> RAID-6. Less, in fact, unless parity computation is faster than
> memcmp().
>
> Given the choice between that sort of cost and the possibility
> of massive data corruption because one drive had a hiccup, I
> would not even THINK about running without it.
Well, I've already mentioned the Pr1me technique, but imho that belongs
in the layer that actually writes to the disk. Snag is, it doubles the
required disk space so I don't know how it would fit ...
And I don't remember the maths so I can't tell you *how* it did it, but
for each byte of data it created a parity byte (which is why it doubles
the disk requirement). From that, a single-bit error was guaranteed to
tell you whether the data byte or the parity byte was wrong. If the data
was wrong, you could reconstruct it from the parity. If there was a
two-bit error, you stood a 95% chance or thereabouts of recovery.
So this isn't raid, it won't protect you against disk failure (unless
you put data and parity on separate disks, which then costs a
double-read instead), but at least a read can then return e_data_error
if something goes wrong. But you're looking at only 25% of your disk
space being "usable" for a fast mirror if you do this.
>
>> That said: if someone were to provide an implementation I
>> would certainly consider reviewing it and adding it to md.
>
> Great. Don't think it'll be me, though. :-/
Nor me neither. I'd love to try, but time is not my friend at the moment.
Cheers,
Wol
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-04-27 16:15 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1610581828.22506051.1430116628556.JavaMail.zimbra@laposte.net>
2015-04-27 6:37 ` Paranoid mode for RAID-1 ? Jean-Baptiste Thomas
2015-04-27 6:48 ` Adam Goryachev
2015-04-27 7:15 ` David Brown
2015-04-27 7:35 ` Mikael Abrahamsson
2015-04-27 8:18 ` Adam Goryachev
2015-04-27 8:34 ` Paranoid mode for RAID-1 ? MD-RAID checksums Pasi Kärkkäinen
2015-04-27 9:15 ` Paranoid mode for RAID-1 ? Roman Mamedov
2015-04-27 6:49 ` NeilBrown
2015-04-27 10:52 ` Jean-Baptiste Thomas
2015-04-27 16:15 ` Wols Lists [this message]
2015-04-27 8:45 ` Pieter De Wit
2015-04-27 10:18 ` <DKIM> " Jean-Baptiste Thomas
2015-04-27 10:54 ` David Brown
2015-04-27 12:36 ` Jean-Baptiste Thomas
2015-04-27 13:46 ` David Brown
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=553E60B7.2060706@youngman.org.uk \
--to=antlists@youngman.org.uk \
--cc=cau2jeaf1honoq@laposte.net \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/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.