# Re: When does a disk get flagged as bad?

- From: Bill Davidsen \<hidden\>
- Date: 2007-06-02 00:07:56 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2007/06/6600007
- Thread: https://ratatoskr.run/linux-raid/2007/05/6599997/t.md

```text
Neil Brown wrote:
> On Wednesday May 30, alberto@ggsys.net wrote:
>   
>> After thinking about your post, I guess I can see some logic behind
>> not failing on the read, although I would say that after x amount of
>> read failures a drive should be kicked out no matter what.
>>     
>
> When md gets a read error, it collects the correct data from elsewhere
> and tries to write it to the drive that apparently failed.
> If that succeeds, it tries to read it back again.  If that succeeds as
> well, it assumes that the problem has been fixed.  Otherwise it fails
> the drive.
>   
That's the way it should work, but hopefully the error is logged somewhere. Other than as a SMART relocate?

-- 
bill davidsen [ref]
 CTO TMR Associates, Inc
 Doing interesting things with small computers since 1979

```
