* Bad block management - which mdadm?
@ 2011-10-24 20:12 Arkadiusz Miśkiewicz
2011-10-24 22:46 ` NeilBrown
0 siblings, 1 reply; 2+ messages in thread
From: Arkadiusz Miśkiewicz @ 2011-10-24 20:12 UTC (permalink / raw)
To: linux-raid
kernelnewbies.org reports such feature for 3.1 kernel
1.9. Software RAID: Bad block management
The MD layer (aka "Multiple Devices", aka software raid) has gained bad block
management support: bad blocks will be added to a list, and the system will
try not to use them. This feature requires an updated mdadm version.
Which mdadm supports that?
--
Arkadiusz Miśkiewicz PLD/Linux Team
arekm / maven.pl http://ftp.pld-linux.org/
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bad block management - which mdadm?
2011-10-24 20:12 Bad block management - which mdadm? Arkadiusz Miśkiewicz
@ 2011-10-24 22:46 ` NeilBrown
0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2011-10-24 22:46 UTC (permalink / raw)
To: Arkadiusz Miśkiewicz; +Cc: linux-raid
[-- Attachment #1: Type: text/plain, Size: 1820 bytes --]
On Mon, 24 Oct 2011 22:12:14 +0200 Arkadiusz Miśkiewicz
<a.miskiewicz@gmail.com> wrote:
>
> kernelnewbies.org reports such feature for 3.1 kernel
>
> 1.9. Software RAID: Bad block management
> The MD layer (aka "Multiple Devices", aka software raid) has gained bad block
> management support: bad blocks will be added to a list, and the system will
> try not to use them. This feature requires an updated mdadm version.
>
> Which mdadm supports that?
>
mdadm-3.3 will support bad block management.
However it is not released yet.
You can get current code from
git://neil.brown.name/mdadm devel-3.3
It isn't released yet because
1/ I haven't found/made time to work on mdadm and integrate support
properly.
2/ The kernel isn't really quite read for full support.
If you have a bad block list, then a write error will not fail the drive but
will record the location of the write error.
This might be what you want. But if you have a hot-spare available it might
not be what you want - the current kernel code will never use a hot spare
until a drive fails really badly.
What it *should* do is "hot-replace". i.e. recover the data on to a spare
without first removing the device with the bad block. But the hot-replace
code isn't ready yet.
I expect hot-replace to be in linux-3.3 (for RAID4/5/6 at least) and I hope to
release mdadm-3.3 before then with full support for bad blocks and hot
replace.
For now if you use the devel-3.3 code to create a new array it will place a
bad-block-log on the array and the kernel will use that bad block log to
record failed blocks rather than failing the whole device.
If you want a device to be failed, you might have to explicitly do that
yourself with "mdadm /dev/mdX --fail /dev/sdY"
NeilBrown
[-- 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:[~2011-10-24 22:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-24 20:12 Bad block management - which mdadm? Arkadiusz Miśkiewicz
2011-10-24 22:46 ` 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).