Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 1997 10:52:38 -0800 (PST)
From:      "Jin Guojun[ITG]" <jin@iss-p1.lbl.gov>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/2965: st0 hang/fail on reading 4mm DAT tape for larger files
Message-ID:  <199703121852.KAA06337@iss-p1.lbl.gov>
Resent-Message-ID: <199703121900.LAA02946@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703121852.KAA06337>