All of lore.kernel.org
 help / color / mirror / Atom feed
* IDE DMA timeouts and reiserfs stability
@ 2001-05-10  3:42 Ed Tomlinson
  2001-05-10 14:20 ` Alan Cox
  2001-05-10 16:00 ` [reiserfs-list] " Chris Dukes
  0 siblings, 2 replies; 3+ messages in thread
From: Ed Tomlinson @ 2001-05-10  3:42 UTC (permalink / raw)
  To: reiserfs-list; +Cc: linux-kernel

Hi,

I am using 2.4.5-pre1.  Over the course of the last two weeks I have had
DMA timeouts occur twice.  Both times corrupted my fs.  While this is not
ideal, its not unexpected as things stand now.  I have seen at least three 
other reports on lkml about errors of this type - suspect that 2.4's ide 
is a little fragile in some corner cases...

Contrary to normal practice, after an IO error and fsck is a very wise thing
to do.  Can we automate this process.  ie can reiserfs detect that it has
experienced IO error(s) and set fsck required bits (two bits) in the SB?  
It would also be nice to be able to manually set these bits.  This way a script 
could be triggered at boot (from initrd for those of us with reiserfs boot disks) 
to do something like this

reiserfsck -a 	this should check each FS an does a --check when the bits are set
		to 01.  It changes the SB bits as follows (logging to <dev>01.log)
		00 - fs is ok
		10 - fix-fixable run required (logging to <dev>10.log)
		11 - rebuild-tree required (logging to <dev>11.log)

		writing those logs could be a bit of a catch 22...
			
then the script would call reiserfsck -a again to do the work (if required) and
ask if its ok to do the fix-fixable or rebuild-tree

Think reiserfsck is getting good enough for this, and it would probably avoid 
many of the problem currently popping up on the list. 

Thoughts?

Ed Tomlinson <tomlins@cam.org>

PS. Chris, with the fix you supplied for LVM, snapshots work 100% of the time when
I put them on hda or hde and fail 100% on hdg...  





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

* Re: IDE DMA timeouts and reiserfs stability
  2001-05-10  3:42 IDE DMA timeouts and reiserfs stability Ed Tomlinson
@ 2001-05-10 14:20 ` Alan Cox
  2001-05-10 16:00 ` [reiserfs-list] " Chris Dukes
  1 sibling, 0 replies; 3+ messages in thread
From: Alan Cox @ 2001-05-10 14:20 UTC (permalink / raw)
  To: Ed Tomlinson; +Cc: reiserfs-list, linux-kernel, andre

> DMA timeouts occur twice.  Both times corrupted my fs.  While this is not
> ideal, its not unexpected as things stand now.  I have seen at least three 
> other reports on lkml about errors of this type - suspect that 2.4's ide 
> is a little fragile in some corner cases...

The DMA handling retry code seems to be rather broken. We also have unexplained
traces of IDE recursing which would corrupt the sg tables and make rather
a mess of the IO

So yes, there is some debugging work needed on the current IDE layer


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

* Re: [reiserfs-list] IDE DMA timeouts and reiserfs stability
  2001-05-10  3:42 IDE DMA timeouts and reiserfs stability Ed Tomlinson
  2001-05-10 14:20 ` Alan Cox
@ 2001-05-10 16:00 ` Chris Dukes
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Dukes @ 2001-05-10 16:00 UTC (permalink / raw)
  To: Ed Tomlinson; +Cc: reiserfs-list, linux-kernel

On Wed, May 09, 2001 at 11:42:35PM -0400, Ed Tomlinson wrote:
> Hi,
> 
> I am using 2.4.5-pre1.  Over the course of the last two weeks I have had
> DMA timeouts occur twice.  Both times corrupted my fs.  While this is not
> ideal, its not unexpected as things stand now.  I have seen at least three 
> other reports on lkml about errors of this type - suspect that 2.4's ide 
> is a little fragile in some corner cases...

Out of curiousity, can you reproduce the problem in a 2.4 kernel with 
Andre Hedrick's IDE patch for 2.4 applied? 
It works for me, but that's just me.
(ftp://ftp.kernel.org/pub/linux/kernel/people/hedrick/)

-- 
Chris Dukes
The more I administer Solaris the more I believe it deserves the reputation
HPUX has and vice versa. -- me.

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

end of thread, other threads:[~2001-05-10 16:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-10  3:42 IDE DMA timeouts and reiserfs stability Ed Tomlinson
2001-05-10 14:20 ` Alan Cox
2001-05-10 16:00 ` [reiserfs-list] " Chris Dukes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.