From: James Pharaoh <james@pharaoh.uk>
To: Kent Overstreet <kent.overstreet@gmail.com>,
Vojtech Pavlik <vojtech@suse.com>
Cc: linux-bcache@vger.kernel.org
Subject: Re: Extra write mode to close RAID5 write hole (kind of)
Date: Fri, 28 Oct 2016 18:07:21 +0100 [thread overview]
Message-ID: <6ab21923-caa2-4706-e4dc-83729ff6d111@pharaoh.uk> (raw)
In-Reply-To: <20161028115249.6myzx2ae24n2w4v7@kmo-pixel>
On 28/10/16 12:52, Kent Overstreet wrote:
> That's not what the raid 5 hole is. The raid 5 hole comes from the fact that
> it's not possible to update the p/q blocks atomically with the data blocks, thus
> there is a point in time when they are _inconsistent_ with the rest of the
> stripe, and if used will lead to reconstructing incorrect data. There's no way
> to fix this with just flushes.
Yes, I understand this, but if the kernel strictly orders writing mdraud
data blocks before parity ones, then it closes part of the hole,
especially if I have a "journal" in a higher layer, and of course ensure
that this journal is reliable.
I think that, in the case of a drive failure, which contains data blocks
which have been written, but which the parity blocks have not been, then
this will fail.
I also think, however, that by putting bcache /under/ mdraid, and
(again) ensuring that the bcache layer is reliable, along with the
requirement for bcache to "journal" all writes, would provide an
extremely reliable storage layer, even at a very large scale.
James
next prev parent reply other threads:[~2016-10-28 17:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-26 15:20 Extra write mode to close RAID5 write hole (kind of) James Pharaoh
2016-10-26 22:31 ` Vojtech Pavlik
2016-10-27 21:46 ` James Pharaoh
2016-10-28 11:52 ` Kent Overstreet
2016-10-28 13:07 ` Vojtech Pavlik
2016-10-28 13:13 ` Kent Overstreet
2016-10-28 16:55 ` Vojtech Pavlik
2016-10-28 16:58 ` James Pharaoh
2016-10-28 17:07 ` James Pharaoh [this message]
2016-10-29 0:58 ` Kent Overstreet
2016-10-29 19:58 ` James Pharaoh
2016-10-28 11:59 ` Kent Overstreet
2016-10-28 17:02 ` James Pharaoh
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=6ab21923-caa2-4706-e4dc-83729ff6d111@pharaoh.uk \
--to=james@pharaoh.uk \
--cc=kent.overstreet@gmail.com \
--cc=linux-bcache@vger.kernel.org \
--cc=vojtech@suse.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox