LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-28-2006, 09:41 AM   #1
srfeo
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Rep: Reputation: 0
kernel: hda: dma_timer_expiry: dma status == 0x20


Hi there,

I am running Debian3.1 with kernel 2.6.8-2-386 on a Dell Laptop. I am using it as a remotely accessed always-on server. It seems to run quite well, but sometimes after a few months, I get a "dma_timer_expiry: dma status == 0x20" error the file system (reiserFS) resets itself into readonly mode. I get all sorts of Input/Output errors and I can't even reboot the box.

Is this showing that the disk is bad? It seems not to be as it is working fine for months before getting the DMA errors. Is there anything I can configure to avoid these problems? Is there a kernel modification, or fstab/hdparm command, or other filesystem that I should use that will prevent the drive going into read-only mode?

Thank you for any help!

root@gateway:/etc# cat debian_version
cat: debian_version: Input/output error

from syslog:

Jul 1 13:55:54 localhost kernel: hda: dma_timer_expiry: dma status == 0x20
Jul 1 13:56:59 localhost syslogd: /var/log/kern.log: Input/output error
Jul 1 13:56:59 localhost kernel: hda: DMA timeout retry
Jul 1 13:56:59 localhost kernel: hda: timeout waiting for DMA
Jul 1 13:56:59 localhost kernel: hda: status timeout: status=0xd0 { Busy }
Jul 1 13:56:59 localhost kernel:
Jul 1 13:56:59 localhost kernel: hda: drive not ready for command
Jul 1 13:56:59 localhost kernel: ide0: reset timed-out, status=0xd0
Jul 1 13:56:59 localhost kernel: hda: status timeout: status=0xd0 { Busy }
Jul 1 13:56:59 localhost kernel:
Jul 1 13:56:59 localhost kernel: hda: drive not ready for command
Jul 1 13:56:59 localhost kernel: ide0: reset timed-out, status=0xd0
Jul 1 13:56:59 localhost kernel: end_request: I/O error, dev hda, sector 13187688
Jul 1 13:56:59 localhost kernel: end_request: I/O error, dev hda, sector 270432
Jul 1 13:56:59 localhost kernel: Buffer I/O error on device hda2, logical block 1674
Jul 1 13:56:59 localhost kernel: lost page write due to I/O error on hda2
Jul 1 13:56:59 localhost kernel: end_request: I/O error, dev hda, sector 270440
Jul 1 13:56:59 localhost kernel: Buffer I/O error on device hda2, logical block 1675
Jul 1 13:56:59 localhost kernel: lost page write due to I/O error on hda2
Jul 1 13:56:59 localhost kernel: end_request: I/O error, dev hda, sector 270448
Jul 1 13:56:59 localhost kernel: Buffer I/O error on device hda2, logical block 1676
Jul 1 13:56:59 localhost kernel: lost page write due to I/O error on hda2
Jul 1 13:56:59 localhost kernel: REISERFS: abort (device hda2): Journal write error in flush_commit_list
Jul 1 13:56:59 localhost kernel: REISERFS: Aborting journal for filesystem on hda2
Jul 1 13:56:59 localhost kernel: ReiserFS: hda2: warning: clm-6006: writing inode 688 on readonly FS
Jul 1 13:56:59 localhost last message repeated 11 times
Jul 1 13:56:59 localhost kernel: ReiserFS: hda2: warning: clm-6006: writing inode 1726 on readonly FS
Jul 1 13:56:59 localhost last message repeated 5 times
Jul 1 13:56:59 localhost kernel: ReiserFS: hda2: warning: clm-6006: writing inode 688 on readonly FS
Jul 1 13:56:59 localhost last message repeated 5 times
Jul 1 13:56:59 localhost kernel: ReiserFS: hda2: warning: clm-6006: writing inode 1726 on readonly FS
Jul 1 13:56:59 localhost last message repeated 5 times
Jul 1 13:56:59 localhost kernel: ReiserFS: hda2: warning: clm-6006: writing inode 688 on readonly FS
Jul 1 13:56:59 localhost last message repeated 11 times
Jul 1 13:56:59 localhost kernel: ReiserFS: hda2: warning: clm-6006: writing inode 1726 on readonly FS
Jul 1 13:56:59 localhost root@gateway:/var/log#
 
Old 07-30-2006, 01:50 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
That is a weird message to get. I think, probably, it has something to do with the laptop's power saving features, such as suspend to disk, which linux can't adequately handle.
 
Old 07-30-2006, 02:39 AM   #3
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
if dma is the error, then perhaps you can just turn it off by 'hdparm -d0 /dev/hda'. but i'm warning you. your hd's problems might only get worse with this.

btw how did you access the syslog messages anyway?
 
Old 08-01-2006, 07:28 AM   #4
srfeo
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Original Poster
Rep: Reputation: 0
It seems as though there was a bug submitted to debian as someone else was having problems with their drives "going to sleep". He was using ext3, which was also freaking out and going into read-only mode.

(won't let me post URLs yet as I am too new to this forum so check out bug 335538 in debian bugs if you are interested)

I'll have to double check the server the next time I have physical access (server in Canada, I'm in the UK) but I think that I have all the BIOS-related power saving turned off.

I'll check hdparm, but I think that the guy who raised the bug also tried this to no effect. It is funny how the server works for weeks and months fine without any problems, but then it gets this problem

I was thinking of changing filesystems the next time I have physical access to this laptop gateway/server, but he was using ext3 and he ended up ro as well!

konsolebox,

I am able to log into the gateway/server still via SSH. Most of the commands I cannot run as I get the following I/O errors:

root@gateway:~# ping
-su: /bin/ping: Input/output error

For some reason, it allows me to su to root and cat syslog where I find these messages.

Any way to avoid these problems? In the bug report he says that his drives "go to sleep" and then they can only be restarted with a hard reset (power cycle in my case).

I guess I had better look at a more stable server/gatway solution.
 
Old 08-01-2006, 09:18 AM   #5
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
don't you think it's also possible that the power supply unit is having problems when things starts to heat-up? not really connected though
 
Old 08-04-2006, 05:22 AM   #6
srfeo
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Could be a heat problem with the powersupply as well as something powering down the drive and then the kernel freaking out when it can't access the drive.

I think that I will retire the laptop and be moving to a solid-state solution (NLSU2) and connecting an external HD for storage (if necessary).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DMA_Timer_Expiry: DMA status == 0X24 shogun4075 Linux - Laptop and Netbook 0 05-19-2006 09:37 AM
hda: dma_timer_expiry: dma status == 0x64 bobbens Linux - Newbie 1 09-15-2004 08:34 PM
hda: dma_timer_expiry: homey Linux - Hardware 0 07-22-2004 07:06 PM
hdparm + linux kernel: hda: drive_cmd: status=0x51 caphclimber Linux - Software 1 09-13-2003 08:48 PM
hda: dma_timer_expiry: dma status == 0x20 anonp Linux - Hardware 2 05-29-2003 06:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration