All of lore.kernel.org
 help / color / mirror / Atom feed
From: Phil Turmel <philip@turmel.org>
To: Guillaume Paumier <guillaume.paumier@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Offline array, events count mismatch
Date: Tue, 10 Nov 2015 10:50:27 -0500	[thread overview]
Message-ID: <56421243.9030000@turmel.org> (raw)
In-Reply-To: <1970874.nKIz6W3yCk@carbon.lepommierdujardin.fr>

On 11/09/2015 10:05 PM, Guillaume Paumier wrote:
> Hello Phil and the list,

> Thank you for confirming, Phil, and for the additional pointer.
> 
> I've re-assembled the array with --force, which cleaned sdj, and then I was 
> able to re-add the two other disks. The array started rebuilding and recovery 
> was past 10% when the array failed again.
> 
> It seems there was an "unrecoverable read error" on sdj, and now I'm back with 
> an array where 2 of the disks are marked as spare (sde and sdf, because their 
> rebuild didn't complete), and sdj is faulty with an event count mismatch of 4, 
> like before:

Yes, you're going to lose some data.

Your only path forward at this point is to --assemble --force without
the spares, and leave them out.  The array will be running degraded.

Apply the timeout mismatch work-arounds suited to your drives.

Start copying out your files to a new backup destination.  Keep track
which ones succeed.

/dev/sdj has 48 pending bad sectors.  You are likely to have files that
cannot be read thanks to those sectors.  Just skip them and keep going
(for now).  Note the sector addresses that fail.

You may have to do forced assembly multiple times to get through the
entire backup.

Write zeroes over the bad sectors to clear the UREs.  If the files are
worthless with those zeroes in them, just delete them.  Do this for all
drives that have UREs.  Then you can add the spares back in to rebuild.

Going forward, you need to apply work-arounds for non-raid drives at
every power cycle, buy raid-rated drives for future replacements, and
use cron to run regular scrubs to keep the UREs under control.

Show the smartctl reports for all of your drives if you'd like more
specfic advice.  And turn off word wrapping when you paste, please.

Phil


      reply	other threads:[~2015-11-10 15:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-09  2:49 Offline array, events count mismatch Guillaume Paumier
2015-11-09  3:35 ` Phil Turmel
2015-11-10  3:05   ` Guillaume Paumier
2015-11-10 15:50     ` Phil Turmel [this message]

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=56421243.9030000@turmel.org \
    --to=philip@turmel.org \
    --cc=guillaume.paumier@gmail.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 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.