All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Klauer <Andreas.Klauer@metamorpher.de>
To: Dag Nygren <dag@newtech.fi>
Cc: linux-raid@vger.kernel.org
Subject: Re: RAID 1 not fixing up sector errors?
Date: Thu, 14 Apr 2016 16:22:19 +0200	[thread overview]
Message-ID: <20160414142219.GA4783@EIS.leimen.priv> (raw)
In-Reply-To: <29813347.d6oRyCVBGp@dag.newtech.fi>

On Thu, Apr 14, 2016 at 04:03:59PM +0300, Dag Nygren wrote:
> Anyway I do get those occasional "Pending Reallocate" with
> the appropriate corresponding
> Unrecovered read error - auto reallocate failed
> in the log.

You should replace such disks. RAID survival depends on healthy disks.
 
> But I was expecting the MD layer to try to fixup that sector
> automatically by using the data from the other drive ??

That should happen if the read error is encountered by the md layer, 
and the disk reports this error properly, and the other disk has data 
and not a bad block at the same place...

However the drive may encounter bad sectors on its own, for example 
early in the boot process before Software RAID is active, or when 
running periodic self-tests or other internal monitoring of the drive.

In such cases the software raid won't know about it.

But you should replace such disks anyhow.

Regards
Andreas Klauer

  reply	other threads:[~2016-04-14 14:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-14 13:03 RAID 1 not fixing up sector errors? Dag Nygren
2016-04-14 14:22 ` Andreas Klauer [this message]
2016-04-14 14:43   ` Dag Nygren
2016-04-14 14:56     ` Andreas Klauer
2016-04-15  7:56 ` Roman Mamedov

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=20160414142219.GA4783@EIS.leimen.priv \
    --to=andreas.klauer@metamorpher.de \
    --cc=dag@newtech.fi \
    --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 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.