From: Sebastian Sobolewski <linux@thirdmartini.com>
To: linux-raid@vger.kernel.org
Subject: Re: Write and verify correct data to read-failed sectors before degrading array?
Date: Thu, 16 Sep 2004 19:41:47 -0600 [thread overview]
Message-ID: <414A40DB.6070309@thirdmartini.com> (raw)
In-Reply-To: <16714.12891.987589.769643@cse.unsw.edu.au>
Neil Brown wrote:
>On Thursday September 16, tim@buttersideup.com wrote:
>
>
>>Just thinking out loud here, but I wonder if the following change is
>>possible or worth making to this code? For a failed read, where the
>>block is then successfully read from another drive, then attempt to
>>write the correct data for this block to the device with the read
>>failure (to try to see if the drive firmware thinks this sector is still
>>usable, and if not then maybe it will reallocate the failed sector). If
>>this write succeeds, and can be verified, then don't mark the sector bad
>>(maybe just complain with a printk)..
>>
>>This would get around a lot of mirror failures that I see in
>>operation.. In the past, I've had mirrors go bad with individual failed
>>sectors in different locations on both drives, the array is then
>>unusable (and the database server is dead, in my experience) unless you
>>manually try to knit it back together with dd.
>>
>>
>
>Yes. Great idea. Just as good as every other time it gets suggested :-)
>Unfortunately no-one has presented any actual *code* yet, and I
>haven't found/made/allocated time to do it.
>
> http://neilb.web.cse.unsw.edu.au/SoftRaid/01084418693
>
>NeilBrown
>
>-
>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
>
>
>
I have some experimental code that does the read-recovery piece for
raid1 devices against kernel 2.4.26. If an error is encountered on a
read, the failure is delayed until the read is retried to the other
mirror. If the retried read succeeds it then writes the recovered block
back over the previously failed block.
If the write fails then the drive is marked faulty otherwise we
continue without setting the drive faulty. ( The idea here is that
modern disk drives have spare sectors, and will be automatically
reallocate a bad sector to one of the spares on the next write ).
The caveat is that if the drive is generating lots of bad/failed
reads it's most likely going south.. but that's what smart log
monitoring is for. If anyone is interested I can post the patch.
-Sebastian
next prev parent reply other threads:[~2004-09-17 1:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-10 20:22 [BUG / PATCH] raid1: set BIO_UPTODATE after read error Paul Clements
2004-09-13 5:32 ` Neil Brown
2004-09-15 17:34 ` Paul Clements
2004-09-16 10:50 ` Write and verify correct data to read-failed sectors before degrading array? Tim Small
2004-09-17 0:39 ` Neil Brown
2004-09-17 1:41 ` Sebastian Sobolewski [this message]
2004-09-17 2:00 ` Neil Brown
2004-09-17 2:13 ` Sebastian Sobolewski
2004-09-22 0:06 ` [PATCH] " Sebastian Sobolewski
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=414A40DB.6070309@thirdmartini.com \
--to=linux@thirdmartini.com \
--cc=linux-raid@vger.kernel.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).