Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Aug 2006 10:46:08 +0200
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        freebsd-geom@freebsd.org
Subject:   gmirror Cannot add disk ad5 to gm0 (error=22)
Message-ID:  <44D06650.1030803@quip.cz>

next in thread | raw e-mail | index | archive | help
Hi,

I have strange problem with gmirror or ATA. Gmirror gm0 is built from 
two providers - ad4 and ad5 (250GB Seagate on SATA ICH7) based on this 
article http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html

Yesterday I got these errors in /var/log/messages:

Aug  1 00:03:42 track kernel: ad5: TIMEOUT - WRITE_DMA48 retrying (1 
retry left) LBA=290279525
Aug  1 00:03:48 track kernel: ad5: TIMEOUT - WRITE_DMA48 retrying (0 
retries left) LBA=290279525
Aug  1 00:03:48 track kernel: ad5: FAILURE - WRITE_DMA48 
status=51<READY,DSC,ERROR> error=10<NID_NOT_FOUND> LBA=290279525
Aug  1 00:03:48 track kernel: GEOM_MIRROR: Request failed (error=5). 
ad5[WRITE(offset=148623116800, length=2048)]
Aug  1 00:03:48 track kernel: GEOM_MIRROR: Device gm0: provider ad5 
disconnected.

Following by similar errors on ad4

Aug  1 06:30:16 track kernel: ad4: TIMEOUT - WRITE_DMA48 retrying (1 
retry left) LBA=284911237
Aug  1 06:30:16 track kernel: ad4: FAILURE - WRITE_DMA48 
status=51<READY,DSC,ERROR> error=10<NID_NOT_FOUND> LBA=284911237
Aug  1 06:30:16 track kernel: GEOM_MIRROR: Request failed (error=5). 
ad4[WRITE(offset=145874553344, length=32768)]
Aug  1 06:30:16 track kernel: 
g_vfs_done():mirror/gm0s2d[WRITE(offset=76083052544, length=32768)]error = 5

After few minutes, system reboots itself with this error message:

Aug  1 09:14:50 track kernel: GEOM_MIRROR: Device gm0: provider ad5 
detected.
Aug  1 09:14:50 track kernel: GEOM_MIRROR: Component ad5 (device gm0) 
broken, skipping.

I tried smartctl -a /dev/ad4 and smartctl -a /dev/ad5, but does not see 
any errors.

If I use gmirror activate -v gm0 ad5 I got
Aug  2 10:24:03 track kernel: GEOM_MIRROR: Component ad5 (device gm0) 
broken, skipping.
Aug  2 10:24:03 track kernel: GEOM_MIRROR: Cannot add disk ad5 to gm0 
(error=22).

I can successfuly mount partitions from drive ad5 like this
mount /dev/ad5s2d /mnt

(Aug  2 10:35:21 track kernel: WARNING: /vol0 was not properly dismounted)

And read any files from this drive.

Can anybody tell me, where is the problem / how can I found what is wrong?

System is FreeBSD 6.1-RELEASE #0: Sun May  7 04:32:43 UTC 2006 
root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
ASUS RS120-E3

There are full logs:
http://www.quip.cz/1/freebsd/asus_rs120-e3/track_SMART_ad4.txt
http://www.quip.cz/1/freebsd/asus_rs120-e3/track_SMART_ad5.txt
http://www.quip.cz/1/freebsd/asus_rs120-e3/track_gmirror_list.txt
http://www.quip.cz/1/freebsd/asus_rs120-e3/track_messages.txt

Miroslav Lachman



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44D06650.1030803>