linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* md raid behavior, bad sector uncorrectable read error
@ 2012-08-18 22:40 Chris Murphy
  2012-08-19  8:54 ` Albert Pauw
  2012-08-19  9:47 ` Mikael Abrahamsson
  0 siblings, 2 replies; 10+ messages in thread
From: Chris Murphy @ 2012-08-18 22:40 UTC (permalink / raw)
  To: linux-raid

I'm not experiencing this at the moment, but I'm curious about what happens if it were to happen.

A drive detects a sector error, but can't correct it, and returns an 0x40 error to the system.

Presumably md raid (any RAID I would think) becomes aware of this error, as the chunk is incomplete without the sector. Next, does md raid rebuild the affected chunk from parity on-the-fly? Or is the entire drive dropped from the array and placed into degraded mode?

If the affected chunk is rebuilt from parity (or copy in case of mirror), does md raid issue a write command to write the rebuilt chunk back to the disk at the same LBAs? If so, shouldn't this force the drive to determine if the sector error is transient or persistent, and if persistent the disk firmware will remap the bad sector to a reserve sector?

Thanks,

Chris Murphy



^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: md raid behavior, bad sector uncorrectable read error
@ 2012-08-20  4:53 Richard Scobie
  0 siblings, 0 replies; 10+ messages in thread
From: Richard Scobie @ 2012-08-20  4:53 UTC (permalink / raw)
  To: Linux RAID Mailing List

Chris Murphy wrote:

 > Nor have I found in other documentation a reference to man md until
 > now.

The command

man -k KEYWORD

will search the whatis database for man pages containing KEYWORD, 
(assuming you have run "makewhatis", to generate a current database).

man -k md

or

man -k RAID

both return the md(4) man page.

Regards,

Richard

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-08-20 12:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-18 22:40 md raid behavior, bad sector uncorrectable read error Chris Murphy
2012-08-19  8:54 ` Albert Pauw
2012-08-19 18:12   ` Chris Murphy
2012-08-19 22:19     ` NeilBrown
2012-08-20  2:06       ` Chris Murphy
2012-08-20 12:36         ` Phil Turmel
2012-08-20  6:36     ` David Brown
2012-08-19  9:47 ` Mikael Abrahamsson
2012-08-19 10:39   ` Oliver Schinagl
  -- strict thread matches above, loose matches on Subject: below --
2012-08-20  4:53 Richard Scobie

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).