linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Hendrikx <hjohn@xs4all.nl>
To: linux-raid@vger.kernel.org
Subject: Re: [PATCH 000 of 5] md: Introduction
Date: Wed, 18 Jan 2006 13:46:16 +0100	[thread overview]
Message-ID: <43CE3898.7090207@xs4all.nl> (raw)
In-Reply-To: <20060118081407.GC18945@localhost.localdomain>

Sander wrote:
> Michael Tokarev wrote (ao):
>   
>> Most problematic case so far, which I described numerous times (like,
>> "why linux raid isn't Raid really, why it can be worse than plain
>> disk") is when, after single sector read failure, md kicks the whole
>> disk off the array, and when you start resync (after replacing the
>> "bad" drive or just remapping that bad sector or even doing nothing,
>> as it will be remapped in almost all cases during write, on real
>> drives anyway),
>>     
>
> If the (harddisk internal) remap succeeded, the OS doesn't see the bad
> sector at all I believe.
>   
Most hard disks will not remap sectors when reading fails, because then 
the contents would be lost permanently. 

Instead, they will report a failure to the OS, hoping that the sector 
might be readable at some later time.

What Linux Raid could do is reconstructing the sector that failed from 
the other drives and then writing it to disk.  Because the original 
contents of the sector will be lost on writing, your hard disk can 
safely remap the sector (and it will -- I often "repaired" bad sectors 
by writing to them).

> If you (the OS) do see a bad sector, the disk couldn't remap, and goes
> downhill from there, right?
>   
Not necessarily, if you see a bad sector after *writing* to it (several 
times), then your hard disk will probably go bad soon.  Most hard disks 
only remap sectors on write, so a simple full format can fix sectors 
that failed on read.

I agree with the original poster though, I'd really love to see Linux 
Raid take special action on sector read failures.  It happens about 5-6 
times a year here that a disk gets kicked out of the array for a simple 
read failure.  A rebuild of the array will fix it without a trace, but a 
rebuild takes about 3 hours :)

--John


  parent reply	other threads:[~2006-01-18 12:46 UTC|newest]

Thread overview: 83+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-17  6:56 [PATCH 000 of 5] md: Introduction NeilBrown
2006-01-17  6:56 ` [PATCH 001 of 5] md: Split disks array out of raid5 conf structure so it is easier to grow NeilBrown
2006-01-17 14:37   ` John Stoffel
2006-01-19  0:26     ` Neil Brown
2006-01-21  3:37       ` John Stoffel
2006-01-22 22:57         ` Neil Brown
2006-01-17  6:56 ` [PATCH 002 of 5] md: Allow stripes to be expanded in preparation for expanding an array NeilBrown
2006-01-17  6:56 ` [PATCH 003 of 5] md: Infrastructure to allow normal IO to continue while array is expanding NeilBrown
2006-01-17  6:56 ` [PATCH 004 of 5] md: Core of raid5 resize process NeilBrown
2006-01-17  6:56 ` [PATCH 005 of 5] md: Final stages of raid5 expand code NeilBrown
2006-01-17  9:55   ` Sander
2006-01-19  0:32     ` Neil Brown
2006-01-17  8:17 ` [PATCH 000 of 5] md: Introduction Michael Tokarev
     [not found]   ` <fd8d0180601170121s1e6a55b7o@mail.gmail.com>
2006-01-17  9:38     ` Francois Barre
2006-01-19  0:35       ` Neil Brown
2006-01-17  9:50   ` Sander
2006-01-17 11:26     ` Michael Tokarev
2006-01-17 11:37       ` Francois Barre
2006-01-17 14:03       ` Kyle Moffett
2006-01-19  0:28         ` Neil Brown
2006-01-17 16:08       ` Ross Vandegrift
2006-01-17 18:12         ` Michael Tokarev
2006-01-18  8:14           ` Sander
2006-01-18  8:37             ` Brad Campbell
2006-01-18  9:03             ` Alan Cox
2006-01-18 12:46             ` John Hendrikx [this message]
2006-01-18 12:51               ` Gordon Henderson
2006-01-18 23:51                 ` Neil Brown
2006-01-19  7:20                   ` PFC
2006-01-19  8:01                     ` dean gaudet
2006-01-18 23:54               ` Neil Brown
2006-01-19  0:22           ` Neil Brown
2006-01-19  9:01             ` Jakob Oestergaard
2006-01-17 22:38       ` Phillip Susi
2006-01-17 22:57         ` Neil Brown
2006-01-17 14:10   ` Steinar H. Gunderson
2006-01-17 15:07 ` Mr. James W. Laferriere
2006-01-19  0:23   ` Neil Brown
2006-01-22  4:42 ` Adam Kropelin
2006-01-22 22:52   ` Neil Brown
2006-01-23 23:02     ` Adam Kropelin
2006-01-23  1:08 ` John Hendrikx
2006-01-23  1:25   ` Neil Brown
2006-01-23  1:54     ` Kyle Moffett
2006-01-23  2:09     ` Mr. James W. Laferriere
2006-01-23  2:33       ` Neil Brown
  -- strict thread matches above, loose matches on Subject: below --
2006-01-17 21:38 Lincoln Dale (ltd)
2006-01-18 13:27 ` Jan Engelhardt
2006-01-18 23:19   ` Neil Brown
2006-01-19 15:33     ` Mark Hahn
2006-01-19 20:12     ` Jan Engelhardt
2006-01-19 21:22       ` Lars Marowsky-Bree
2006-01-19 22:17     ` Phillip Susi
2006-01-19 22:32       ` Neil Brown
2006-01-19 23:26         ` Phillip Susi
2006-01-19 23:43           ` Neil Brown
2006-01-20  2:17             ` Phillip Susi
2006-01-20 10:53               ` Lars Marowsky-Bree
2006-01-20 12:06                 ` Jens Axboe
2006-01-20 18:38                 ` Heinz Mauelshagen
2006-01-20 22:09                   ` Lars Marowsky-Bree
2006-01-21  0:06                     ` Heinz Mauelshagen
2006-01-20 18:41               ` Heinz Mauelshagen
2006-01-20 17:29             ` Ross Vandegrift
2006-01-20 18:36             ` Heinz Mauelshagen
2006-01-20 22:57               ` Lars Marowsky-Bree
2006-01-21  0:01                 ` Heinz Mauelshagen
2006-01-21  0:03                   ` Lars Marowsky-Bree
2006-01-21  0:08                     ` Heinz Mauelshagen
2006-01-21  0:13                       ` Lars Marowsky-Bree
2006-01-23  9:44                         ` Heinz Mauelshagen
2006-01-23 10:26                           ` Lars Marowsky-Bree
2006-01-23 10:38                             ` Heinz Mauelshagen
2006-01-23 10:45                               ` Lars Marowsky-Bree
2006-01-23 11:00                                 ` Heinz Mauelshagen
2006-01-23 12:54                           ` Ville Herva
2006-01-23 13:00                             ` Steinar H. Gunderson
2006-01-23 13:54                             ` Heinz Mauelshagen
2006-01-23 17:33                               ` Ville Herva
2006-01-24  2:02                             ` Phillip Susi
2006-01-20  7:51         ` Reuben Farrelly
2006-01-20  3:43           ` Andre' Breiler
2006-01-21  0:42             ` 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=43CE3898.7090207@xs4all.nl \
    --to=hjohn@xs4all.nl \
    --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).