linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* libata retry - disable?
@ 2006-04-18  6:30 Molle Bestefich
  2006-04-18  6:50 ` Jeff Garzik
  2006-04-18 14:44 ` David Greaves
  0 siblings, 2 replies; 4+ messages in thread
From: Molle Bestefich @ 2006-04-18  6:30 UTC (permalink / raw)
  To: linux-raid

Does anyone know of a way to disable libata's 5-time retry when a read fails?

It has the effect of causing every failed sector read to take 6
seconds before it fails, causing raid5 rebuilds to go awfully slow. 
It's generally undesirable too, when you've got RAID on top that can
write replacement data onto the failed sectors..

Log showing a failed sector:
Apr 18 09:49:53 linux kernel: end_request: I/O error, dev sda, sector 131124407
Apr 18 09:49:55 linux kernel: ata1: no sense translation for status: 0x51
Apr 18 09:49:55 linux kernel: ata1: translated ATA stat/err 0x51/00 to
SCSI SK/ASC/ASCQ 0x3/11/04
Apr 18 09:49:55 linux kernel: ata1: status=0x51 { DriveReady
SeekComplete Error }
Apr 18 09:49:56 linux kernel: ata1: no sense translation for status: 0x51
Apr 18 09:49:56 linux kernel: ata1: translated ATA stat/err 0x51/00 to
SCSI SK/ASC/ASCQ 0x3/11/04
Apr 18 09:49:56 linux kernel: ata1: status=0x51 { DriveReady
SeekComplete Error }
Apr 18 09:49:57 linux kernel: ata1: no sense translation for status: 0x51
Apr 18 09:49:57 linux kernel: ata1: translated ATA stat/err 0x51/00 to
SCSI SK/ASC/ASCQ 0x3/11/04
Apr 18 09:49:57 linux kernel: ata1: status=0x51 { DriveReady
SeekComplete Error }
Apr 18 09:49:59 linux kernel: ata1: no sense translation for status: 0x51
Apr 18 09:49:59 linux kernel: ata1: translated ATA stat/err 0x51/00 to
SCSI SK/ASC/ASCQ 0x3/11/04
Apr 18 09:49:59 linux kernel: ata1: status=0x51 { DriveReady
SeekComplete Error }
Apr 18 09:50:00 linux kernel: ata1: no sense translation for status: 0x51
Apr 18 09:50:00 linux kernel: ata1: translated ATA stat/err 0x51/00 to
SCSI SK/ASC/ASCQ 0x3/11/04
Apr 18 09:50:00 linux kernel: ata1: status=0x51 { DriveReady
SeekComplete Error }
Apr 18 09:50:01 linux kernel: ata1: no sense translation for status: 0x51
Apr 18 09:50:01 linux kernel: ata1: translated ATA stat/err 0x51/00 to
SCSI SK/ASC/ASCQ 0x3/11/04
Apr 18 09:50:01 linux kernel: ata1: status=0x51 { DriveReady
SeekComplete Error }
Apr 18 09:50:01 linux kernel: sd 0:0:0:0: SCSI error: return code = 0x8000002
Apr 18 09:50:01 linux kernel: sda: Current: sense key: Medium Error
Apr 18 09:50:01 linux kernel:     Additional sense: Unrecovered read
error - auto reallocate failed
Apr 18 09:50:01 linux kernel: end_request: I/O error, dev sda, sector 131124415
Apr 18 09:50:02 linux kernel: raid5: read error corrected!!
Apr 18 09:50:02 linux last message repeated 112 times

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libata retry - disable?
  2006-04-18  6:30 libata retry - disable? Molle Bestefich
@ 2006-04-18  6:50 ` Jeff Garzik
  2006-04-18 14:44 ` David Greaves
  1 sibling, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2006-04-18  6:50 UTC (permalink / raw)
  To: Molle Bestefich; +Cc: linux-raid

Molle Bestefich wrote:
> Does anyone know of a way to disable libata's 5-time retry when a read fails?
> 
> It has the effect of causing every failed sector read to take 6
> seconds before it fails, causing raid5 rebuilds to go awfully slow. 
> It's generally undesirable too, when you've got RAID on top that can
> write replacement data onto the failed sectors..

libata does not retry at all.

	Jeff




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libata retry - disable?
  2006-04-18  6:30 libata retry - disable? Molle Bestefich
  2006-04-18  6:50 ` Jeff Garzik
@ 2006-04-18 14:44 ` David Greaves
  2006-04-18 16:49   ` Molle Bestefich
  1 sibling, 1 reply; 4+ messages in thread
From: David Greaves @ 2006-04-18 14:44 UTC (permalink / raw)
  To: Molle Bestefich; +Cc: linux-raid

Molle Bestefich wrote:
> Does anyone know of a way to disable libata's 5-time retry when a read fails?
>
> It has the effect of causing every failed sector read to take 6
> seconds before it fails, causing raid5 rebuilds to go awfully slow. 
> It's generally undesirable too, when you've got RAID on top that can
> write replacement data onto the failed sectors..
>
> Log showing a failed sector:
> Apr 18 09:49:53 linux kernel: end_request: I/O error, dev sda, sector 131124407
> Apr 18 09:49:55 linux kernel: ata1: no sense translation for status: 0x51
> Apr 18 09:49:55 linux kernel: ata1: translated ATA stat/err 0x51/00 to
> SCSI SK/ASC/ASCQ 0x3/11/04
>   
What kernel Molle?

There were some nasties in 2.6.15 to do with FUA. Have a look for my
postings in linux-ide (my problems are still not entirely resolved).

(I got very used to mdadm --force and xfs_repair during that experience!)

David

-- 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libata retry - disable?
  2006-04-18 14:44 ` David Greaves
@ 2006-04-18 16:49   ` Molle Bestefich
  0 siblings, 0 replies; 4+ messages in thread
From: Molle Bestefich @ 2006-04-18 16:49 UTC (permalink / raw)
  To: David Greaves; +Cc: linux-raid

David Greaves wrote:
> Molle Bestefich wrote:
> > Does anyone know of a way to disable libata's 5-time retry when a read fails?
> >
> > It has the effect of causing every failed sector read to take 6
> > seconds before it fails, causing raid5 rebuilds to go awfully slow.
> > It's generally undesirable too, when you've got RAID on top that can
> > write replacement data onto the failed sectors..
> >
> > Log showing a failed sector:
> > Apr 18 09:49:53 linux kernel: end_request: I/O error, dev sda, sector 131124407
> > Apr 18 09:49:55 linux kernel: ata1: no sense translation for status: 0x51
> > Apr 18 09:49:55 linux kernel: ata1: translated ATA stat/err 0x51/00 to
> > SCSI SK/ASC/ASCQ 0x3/11/04
> >
> What kernel Molle?
>
> There were some nasties in 2.6.15 to do with FUA. Have a look for my
> postings in linux-ide (my problems are still not entirely resolved).

2.6.16.5.  A bit surprised to see 2.6.16.7 out already.
I think the errors are (were, md-rewrite fixed it) real enough.

> (I got very used to mdadm --force and xfs_repair during that experience!)

:-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-18 16:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-18  6:30 libata retry - disable? Molle Bestefich
2006-04-18  6:50 ` Jeff Garzik
2006-04-18 14:44 ` David Greaves
2006-04-18 16:49   ` Molle Bestefich

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).