Messages in this thread | | | Date | Tue, 16 Sep 1997 02:38:48 -0400 (EDT) | From | Sameer Anja <> | Subject | Re: SCSI Tape driver |
| |
yes...I have seen a similar thing happening here too with my tape. -Sameer
On Mon, 15 Sep 1997, Richard B. Johnson wrote:
> Date: Mon, 15 Sep 1997 10:33:34 -0400 (EDT) > From: Richard B. Johnson <root@chaos.analogic.com> > To: Linux kernel <linux-kernel@vger.rutgers.edu> > Subject: SCSI Tape driver > > > To the maintainer of the SCSI Tape Driver, greetings! > I have noticed a problem starting with kernels this early Spring. If > there are any SCSI Tape errors, the errors seem to persist until the > machine is rebooted. > > For instance: > > # cp /dev/zero /dev/st0 > cp: /dev/st0: I/O error > cp: /dev/st0: I/O error ! This fails after a few minutes. > # mt status > SCSI 2 tape drive: ! This doesn't show any errors > File number=0, block number=0, partition=0. > Tape block size 512 bytes. Density code 0x45 (unknown). > Soft error count since last status=0 > General status bits on (41010000): > BOT ONLINE IM_REP_EN > # ! Cleaned drive, inserted brand-new tape. > # cp /dev/zero /dev/st0 ! Instantly fails without even attempting to > cp: /dev/st0: I/O error ! access the physical device. > cp: /dev/st0: I/O error > # cp /dev/zero /dev/st0 > cp: /dev/st0: I/O error > cp: /dev/st0: I/O error > # mt retension ! mt commands go to /dev/st3, they work. > # mt retension > # cp /dev/zero /dev/st0 ! /dev/st0 commands instantly error out > cp: /dev/st0: I/O error ! without even trying to access the physical > cp: /dev/st0: I/O error ! device. > # exit > > It appears as though the driver "remembers" that there was a previous > command-completion failure and refuses to attempt the command again. > Actually, it's not the driver that remembers, it's the controller. The > driver seems to get sense data before each command rather than after, > and refuses to execute the new command because of bad sense data. This bad > sense data was from a previous command. > > Sep 15 10:10:32 chaos kernel: st0: Error with sense data: > Current error st09:00: sns = f0 3 > Sep 15 10:10:32 chaos kernel: ASC=31 ASCQ= 0 > Sep 15 10:10:32 chaos kernel: Raw sense data: > 0xf0 0x00 0x03 0x00 0x00 0x02 0xec 0x0a 0x00 0x00 > 0x00 0x00 0x31 0x00 0x00 0x00 > Sep 15 10:10:32 chaos kernel: st0: Error with sense data: > Current error st09:00: sns = f0 3 > Sep 15 10:10:32 chaos kernel: ASC=31 ASCQ= 0 > Sep 15 10:10:32 chaos kernel: Raw sense data: > 0xf0 0x00 0x03 0x00 0x00 0x00 0x01 0x0a 0x00 0x00 > 0x00 0x00 0x31 0x00 0x00 0x00 > Sep 15 10:10:32 chaos kernel: st0: Error on write filemark. > > > CONFIG_MODULES=y > CONFIG_NET=y > CONFIG_PCI=y > CONFIG_SYSVIPC=y > CONFIG_SYSCTL=y > CONFIG_BINFMT_AOUT=y > CONFIG_BINFMT_ELF=y > CONFIG_M586=y > CONFIG_VIDEO_SELECT=y > CONFIG_PNP=y > CONFIG_BLK_DEV_FD=y > CONFIG_NET_ALIAS=y > CONFIG_INET=y > CONFIG_PATH_MTU_DISCOVERY=y > CONFIG_IP_NOSR=y > CONFIG_SKB_LARGE=y > CONFIG_SCSI=y > CONFIG_BLK_DEV_SD=y > CONFIG_CHR_DEV_ST=y > CONFIG_BLK_DEV_SR=y > CONFIG_SCSI_BUSLOGIC=y > CONFIG_SCSI_OMIT_FLASHPOINT=y > CONFIG_NETDEVICES=y > CONFIG_DUMMY=y > CONFIG_NET_ETHERNET=y > CONFIG_NET_ISA=y > CONFIG_NE2000=y > CONFIG_PPP=y > CONFIG_EXT2_FS=y > CONFIG_FAT_FS=y > CONFIG_MSDOS_FS=y > CONFIG_VFAT_FS=y > CONFIG_PROC_FS=y > CONFIG_NFS_FS=y > CONFIG_NFSD=y > CONFIG_SUNRPC=y > CONFIG_LOCKD=y > CONFIG_ISO9660_FS=y > CONFIG_VT=y > CONFIG_VT_CONSOLE=y > CONFIG_SERIAL=y > > > Cheers, > DJ > Richard B. Johnson > Analogic Corporation > Penguin : Linux version 2.1.54 on an i586 machine (66.15 BogoMips). > Warning : It's hard to stay on the trailing edge of technology. > Linux : Engineering tool > Windows : Child's computer interface written in BASIC. > Win-NT : Child's computer interface rewritten in C. > > >
| |