From owner-freebsd-bugs Wed Mar 12 11:00:06 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA02953 for bugs-outgoing; Wed, 12 Mar 1997 11:00:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA02946; Wed, 12 Mar 1997 11:00:04 -0800 (PST) Resent-Date: Wed, 12 Mar 1997 11:00:04 -0800 (PST) Resent-Message-Id: <199703121900.LAA02946@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, jin@iss-p1.lbl.gov Received: from iss-p1.lbl.gov (iss-p1.lbl.gov [131.243.2.47]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA02276 for ; Wed, 12 Mar 1997 10:52:39 -0800 (PST) Received: (from jin@localhost) by iss-p1.lbl.gov (8.8.5/8.8.5) id KAA06337; Wed, 12 Mar 1997 10:52:38 -0800 (PST) Message-Id: <199703121852.KAA06337@iss-p1.lbl.gov> Date: Wed, 12 Mar 1997 10:52:38 -0800 (PST) From: "Jin Guojun[ITG]" Reply-To: jin@iss-p1.lbl.gov To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/2965: st0 hang/fail on reading 4mm DAT tape for larger files Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2965 >Category: kern >Synopsis: st0 hang/fail on reading 4mm DAT tape for larger files >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 12 11:00:02 PST 1997 >Last-Modified: >Originator: Jin Guojun[ITG] >Organization: >Release: FreeBSD 2.2-970310-GAMMA i386 >Environment: 2.2-SNAP(s) with HP C1536A SCSI 4mm DAT tape drive: (ncr0:4:0): "HP HP35480A T503" type 1 removable SCSI 2 st0(ncr0:4:0): Sequential-Access st0(ncr0:4:0): 5.0 MB/s (200 ns, offset 8) >Description: tar -c some.files # writing OK tar -t or tar -xv will hang when looking/reading a file larger than about 6090 Bytes; tar: read error on /dev/nrst0 : Input/output error tar process is hanging at here and tape drive stopped. system errors: ncr0:4: ERROR (0:48) (1-21-1e) (88/13) @ (c2c:19000200). script cmd = 89030000 reg: da 10 80 13 47 88 04 1f 01 01 84 21 80 01 99 00. ncr0: have to clear fifos. ncr0: restart (fatal error). st0(ncr0:4:0): COMMAND FAILED (9 ff) @f2136c00. ncr0: timeout ccb=f2136c00 (skip) The tar process cannot be killed. The only solution is power cycle the tape drive. The same hardware worked with 2.1.{6-7} without any problem. So, it looks like software problem in the kernel somewhere. >How-To-Repeat: Attach a HP C1536A SCSI DAT tape drive (dmesg says HP35480A) to a 2.2 system. The file can be either text or binary. truncat is not a standard UNIX command. You may use tail command to do so. 146 /home/users/jin/src/unix/FreeBSD: truncat 0 6100 < y > z 147 /home/users/jin/src/unix/FreeBSD: ll total 54 -rw-r--r-- 1 jin advdev 8192 Mar 12 10:33 x -rw-r--r-- 1 jin advdev 6550 Mar 12 10:35 y -rw-r--r-- 1 jin advdev 6100 Mar 12 10:39 z 148 /home/users/jin/src/unix/FreeBSD: mt rew 149 /home/users/jin/src/unix/FreeBSD: tar -cv z z 150 /home/users/jin/src/unix/FreeBSD: mt rew 151 /home/users/jin/src/unix/FreeBSD: tar -t tar: read error on /dev/nrst0 : Input/output error ####### power cycle tape drive HERE ######### 152 /home/users/jin/src/unix/FreeBSD: truncat -l 0 6090 < x > z 153 /home/users/jin/src/unix/FreeBSD: ll total 54 -rw-r--r-- 1 jin advdev 8192 Mar 12 10:33 x -rw-r--r-- 1 jin advdev 6550 Mar 12 10:35 y -rw-r--r-- 1 jin advdev 6090 Mar 12 10:41 z 154 /home/users/jin/src/unix/FreeBSD: mt rew 155 /home/users/jin/src/unix/FreeBSD: tar -cv z z mt rew tar -t 156 /home/users/jin/src/unix/FreeBSD: z >Fix: >Audit-Trail: >Unformatted: