mirror handling of broken harddrives

Simon L. Nielsen simon at FreeBSD.org
Mon Nov 29 03:57:22 PST 2004


On 2004.11.29 12:47:40 +0100, Terje Elde wrote:

> Given faulty hardware, resulting in:
> 
> ad0: TIMEOUT - READ_DMA retrying (2 retries left) LBA=35170616
> ad0: TIMEOUT - READ_DMA retrying (1 retry left) LBA=35170616
> ad0: FAILURE - READ_DMA timed out
> 
> How would this be handled by geom_mirror if it was a part of a two-plex
> volume?

I can show you from my log how it handles it :-) :

ad0: TIMEOUT - WRITE_DMA retrying (2 retries left) LBA=152911
ad0: FAILURE - WRITE_DMA timed out
GEOM_MIRROR: Request failed (error=5). ad0[WRITE(offset=78290432, length=16384)]
GEOM_MIRROR: Device boot: provider ad0 disconnected.
GEOM_MIRROR: Device boot: provider ad0 detected.
GEOM_MIRROR: Device boot: rebuilding provider ad0.
GEOM_MIRROR: Device boot: rebuilding provider ad0 finished.
GEOM_MIRROR: Device boot: provider ad0 activated.

So, it just works :-).

Actually the mirror in question has rebuild itself like that many
times, and I actually only noticed after quite a while :-).

I actually had more or less the same (the ata errors) happen on
another system, which uses ata(4) for RAID1, and there I had to
manually rebuild the mirror...

geom_mirror has just worked great for me, thanks Pawel! :-)

-- 
Simon L. Nielsen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20041129/2879346d/attachment.bin


More information about the freebsd-geom mailing list