Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* IDE disk problems with RH7.2 on DPW500a
@ 2003-01-21  7:28 Tim Pugh
  2003-01-21  8:51 ` Kelledin
  2003-01-22  0:22 ` Magnus Lindström
  0 siblings, 2 replies; 4+ messages in thread
From: Tim Pugh @ 2003-01-21  7:28 UTC (permalink / raw)
  To: axp-list

*This message was transferred with a trial version of CommuniGate(tm) Pro*

I'm looking for experiences from people using RH7.2 and IDE drives on a 
Digital Personal Workstation 500a.  My own experiences have been mixed.

Under RH7.0 for alpha, I was running the OS on a scsi disk connected to 
QLogic board.  I needed more disk space for user files, so I installed 
an IDE drive which worked, and filesystem checks (e2fsck) worked as 
well.  There were some filesystem corruption at times, but the 
filesystem check always seemed to fix it.

Looking for a better filesystem and OS, I upgrade to RH7.2 alpha.  Here 
starts my problems.

After installing RH7.2 on a new SCSI disk (no problems) from an IDE 
CDROM (no problems), the system reports filesystem problems with my IDE 
disk drive.  After running a filesystem check, it was evident from the 
endless number of inode and other fixes to the drive, the system had 
just corrupted the IDE's filesystem beyond repair.  The filesystem check 
failed me in a major way!

Having a backup of the IDE data on an external SCSI disk, I reformatted 
the IDE disk.  (Well "reformat" isn't what I would call it.  Where is a 
format command for SCSI and IDE disks under linux?)  I used fdisk to 
remake the disk partitions and mkfs to install the filesystem.

I installed an ext3 filesystem on the IDE drive and did an extensive 
badblock check, writing patterns.  After the badblock check, the mkfs 
command aborted, reporting bad blocks at block 0, the super block 
location.  I tried it again, same message.  (I also installed a new IDE 
drive and cable, same problem.  It's not a disk or cable problem, it 
must be something else. )

Ok, maybe the problem is with the badblock check program.  I do it 
again, but only with the read-only badblock check, and the filesystem is 
built successfully.

I mount the drive, and now begin to transfer the backup from an external 
scsi disk to the IDE disk.  Shortly into the file transfer ( attempted 
transfer with gtar and cp), the kernel freezes/panics and I have to 
reset the machine.  Here's the message:

kernel:  Assertion failure in journal_bmap_Rb5b0f71f() at journal.c:602: 
"ret != 0"

After doing a hard reset to the machine and it comes up, restoring scsi 
ext3 filesystems, I run fsck on the IDE disk.  I see fsck trying to fix 
many inodes, file sizes and ...  fsck has again failed to bring sanity 
to the IDE filesystem.  The filesystem is beyond repair.  Start over 
again.  Partition drive, make filesystem, transfer files, boom...kernel 
freeze, same message.  Is there an ext3 filesystem problem?

As a test, I performed the same file transfers to another scsi disk with 
an ext3 filesystem in the system,  no problems.  The problems only occur 
to the IDE drive.  The IDE hardware and cable are fine.  The IDE CDROM 
does not seem to have problems, as there are no messages in the logs, 
and the file transfers from the CDROM are fine.

I believe the IDE controller chips are working because the IDE disk 
worked in RH7.0, but not in RH7.2.  The journal filesystem appears to 
work fine except when it's getting bad I/O transfer results.  I believe 
the problem is in the kernel driver for the IDE controller (maybe due to 
flaky hardware, but I'm not convinced.)  As a test,the IDE disk and 
CDROM were configured as master/slave on a single channel, then 
configured as single devices on seperate IDE channels.  Same problems 
occurred under both configurations.

Conclusion, don't use IDE disk drives with RH7.2 alpha on a DPW500a.
Would an PCI EIDE controller board fix the problem?  Maybe...would it 
use different IDE drivers?  Any experiences before I try it?

Any feedback, experiences, crystal balls would be appreciated.

Thanks in advance.

	- Tim Pugh -




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

* Re: IDE disk problems with RH7.2 on DPW500a
  2003-01-21  7:28 Tim Pugh
@ 2003-01-21  8:51 ` Kelledin
  2003-01-22  0:22 ` Magnus Lindström
  1 sibling, 0 replies; 4+ messages in thread
From: Kelledin @ 2003-01-21  8:51 UTC (permalink / raw)
  To: axp-list

On Tuesday 21 January 2003 01:28 am, Tim Pugh wrote:
> I'm looking for experiences from people using RH7.2 and IDE
> drives on a Digital Personal Workstation 500a.  My own
> experiences have been mixed.

Well, my own experience with the 500a is all secondhand, but I 
can offer a few ideas.

<snip account of laborious troubleshooting>
> I believe the IDE controller chips are working because the IDE
> disk worked in RH7.0, but not in RH7.2.  The journal
> filesystem appears to work fine except when it's getting bad
> I/O transfer results.  I believe the problem is in the kernel
> driver for the IDE controller (maybe due to flaky hardware,
> but I'm not convinced.)  As a test,the IDE disk and CDROM were
> configured as master/slave on a single channel, then
> configured as single devices on seperate IDE channels.  Same
> problems occurred under both configurations.
>
> Conclusion, don't use IDE disk drives with RH7.2 alpha on a
> DPW500a. Would an PCI EIDE controller board fix the problem? 
> Maybe...would it use different IDE drivers?  Any experiences
> before I try it?

Well, I wouldn't go getting extra hardware if the software seems 
to be the problem--even if extra hardware might step around it.  
First thing I'd do is compile a "stock" Linux kernel and see if 
it has the same problem.  If that fixes your case, well, you've 
got a good workaround, and you can submit a RedHat bug report 
(and your workaround) at your leisure.

If that doesn't work, you could try setting the drive to transfer 
in PIO mode.  This will be a lot slower but potentially more 
stable.

Also, I've heard of people installing Promise UDMA133 controllers 
in the PWS 500a; Linux seems to handle it just fine, although 
booting from it is obviously a no-go.  If you decide to go the 
new hardware route, the core IDE layer will be the same, but the 
hardware-specific part of the IDE driver will be different--so 
it may or may not step around the problem.  On the bright side, 
if it all doesn't work out and you have to go back to 7.0, 
you'll at least have a much faster IDE controller.

-- 
Kelledin
"If a server crashes in a server farm and no one pings it, does 
it still cost four figures to fix?"




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

* RE: IDE disk problems with RH7.2 on DPW500a
@ 2003-01-21  9:07 Davies, Huw
  0 siblings, 0 replies; 4+ messages in thread
From: Davies, Huw @ 2003-01-21  9:07 UTC (permalink / raw)
  To: axp-list

> From: Kelledin [mailto:kelledin+AXP@skarpsey.dyndns.org]
 
> If that doesn't work, you could try setting the drive to transfer 
> in PIO mode.  This will be a lot slower but potentially more 
> stable.

My experience was that if I used anything other than PIO I got data
corruption - this was with RedHat 7.1 (from a rusty memory).

> Also, I've heard of people installing Promise UDMA133 controllers 
> in the PWS 500a; Linux seems to handle it just fine, although 
> booting from it is obviously a no-go.  If you decide to go the 
> new hardware route, the core IDE layer will be the same, but the 
> hardware-specific part of the IDE driver will be different--so 
> it may or may not step around the problem.  On the bright side, 
> if it all doesn't work out and you have to go back to 7.0, 
> you'll at least have a much faster IDE controller.

I upgraded to a Promise controller and saw much better performance
and no data corruption. At this stage I also had my IDE DVD drive
running off the Promise as well.

Eventually (for non-Linux related reasons) I purchased an Athlon
based system and moved everything to it (needed the PWS500a for
OpenVMS work).

Huw Davies
BUSINESS CRITICAL SERVICES
Compaq, part of the new HP
231 Normanby Road, South Melbourne, 3205

E-mail: Huw.Davies@hp.com

* Personal opinion only *

 




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

* Re: IDE disk problems with RH7.2 on DPW500a
  2003-01-21  7:28 Tim Pugh
  2003-01-21  8:51 ` Kelledin
@ 2003-01-22  0:22 ` Magnus Lindström
  1 sibling, 0 replies; 4+ messages in thread
From: Magnus Lindström @ 2003-01-22  0:22 UTC (permalink / raw)
  To: axp-list

Hi Tim,

On Tue, 2003-01-21 at 08:28, Tim Pugh wrote:
> I'm looking for experiences from people using RH7.2 and IDE drives on a 
> Digital Personal Workstation 500a.  My own experiences have been mixed.
> 

I had that same ordeal with a PWS 433 about a year ago. Not with RH7.2,
because the problem isn't really with RH, but with the hardware. Was
struggling with it for several months before I was satisfied with the
explanation.

The problem with the Miatas (PWS 433 and 500) is that the 21174 Core
Logic ("Pyxis") chipset has a bug that corrupts DMA transfers that
crosses a page boundary. It really only happens on DMA reads and on the
primary PCI bus, but that is where the IDE controller is located. Thus,
DMA disk writes are vulnerable. Ivan Kokshaysky, Kurt Garloff and Jay
Estabrook (there may have been more people involved) developed a
software workaround for this bug. There were several flavors of the
workaround, but they all basically tried to avoid DMA reads crossing
page boundaries.

With the patch applied the problems were thought to be history. However,
occasionally errors were still observed. On my Miata I had one or two
bits in error about every 8GB written or so. Previously, the errors had
a pattern that was related to the DMA transfer, but now there was no
longer a pattern. Nevertheless, falling back to PIO always resulted in
the problem going away. Thus, I was convinced that the errors were
related to DMA.

Some further investigation showed, however, that the spurious errors are
most likely electrical, noise related errors. The higher data rate when
using DMA compared to PIO, makes the transfers over the IDE cable more
susceptible to crosstalk and noise. Replacing the old 40-conductor cable
with a 80-conductor cable, the spurious bit error were gone!

Now, even though a 80-conductor cable may fix the problem (in
conjunction with the DMA bug workaround of course), one should be aware
that old DMA (non-Ultra) transfer modes don't employ checksums to verify
that data was transfered OK. Hence, if a transfer is corrupted during a
disk write, it will not be discovered until the data is read back. Then,
it is probably to late to fix the error. Therefore, with all the trouble
associated with getting the Miata to behave, I wouldn't recommend using
the on-board IDE controller in DMA mode. Even if it appears to work,
there are no guarantees that you won't be bit at some point.

An easier way to get your Miata running with IDE drives is to install an
add-on IDE controller in one of the free 32-bit PCI-slots. Don't use a
64-bit slot. IIRC the 32-bit slots are sitting on a secondary PCI bus
located behind a bridge which effectively removes the DMA page cross
problem. The 64-bit slots are on the primary bus and, thus, exposed to
the bug. Further, if you use a IDE adapter that supports UltraDMA your
data transfers are protected with checksums. Unfortunately, only the
data is protected, not the commands, but still, I think you should stand
a better chance than with no checksums at all. There have been reports
of failures with high rate modes, but lower rates should work fine. As
mentioned previously in this thread, Promise controllers work fine as
long as you don't need to boot the machine from it. SRM doesn't
recognise Promise controllers.

As a final note, it should be mentioned that not all Miatas have the DMA
read bug. There are two flavours of the Miata: the old MX5 with the
CMD646 IDE controller and a newer MiataGL with a Cypress 82C693 IDE
controller. The MiataGL doesn't have the DMA bug, it was fixed with a
factory installed hardware patch. As the IDE controller is also
different on the MiataGL, what has been said about spurious bit errors
above may not apply to the MiataGL.

/magnus



> Under RH7.0 for alpha, I was running the OS on a scsi disk connected to 
> QLogic board.  I needed more disk space for user files, so I installed 
> an IDE drive which worked, and filesystem checks (e2fsck) worked as 
> well.  There were some filesystem corruption at times, but the 
> filesystem check always seemed to fix it.
> 
> Looking for a better filesystem and OS, I upgrade to RH7.2 alpha.  Here 
> starts my problems.
> 
> After installing RH7.2 on a new SCSI disk (no problems) from an IDE 
> CDROM (no problems), the system reports filesystem problems with my IDE 
> disk drive.  After running a filesystem check, it was evident from the 
> endless number of inode and other fixes to the drive, the system had 
> just corrupted the IDE's filesystem beyond repair.  The filesystem check 
> failed me in a major way!
> 
> Having a backup of the IDE data on an external SCSI disk, I reformatted 
> the IDE disk.  (Well "reformat" isn't what I would call it.  Where is a 
> format command for SCSI and IDE disks under linux?)  I used fdisk to 
> remake the disk partitions and mkfs to install the filesystem.
> 
> I installed an ext3 filesystem on the IDE drive and did an extensive 
> badblock check, writing patterns.  After the badblock check, the mkfs 
> command aborted, reporting bad blocks at block 0, the super block 
> location.  I tried it again, same message.  (I also installed a new IDE 
> drive and cable, same problem.  It's not a disk or cable problem, it 
> must be something else. )
> 
> Ok, maybe the problem is with the badblock check program.  I do it 
> again, but only with the read-only badblock check, and the filesystem is 
> built successfully.
> 
> I mount the drive, and now begin to transfer the backup from an external 
> scsi disk to the IDE disk.  Shortly into the file transfer ( attempted 
> transfer with gtar and cp), the kernel freezes/panics and I have to 
> reset the machine.  Here's the message:
> 
> kernel:  Assertion failure in journal_bmap_Rb5b0f71f() at journal.c:602: 
> "ret != 0"
> 
> After doing a hard reset to the machine and it comes up, restoring scsi 
> ext3 filesystems, I run fsck on the IDE disk.  I see fsck trying to fix 
> many inodes, file sizes and ...  fsck has again failed to bring sanity 
> to the IDE filesystem.  The filesystem is beyond repair.  Start over 
> again.  Partition drive, make filesystem, transfer files, boom...kernel 
> freeze, same message.  Is there an ext3 filesystem problem?
> 
> As a test, I performed the same file transfers to another scsi disk with 
> an ext3 filesystem in the system,  no problems.  The problems only occur 
> to the IDE drive.  The IDE hardware and cable are fine.  The IDE CDROM 
> does not seem to have problems, as there are no messages in the logs, 
> and the file transfers from the CDROM are fine.
> 
> I believe the IDE controller chips are working because the IDE disk 
> worked in RH7.0, but not in RH7.2.  The journal filesystem appears to 
> work fine except when it's getting bad I/O transfer results.  I believe 
> the problem is in the kernel driver for the IDE controller (maybe due to 
> flaky hardware, but I'm not convinced.)  As a test,the IDE disk and 
> CDROM were configured as master/slave on a single channel, then 
> configured as single devices on seperate IDE channels.  Same problems 
> occurred under both configurations.
> 
> Conclusion, don't use IDE disk drives with RH7.2 alpha on a DPW500a.
> Would an PCI EIDE controller board fix the problem?  Maybe...would it 
> use different IDE drivers?  Any experiences before I try it?
> 
> Any feedback, experiences, crystal balls would be appreciated.
> 
> Thanks in advance.
> 
> 	- Tim Pugh -
> 
> 
> 
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list





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

end of thread, other threads:[~2003-01-22  0:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-21  9:07 IDE disk problems with RH7.2 on DPW500a Davies, Huw
  -- strict thread matches above, loose matches on Subject: below --
2003-01-21  7:28 Tim Pugh
2003-01-21  8:51 ` Kelledin
2003-01-22  0:22 ` Magnus Lindström

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox