From: Ethan Wilson <ethan.wilson@shiftmail.org>
To: Pedro Teixeira <finas@aeiou.pt>
Cc: "Lars Täuber" <taeuber@bbaw.de>, linux-raid@vger.kernel.org
Subject: Re: strange problem with raid6 read errors on active non-degraded array
Date: Wed, 02 Jul 2014 23:34:53 +0200 [thread overview]
Message-ID: <53B47AFD.6000802@shiftmail.org> (raw)
In-Reply-To: <20140702192825.Horde.18y4TPYRo99TtE9JC9kSzUA@webmail.aeiou.pt>
On 02/07/2014 20:28, Pedro Teixeira wrote:
>
> Hi Ethan,
>
> The thing here is that some of the bad blocks ( if not all ) that are
> giving read errors are not on the bad blocks list.
>
Are you sure? Please note that the offset is a complex topic because an
offset given by fsck will be a sector offset in the md0 sense, while the
device badblock list contains offset in the device sense, which means
that to convert one onto the other you have to divide, or multiply, by
the number of data disks, approximately, and handle the remainder
manually also considering the problem of the rotating parity. Not
simple. Is this the computation that you did?
> Specifically, the ones that show up when doing a fsck are not on any
> drive. For these sectors fsck tries to re-write then and md still
> throws an error but they are not added to the list.
>
Not "added" but "removed". Writing to a bad block should create valid
content so they should be removed from the list. If they don't then
indeed there is probably a bug in the MD code, see my previous post.
> I replaced sdm with a new disk. this was one that had a bunch or bad
> blocks reported by md, and after finishing the rebuild ( with no
> errors at all ) the --examine-badblocks still gives me the exact same
> list of errors. I would expect that replacing the disk by a new one
> would clear the errors.
>
This is the correct behaviour by design.
Source disks did not have valid content in those positions, so good data
cannot be created from nothing. Badblocks will be replicated onto the
new disk.
"Bad" here is more a synonym of "containing invalid data", not really
"unreadable surface".
> as I know the disks are good, is there any way of reseting the bad
> blocks list without destroying the filesystem?
>
This one I don't know but doing that would probably not help to find the
bug.
Regads
EW
next prev parent reply other threads:[~2014-07-02 21:34 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-02 9:32 strange problem with raid6 read errors on active non-degraded array Pedro Teixeira
2014-07-02 9:52 ` Roman Mamedov
2014-07-02 10:07 ` Pedro Teixeira
2014-07-02 10:11 ` Roman Mamedov
2014-07-02 10:37 ` Pedro Teixeira
2014-07-02 11:03 ` Pedro Teixeira
2014-07-02 10:45 ` NeilBrown
2014-07-02 11:54 ` Pedro Teixeira
[not found] ` <20140702152429.742a3e8ea8bd100f5b3bae1f@bbaw.de>
2014-07-02 14:14 ` Pedro Teixeira
2014-07-02 14:55 ` Lars Täuber
2014-07-02 16:35 ` Ethan Wilson
[not found] ` <20140702192825.Horde.18y4TPYRo99TtE9JC9kSzUA@webmail.aeiou.pt>
2014-07-02 21:34 ` Ethan Wilson [this message]
2014-07-02 16:43 ` John Stoffel
[not found] ` <20140702193706.Horde.Q4yuGvYRo99TtFFSw8qw6-A@webmail.aeiou.pt>
2014-07-02 18:41 ` Pedro Teixeira
2014-07-02 19:01 ` John Stoffel
2014-07-03 2:40 ` NeilBrown
2014-07-03 8:29 ` Pedro Teixeira
2014-07-03 10:39 ` Pedro Teixeira
2014-07-03 21:06 ` Pedro Teixeira
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=53B47AFD.6000802@shiftmail.org \
--to=ethan.wilson@shiftmail.org \
--cc=finas@aeiou.pt \
--cc=linux-raid@vger.kernel.org \
--cc=taeuber@bbaw.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox