Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2001 17:10:06 -0700 (PDT)
From:      Matthew Jacob <mjacob@feral.com>
To:        Lyndon Griffin <lgriffin@naviant.com>
Cc:        freebsd-scsi@FreeBSD.ORG
Subject:   Re: IBM 3490e help (poss dd bug?)
Message-ID:  <Pine.LNX.4.21.0105221706330.10376-100000@zeppo.feral.com>
In-Reply-To: <Pine.GSO.4.32.0105221946050.9600-100000@monet.naviant.com>

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



(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: <IBM 03490F0103490F01 0728> 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: <IBM 03490F0103490F01 0728> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0105221706330.10376-100000>