From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
To: Brad Campbell <brad@wasp.net.au>
Cc: Robert Hancock <hancockr@shaw.ca>,
linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Why does the md/raid subsystem does not remap bad sectors in a raid array?
Date: Sun, 23 Nov 2008 10:20:41 -0200 [thread overview]
Message-ID: <20081123122041.GC17607@khazad-dum.debian.net> (raw)
In-Reply-To: <4928DD4C.4020301@wasp.net.au>
On Sun, 23 Nov 2008, Brad Campbell wrote:
> md has done this for a while now though. If it encounters a read error in
> the array it will make an attempt to write the reconstructed data back to
> that disk attempting to force a reallocation. I've seen it work quite
> well here on disks that have the occasional grown defect.
Indeed, but it does so in the "check array" mode (which distros like
Debian are now enabling once-a-month or so, I always up that to once a
week :p)
Does md repair bitrotten sectors ALSO outside of check mode? That's
what is being asked in this thread...
> If the disk is haemorrhaging sectors then you will find out about it
> sooner or later through other means.
Like a weekly SMART long test. That's what our maintenance windows are
for :) Everything is kept on-line, but allowed to run in degraded
performance mode, so we kick in SMART offline and long tests, RAID array
scrubbing, etc (not at the same time, though!).
That reminds me to file a bug against smartmontools to DISABLE auto
offline mode on disks, and enable them one disk at a time at a random
interval with at least one hour between them. Otherwise, the disks all
enter auto-offline-testing SMART mode at the same time.
Hmm, it would be good to teach md to measure disk throughput using a
sliding window (of say, 5 minutes) and reduce read priority of disks
that are slow...
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
next prev parent reply other threads:[~2008-11-23 12:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-23 0:02 Why does the md/raid subsystem does not remap bad sectors in a raid array? Justin Piszcz
2008-11-23 0:13 ` Jon Nelson
2008-11-23 1:44 ` Robert Hancock
2008-11-23 4:34 ` Brad Campbell
2008-11-23 12:20 ` Henrique de Moraes Holschuh [this message]
2008-11-25 8:17 ` Luca Berra
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=20081123122041.GC17607@khazad-dum.debian.net \
--to=hmh@hmh.eng.br \
--cc=brad@wasp.net.au \
--cc=hancockr@shaw.ca \
--cc=linux-kernel@vger.kernel.org \
--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).