All of lore.kernel.org
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Gionatan Danti <g.danti@assyoma.it>
Cc: Mikael Abrahamsson <swmike@swm.pp.se>, linux-raid@vger.kernel.org
Subject: Re: On URE and RAID rebuild - again!
Date: Sun, 3 Aug 2014 13:48:34 +1000	[thread overview]
Message-ID: <20140803134834.7773b0ab@notabene.brown> (raw)
In-Reply-To: <1370eb7a35b628323646a86094a26912@assyoma.it>

[-- Attachment #1: Type: text/plain, Size: 2305 bytes --]

On Sat, 02 Aug 2014 18:21:07 +0200 Gionatan Danti <g.danti@assyoma.it> wrote:

> Hi again,
> I started a little experiment regarding BER/UREs and I wish to have an 
> informed feedback.
> 
> As I had a spare 500 GB Seagate Barracuda 7200.12 (BER 10^14 max: 
> http://www.seagate.com/staticfiles/support/disc/manuals/desktop/Barracuda%207200.12/100529369e.pdf), 
> I started to read it continuously with the following shell command: dd 
> if=/dev/sdb of=/dev/null bs=8M iflag=direct
> 
> The drive was used as a member of a RAID10 set on one of my test 
> machines, so I assume its platters are full of pseudo-random data. At 
> 100 MB/s, I am now at about 15 TB read from it and I don't see any 
> problem reported by the kernel.
> 
> Some questions:
> 1) I should try in different / harder mode to generate UREs? Maybe using 
> some pre-determined pseudo-random string and then comparing the results 
> (I think this is more appropriate to catch silent data corruption, by 
> the way)?

You are very unlikely to see UREs just be reading the drive over and over a
again.  You easily do that for years and not get an error.  Or maybe you got
one just then.


> 2) how UREs should be visible? Via error reporting through dmesg?

If you want to see how the system responds when it hits a URE, you can use the
hdparm command and the "--make-bad-sector" option.  There is also a
"--repair-sector" option which will (hopefully) repair the sector when you
are done.

NeilBrown


> 
> Thanks.
> 
> Il 2014-07-31 09:16 Gionatan Danti ha scritto:
> >> Yes, you can usually get your data back with mdadm.
> >> 
> >> With latest code, a URE during recovery will cause a bad-block to be 
> >> recorded
> >> on the recovered device, and recovery will continue.  You end up with 
> >> a
> >> working array that has a few unreadable blocks on it.
> >> 
> >> NeilBrown
> > 
> > This is very good news :)
> > I case of parity RAID I assume the entire stripe is marked as bad, but
> > with mirror (eg: RAID10) only a single block (often 512B) is marked
> > bad on the recovered device, right?
> > 
> > From what mdadm/kernel version the new behavior is implemented? Maybe
> > the software RAID on my CentOS 6.5 is stronger then expected ;)
> > 
> > Regards.
> 


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

  reply	other threads:[~2014-08-03  3:48 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-30  8:29 On URE and RAID rebuild - again! Gionatan Danti
2014-07-30 11:13 ` Mikael Abrahamsson
2014-07-30 13:05   ` Gionatan Danti
2014-07-30 21:31     ` NeilBrown
2014-07-31  7:16       ` Gionatan Danti
2014-08-02 16:21         ` Gionatan Danti
2014-08-03  3:48           ` NeilBrown [this message]
2014-08-04  7:02             ` Mikael Abrahamsson
2014-08-04  7:13               ` NeilBrown
2014-08-04 13:27             ` Gionatan Danti
2014-08-04 18:40               ` Mikael Abrahamsson
2014-08-04 22:44                 ` Gionatan Danti
2014-08-04 23:29                   ` NeilBrown
2014-08-05  6:52                     ` Gionatan Danti
2014-08-05 19:01                   ` Piergiorgio Sartor
2014-08-05 19:42                     ` Gionatan Danti
2014-08-06 17:05                       ` Chris Murphy
2014-08-06 16:34                   ` Chris Murphy

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=20140803134834.7773b0ab@notabene.brown \
    --to=neilb@suse.de \
    --cc=g.danti@assyoma.it \
    --cc=linux-raid@vger.kernel.org \
    --cc=swmike@swm.pp.se \
    /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.