* Questions regarding bad block management
@ 2014-01-26 21:03 Clemens Eisserer
2014-02-25 5:59 ` NeilBrown
0 siblings, 1 reply; 2+ messages in thread
From: Clemens Eisserer @ 2014-01-26 21:03 UTC (permalink / raw)
To: linux-raid
Hi,
I've seen several SD cards used in my raspberry pi develop bad blocks
which can not be read or written anymore.
I thought raid couldn't help here as it would flag the whole device as
"bad" once it can not write a block anymore, however recently I
learned linux-raid is now capable of handling bad blocks.
I've been searching a bit, however didn't find a lot of information,
so I would be greateful if somebody could answer the following
questions:
1. Is the badblock-code contained in the stable 3.12 kernel?
1. Using a raid1 with badblock management, is it possible for
linux-raid to automatially repair errors transparently?
So if a block goes bad, does linux-raid silently replace it without
user intervention.
2. What happens in case a replaced block fails again? Is this supported?
Any pointer to documentation about bad-block handling would be highly
appriciated.
Thanks, Clemens
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Questions regarding bad block management
2014-01-26 21:03 Questions regarding bad block management Clemens Eisserer
@ 2014-02-25 5:59 ` NeilBrown
0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2014-02-25 5:59 UTC (permalink / raw)
To: Clemens Eisserer; +Cc: linux-raid
[-- Attachment #1: Type: text/plain, Size: 1898 bytes --]
On Sun, 26 Jan 2014 22:03:45 +0100 Clemens Eisserer <linuxhippy@gmail.com>
wrote:
> Hi,
>
> I've seen several SD cards used in my raspberry pi develop bad blocks
> which can not be read or written anymore.
> I thought raid couldn't help here as it would flag the whole device as
> "bad" once it can not write a block anymore, however recently I
> learned linux-raid is now capable of handling bad blocks.
>
> I've been searching a bit, however didn't find a lot of information,
> so I would be greateful if somebody could answer the following
> questions:
>
> 1. Is the badblock-code contained in the stable 3.12 kernel?
Yes. Not sure if it will help you though.
>
> 1. Using a raid1 with badblock management, is it possible for
> linux-raid to automatially repair errors transparently?
> So if a block goes bad, does linux-raid silently replace it without
> user intervention.
When raid1 get a read failure it will read the data from another device and
write it to the failing device. If that works it assumes the block has been
repaired.
If it fails and a bad-block-log is configured, then the address of the bad
block is stored in the bad-block-log and raid1 won't try reading from there
again. It will always read from the other device.
>
> 2. What happens in case a replaced block fails again? Is this supported?
Yes. raid1 will simply over-write it again.
But I think you want md/raid1 to remap the bad blocks. It doesn't do that.
It assumes the underlying device will do any remapping needed.
NeilBrown
>
> Any pointer to documentation about bad-block handling would be highly
> appriciated.
>
> Thanks, Clemens
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-25 5:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-26 21:03 Questions regarding bad block management Clemens Eisserer
2014-02-25 5:59 ` NeilBrown
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).