From: Luca Berra <bluca@comedia.it>
To: linux-raid@vger.kernel.org
Subject: Re: Proactive Drive Replacement
Date: Fri, 24 Oct 2008 07:57:26 +0200 [thread overview]
Message-ID: <20081024055726.GA16857@maude.comedia.it> (raw)
In-Reply-To: <48FD94F9.3060400@dgreaves.com>
On Tue, Oct 21, 2008 at 09:38:17AM +0100, David Greaves wrote:
>The main issue is that the drive being replaced almost certainly has a bad
>block. This block could be recovered from the raid5 set but won't be.
>Worse, the mirror operation may just fail to mirror that block - leaving it
>'random' and thus corrupt the set when replaced.
False,
if SMART reports the drive is failing, it just means the number of
_correctable_ errors got too high, remember that hard drives (*) do use
ECC and autonomously remap bad blocks.
You replace a drive based on smart to prevent it developing bad blocks.
Ignoring the above, your scenario is still impossible, if you tried to
mirror a source drive with a bad block, md will notice and fail the
mirroring process. You will never end up with one drive with a bad block
and the other with uninitialized data.
If what you are really worried about is not bad block, but silent
corruption, you should run a check (see sync_action in
/usr/src/linux/Documentation/md.txt)
L.
(*) note that i don't write 'modern hard drives'.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
next prev parent reply other threads:[~2008-10-24 5:57 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-20 17:35 Proactive Drive Replacement Jon Nelson
2008-10-20 22:40 ` Mario 'BitKoenig' Holbe
2008-10-21 8:38 ` David Greaves
2008-10-21 13:05 ` Jon Nelson
2008-10-21 13:36 ` David Greaves
2008-10-21 13:50 ` David Lethe
2008-10-21 14:11 ` Mario 'BitKoenig' Holbe
2008-10-21 15:13 ` David Lethe
2008-10-21 15:30 ` Mario 'BitKoenig' Holbe
2008-10-21 19:39 ` David Greaves
2008-10-21 13:57 ` Mario 'BitKoenig' Holbe
2008-10-21 17:29 ` David Greaves
2008-10-24 5:57 ` Luca Berra [this message]
2008-10-24 8:09 ` David Greaves
2008-10-25 13:20 ` Luca Berra
2008-10-25 16:33 ` David Greaves
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=20081024055726.GA16857@maude.comedia.it \
--to=bluca@comedia.it \
--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).