From: Marc MERLIN <marc@merlins.org>
To: NeilBrown <neilb@suse.de>
Cc: Richard Scobie <r.scobie@clear.net.nz>,
Linux RAID Mailing List <linux-raid@vger.kernel.org>
Subject: Re: How to force rewrite of a smart detected bad block with raid5: checkarray?
Date: Wed, 19 Jan 2011 12:57:39 -0800 [thread overview]
Message-ID: <20110119205739.GI7117@merlins.org> (raw)
In-Reply-To: <20110120070133.47eccd10@notabene.brown>
On Thu, Jan 20, 2011 at 07:01:33AM +1100, NeilBrown wrote:
> > > The kernel source, Documentation/md.txt.
> >
> > Ah, yes of course. Didn't think about looking there, thanks.
>
> "man md" is also an appropriate place to look.
Ah yes. Thanks for that too.
> > Mmmh, so I was curious as to how repair, when reading all the blocks of a
> > stripe with no read errors, and finding a parity mismatch, would know which
> > block was corrupted and needs to be rewritten.
>
> It doesn't repair the data - that would be impossible. It repairs the
that's what I thought.
> redundancy information which is all that raid really knows about.
> i.e. if it finds an inconsistency it re-writes the parity block.
Right, so it has only chance out of n to fix the right drive. Better than
nothing though.
> It isn't often useful. But if you parity blocks are wrong somehow, then it
> can be useful. It will not recover data that you have already lost, but it
> could make it less likely to lose more data.
Fair enough.
> md currently treats RAID6 just the same way as RAID5 - parity is re-written.
> It is possible that more could be done, but it isn't completely clear that it
> should - and it certainly isn't high on my priority list.
Understood.
So, I went back and read man md, and md.txt in the kernel Documentation
tree, but I could not find documentation on this:
echo 3907029168 > sync_min
echo 3907029170 > sync_max
and as per my other post, it didn't work for me on 2.6.36
(echo: write error: Invalid argument)
Any suggestions?
Thanks,
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/
next prev parent reply other threads:[~2011-01-19 20:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-19 18:36 How to force rewrite of a smart detected bad block with raid5: checkarray? Richard Scobie
2011-01-19 18:49 ` Marc MERLIN
2011-01-19 20:01 ` NeilBrown
2011-01-19 20:57 ` Marc MERLIN [this message]
2011-01-20 0:30 ` Richard Scobie
-- strict thread matches above, loose matches on Subject: below --
2011-01-19 7:04 Marc MERLIN
2011-01-19 7:42 ` Mikael Abrahamsson
2011-01-19 9:41 ` NeilBrown
2011-01-19 17:31 ` Marc MERLIN
2011-01-19 20:58 ` NeilBrown
2011-01-19 21:03 ` Marc MERLIN
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=20110119205739.GI7117@merlins.org \
--to=marc@merlins.org \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
--cc=r.scobie@clear.net.nz \
/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.