Skip to contentSkip to conversation

2.4.17 filesystem corruption

DISCUSSION Luis A. Montes 5 participants 5 messages Feb 3, 2002 – Feb 9, 2002

lore
Share & tools
lore
#0 lore raw

Hi there,

I have been experiencing filesystem corruption very frequently with 2.4.17. I've probably reinstalled my system more than 10 times in as many days. So far it seems to be related to the kernel version and perhaps to the UDMA settings. I haven't been able to crash the system running 2.4.5 or 2.2.19, but it has crashed with 2.4.17 every time, regardless of cpu optimization (Athlon, K6 or i386), AGP (built-in, as a module or not built), filesystem (ext2 or xfs). Last kernel I tried was a 2.4.17 with a ext2 fs and a patch I found by Lionel Bouton in this list to handle my SiS 735 chipset. It did seem more stable for a while, until I decided to try and enable ultra dma 66 on my primary drive. The two partitions that I had mounted got completely corrupted (on boot the kernel tried to mount it as a UMSDOS fs) and e2fsck wasn't able to fix it. It did seem to work with udma 33, I compiled the kernel without a problem as a test of disk IO, but I can't really tell for sure that there wasn't a subtle disk corruption just waiting to crop up.

My system is as follows:

ECS K7S5A Motherboard with the SiS 735 chipset, 128MB of PC133 SDRAM and Athlon XP 1700+ processor at 1.4 something MHz. Memory is good, tested with memtest86 overnight several full passes.

hda: Western Digital Caviar WDC AC313000R (it is *not* in the udma black list, should it be?)

hdb: Western Digital Caviar WDC AC23200L (this one is in the black list, but is not being mounted, so it shouldn't matter, right?)

Software: Straight Slackware 8 install, with XFree86 from cvs. But lately I havent even tried glx, dri et al at all ...

Questions:

- There is a patch by the IDE maintainer (Andre Hedrick?), but I don't know if that is supposed to make the system behave better or is a new major architectural change (if it is the latest I probably don't want to compound my problem, do I?) although at this point I'm willing to try almost anything, even windows ;-)

- Has anybody gotten a system similar to mine to work on these kernels. This same kernel (2.4.17-xfs with the rml patch) was rock solid in my old motherboard, a VIA Apollo K6-III motherboard with the same HD's.

- Was there some change between 2.4.5 and 2.4.17 that could have introduced problems in the IDE layer? I really tried to test 2.4.5 to the limits compiling two versions of the kernel and XFree86 simultaneously, and the filesystem survived. But unfortunately a negative result is not proof of stability

#1 lore raw
Quoted 7 lines · Luis A. Montes

I have been experiencing filesystem corruption very frequently with 2.4.17. I've probably reinstalled my system more than 10 times in as many days. So far it seems to be related to the kernel version and perhaps to the UDMA settings. I haven't been able to crash the system running 2.4.5 or 2.2.19, but it has crashed with 2.4.17 every time, regardless of cpu optimization (Athlon, K6 or i386), AGP (built-in, as a module or not built), filesystem (ext2 or xfs).

The ext2 code diff in 2.4.18-pre7 solved it for me. I don't use xfs.

Pierre

Signature · 3 lines
------------------------------------------------
 Pierre Rousselet <[email protected]>
------------------------------------------------
#2 lore raw
In reply to Luis A. Montes
Quoted 3 lines

this list to handle my SiS 735 chipset. It did seem more stable for a while, until I decided to try and enable ultra dma 66 on my primary drive. The two partitions that I had mounted got completely corrupted

How did you switch on UDMA66 ?

Quoted 2 lines

hda: Western Digital Caviar WDC AC313000R (it is *not* in the udma black list, should it be?)

There is certainly no evidence it should be

Quoted 2 lines

hdb: Western Digital Caviar WDC AC23200L (this one is in the black list, but is not being mounted, so it shouldn't matter, right?)

Unknown. But you can test that

Quoted 2 lines

- Was there some change between 2.4.5 and 2.4.17 that could have introduced problems in the IDE layer? I really tried to test 2.4.5

For the SiS possibly.

#3 lore raw
In reply to Luis A. Montes
Quoted 17 lines · Luis A. Montes

I have been experiencing filesystem corruption very frequently with 2.4.17. I've probably reinstalled my system more than 10 times in as many days. So far it seems to be related to the kernel version and perhaps to the UDMA settings. I haven't been able to crash the system running 2.4.5 or 2.2.19, but it has crashed with 2.4.17 every time, regardless of cpu optimization (Athlon, K6 or i386), AGP (built-in, as a module or not built), filesystem (ext2 or xfs). Last kernel I tried was a 2.4.17 with a ext2 fs and a patch I found by Lionel Bouton in this list to handle my SiS 735 chipset. It did seem more stable for a while, until I decided to try and enable ultra dma 66 on my primary drive. The two partitions that I had mounted got completely corrupted (on boot the kernel tried to mount it as a UMSDOS fs) and e2fsck wasn't able to fix it. It did seem to work with udma 33, I compiled the kernel without a problem as a test of disk IO, but I can't really tell for sure that there wasn't a subtle disk corruption just waiting to crop up.

Quoted 8 lines

My system is as follows:

ECS K7S5A Motherboard with the SiS 735 chipset, 128MB of PC133 SDRAM and Athlon XP 1700+ processor at 1.4 something MHz. Memory is good, tested with memtest86 overnight several full passes.

hda: Western Digital Caviar WDC AC313000R (it is *not* in the udma black list, should it be?)

Maybe. Your report might lead to this, can you test with some hdd known to work with UDMA66+ in another box?

Quoted 2 lines

hdb: Western Digital Caviar WDC AC23200L (this one is in the black list, but is not being mounted, so it shouldn't matter, right?)

Trying to disconnect it and provoke fs corruption on a test partition on the first drive sounds like good idea...

Quoted 10 lines

Software: Straight Slackware 8 install, with XFree86 from cvs. But lately I havent even tried glx, dri et al at all ...

Questions:

- There is a patch by the IDE maintainer (Andre Hedrick?), but I don't know if that is supposed to make the system behave better or is a new major architectural change (if it is the latest I probably don't want to compound my problem, do I?) although at this point I'm willing to try almost anything, even windows ;-)

Consider CC'ing Andre and Jens Axboe:
[email protected]
Jens Axboe <[email protected]>
--
vda

#4 lore raw
In reply to Luis A. Montes
Quoted 5 lines · On 2002.02.03 05:44 Alan Cox wrote:
Quoted 3 lines

this list to handle my SiS 735 chipset. It did seem more stable for a while, until I decided to try and enable ultra dma 66 on my primary drive. The two partitions that I had mounted got completely corrupted

How did you switch on UDMA66 ?

Well, when you mentioned this I remember a couple of things that I probably shouldn't have done, that's why it took me so long to answer, I went back and
systematically tested different kernels on a test partition and taking note of
the hdparm's I used. I've still got a couple of kernels I want to test, so I
will post more complete results tomorrow. Still the answer seems to be that 2.4.5 is stable while 2.4.17 is not.
But to answer your question, I downloaded a utility from WD that switches the
drive from udma 33 to udma 66, and I then boot linux and type hdparm -c 1 -d 1 -m 8
Last time before I wrote I also used -X66, but I'm not sure that's a good idea ...

Quoted 10 lines
Quoted 3 lines

hda: Western Digital Caviar WDC AC313000R (it is *not* in the udma black list, should it be?)

There is certainly no evidence it should be

Quoted 2 lines

hdb: Western Digital Caviar WDC AC23200L (this one is in the black list, but is not being mounted, so it shouldn't matter, right?)

Quoted 7 lines

Unknown. But you can test that

Quoted 2 lines

- Was there some change between 2.4.5 and 2.4.17 that could have introduced problems in the IDE layer? I really tried to test 2.4.5

For the SiS possibly.

There is something in vanilla 2.4.17. Using the exact same .config and filesystem as the one for 2.4.5 it crashes while 2.4.5 remains stable. OTOH, I've finally managed to have an stable system for a week (I'm actually using it right now) with 2.4.17. The difference is that it's got the sis5513.c patch from Lionel Bouton that I found in the lkml. I'm not using dma yet, though! The driver, as the previous driver for this chipset, disables everything by default (but even that didn't help for plain 2.4.17) That's what I'm going to test next, using the above mentioned hdparm line.