Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 205195

Summary: Problem when writing tapes with an odd block size
Product: Red Hat Enterprise Linux 4 Reporter: Mike Aerts <mmgaerts>
Component: kernelAssignee: Tom Coughlan <coughlan>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2CC: etowns, jbaron
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: RHEL 4 U4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-08 16:42:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
is the output of the dmesg command contains version of system and error message of device driver none

Description Mike Aerts 2006-09-05 12:45:41 UTC
Description of problem:
When writing a block with an odd size I get the error message
sym0:1:0:extraneous data discarded.
sym0:1:0:ODD transfer in DATA OUT phase.
The SCSI card is a LSI8751D HVD HBA 
02:03.0 SCSI storage controller: LSI Logic / Symbios Logic 53c875 (rev 04)
02:03.0 Class 0100: 1000:000f (rev 04)

And the tape deice to which I write is an IBM 3490 C22 drive
Vendor: IBM       Model: 03490C2203490C22  Rev: 45
No problems when write even sized blocks to this device but I get the following
error each time I write an odd sized datablock

sym0:1:0:extraneous data discarded.
sym0:1:0:ODD transfer in DATA OUT phase.
sym0:1:0:COMMAND FAILED (87 0 9).
st0: Error 70000 (sugg. bt 0x0, driver bt 0x0, host bt 0x7).

I found a reference to a similar problem in RHN with Bug ID 113737 but was not
able to access it.

Version-Release number of selected component (if applicable):

Linux version 2.6.9-34.ELsmp (bhcompile.redhat.com) (gcc
version 3.4.5 20051201 (Red Hat 3.4.5-2)) #1 SMP Fri Feb 24 16:54:53 EST 2006
with corresponding version of sym53cxx and st

How reproducible:
Happens every time you write an odd sized block to tape.

Steps to Reproduce:
1. Write an odd sized block to the tape.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Mike Aerts 2006-09-05 12:45:41 UTC
Created attachment 135549 [details]
is the output of the dmesg command contains version of system and error message of device driver

Comment 2 Mike Aerts 2006-09-05 15:02:29 UTC
Problem has been solved by changing the width to 8 bit with the command
echo setwide 1 0 >/proc/scsi/sym53c8xx/0

So its not a bug, sorry.

Comment 4 Tom Coughlan 2007-02-08 16:42:43 UTC
This problem may have been solved by the patch in BZ 167366. See:

http://marc.theaimsgroup.com/?l=linux-scsi&m=113976171919074&w=2

That fix is in RHEL 4 U4. 

I will close this, since there is a workaround in comment 2, regardless.