Re: SCSI-Trouble

Richard B. Johnson (root@analogic.com)
Thu, 9 Jan 1997 17:15:46 -0500 (EST)


On Thu, 9 Jan 1997 mab@hamburg.GermanLloyd.de wrote:

> --
>
> Hi *,
>
> i got really big trouble!
>
> My environment:
>
> Linux 2.0.27,
> P133/32MB,
> Adaptec AHA2940,
> Quantum Atlas XP32150W,
> SCSI-Termination correct and verified!
> no (E)IDE-Drives nor (E)IDE-support in the kernel,

Exactly my environment, except P166. Same disk drive, same controller.

>
> # fd says:
>
> Filesystem 1024-blocks Used Available Capacity Mounted on
> /dev/sda2 62211 26769 32229 45% /
> /dev/sda4 1391176 1241029 78257 94% /usr
> /dev/sda1 666480 574864 91616 86% /msdos
>
> The problem:
>
> I untarred a big archive (30MB) and deleted a big directory-tree
> at the same time -> boom!
> It trashed big parts of the filesystem.
>
> syslog:
>
> kernel: scsi0: Target 0 underflow - Wanted at least 98304, got 96256,
residual SG count 24.
> .
> .
> .
> kernel: EXT2-fs error (device 08:04): ext2_free_blocks: Freeing blocks
not in datazone - block = 543975790, count=1

Very interesting block. I don't think they YET make media that large!

>
>
> Another problem:
>
> I do a 'ls' on /msdos -> boom!
> I had to reset the computer.
>
> syslog:

[SNIPPED syslog I've seen zillions of times]
>
> Isn't that funny?? ;-((
>
> Any help appreciated!
>
> Martin
> ---------------------------------------------------------
> Martin Bauer <mab@hamburg.germanlloyd.de>
>
> Buchwaldstr. 53, 22143 Hamburg, Germany
> phone/fax: +49-40-67561346/47
> ---------------------------------------------------------
>

Finally someone else has the same problem as me when using the aic7xxx
driver. I have reported this several times, but have gotten no response.
The MS-DOS mounted file-system doesn't crash if you execute 'echo *'
which doesn't stat the files to get time/date. This also seems to be
a problem with large MS-DOS partitons, i.e., over 500 Mb (maybe a
signed/unsigned problem). Anyways, the driver is told to get data from
beyond the physical end of the media. It can't, the queue fills up, etc.

The drive has some nice recovery code which, if you ^C out of 'ls' (on my
system color-ls) so the problem doesn't continue, it will reset everything
and recover.

However, if the physical drive is the same as your swap partition, all
bets are off.

Hopefully someone will fix this.

Cheers,
Dick Johnson
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Richard B. Johnson
Project Engineer
Analogic Corporation
Voice : (508) 977-3000 ext. 3754
Fax : (508) 532-6097
Modem : (508) 977-6870
Ftp : ftp@boneserver.analogic.com
Email : rjohnson@analogic.com, johnson@analogic.com
Penguin : Linux version 2.1.20 on an i586 machine (66.15 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-