From owner-freebsd-scsi Tue May 22 17:16:20 2001 Delivered-To: freebsd-scsi@freebsd.org Received: from beppo.feral.com (beppo.feral.com [192.67.166.79]) by hub.freebsd.org (Postfix) with ESMTP id BFD5A37B422 for ; Tue, 22 May 2001 17:16:16 -0700 (PDT) (envelope-from mjacob@feral.com) Received: from zeppo.feral.com (IDENT:mjacob@zeppo.feral.com [192.67.166.71]) by beppo.feral.com (8.11.3/8.11.3) with ESMTP id f4N0A6P00787; Tue, 22 May 2001 17:10:06 -0700 (PDT) (envelope-from mjacob@feral.com) Date: Tue, 22 May 2001 17:10:06 -0700 (PDT) From: Matthew Jacob Reply-To: mjacob@feral.com To: Lyndon Griffin Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: IBM 3490e help (poss dd bug?) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org (Naviant? Hmmm, maybe a fellow ex-MRJ co-employee....???) > (sa0:sym0:0:5:0): extraneous data discarded. is a bit of a clue... Make sure that you've set the tape to variable record mode- do an 'mt status' to see what it's set to, and set recordsize to '0'. When you do tape stuff with FreeBSD, it's often best to get a bit more data than that which you have reported here. btw- do you *really* want 32619 byte output records? > OK, I admit that this may be user error, and if not it's probably not an > item for this list, but here goes: > > Synopsis: > 4.2-RELEASE on i386 > Symbios 53c875 HBA > IBM 3490E/F01 deskside changer > read from tape is fine, write to tape fails with I/O error from sa0. This > happens regardless of the tape density, tape "newness", etc. Have > verified that the drive does work on SPARCstation 10 running Solaris. > Here's relevant bits from /var/log/messages: > > sym0: <875> port 0xdc00-0xdcff mem > 0xfaffe000-0xfaffefff,0xfafffc00-0xfafffcff irq 9 at device 11.0 on pci2 > sym0: Symbios NVRAM, ID 7, Fast-20, HVD, parity checking > sym0: open drain IRQ line driver, using on-chip SRAM > sym0: using LOAD/STORE-based firmware. > sym1: <875> port 0xd800-0xd8ff mem > 0xfaffd000-0xfaffdfff,0xfafff800-0xfafff8ff irq 10 at device 11.1 on pci2 > sym1: Symbios NVRAM, ID 7, Fast-20, HVD, parity checking > sym1: open drain IRQ line driver, using on-chip SRAM > sym1: using LOAD/STORE-based firmware. > ....... > Waiting 15 seconds for SCSI devices to settle > (noperiph:sym0:0:-1:-1): SCSI BUS reset delivered. > (noperiph:sym1:0:-1:-1): SCSI BUS reset delivered. > sa0 at sym0 bus 0 target 5 lun 0 > sa0: Removable Sequential Access SCSI-2 device > sa0: 20.000MB/s transfers (10.000MHz, offset 15, 16bit) > Mounting root from ufs:/dev/ad0s1a > ch0 at sym0 bus 0 target 5 lun 1 > ch0: Removable Changer SCSI-2 device > ch0: 20.000MB/s transfers (10.000MHz, offset 15, 16bit) > ch0: 10 slots, 1 drive, 1 picker, 0 portals > (sa0:sym0:0:5:0): extraneous data discarded. > (sa0:sym0:0:5:0): COMMAND FAILED (87 0 1). > > it would appear that this is a problem related to dd - > > $ dd if=/kernel of=/dev/sa0 > > works fine, but > > $ dd if=datafile of=/dev/sa0 ibs=394 cbs=393 obs=32619 conv=ibm > dd: /dev/sa0: Input/output error > 83+0 records in > 0+0 records out > 0 bytes transferred in 0.004842 secs (0 bytes/sec) > > furthermore, drop the obs from the previous command, and things roll along > fine. > > Any pointers? > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message