Bug 503864 - The USB storage cannot use >2TB.
Summary: The USB storage cannot use >2TB.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel
Version: 5.3
Hardware: i386
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Pete Zaitcev
QA Contact: Zhouping Liu
URL:
Whiteboard:
: 568797 (view as bug list)
Depends On:
Blocks: 658824
TreeView+ depends on / blocked
 
Reported: 2009-06-03 04:52 UTC by hayasaka
Modified: 2018-12-02 16:20 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 658824 (view as bug list)
Environment:
Last Closed: 2011-01-13 20:48:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Test patch 1 (555 bytes, patch)
2010-01-08 11:37 UTC, Pete Zaitcev
no flags Details | Diff
Test patch 2 - includes FireWire (1.78 KB, patch)
2010-03-09 07:06 UTC, Pete Zaitcev
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:0017 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux 5.6 kernel security and bug fix update 2011-01-13 10:37:42 UTC

Description hayasaka 2009-06-03 04:52:20 UTC
Description of problem:

The USB storage cannot use <2TB.

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


How reproducible:


Steps to Reproduce:
1. connect USB storage of over 2TB.
2.
3.
  
Actual results:

All capacity can be used.

Expected results:

Capacity is cut off with 2TB. 

dmesg
==================================================================
Initializing USB Mass Storage driver...
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: waiting for device to settle before scanning
  Vendor: ST315003  Model: 41AS              Rev: SD1A
  Type:   Direct-Access                      ANSI SCSI revision: 05
sde : very big device. try to use READ CAPACITY(16).
sde : READ CAPACITY(16) failed.
sde : status=0, message=00, host=5, driver=00
sde : use 0xffffffff as device size
==================================================================


Additional info:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.24.y.git;a=commitdiff;h=17f060224fb9f435c6f9306b7b61419d038def13

Comment 5 Pete Zaitcev 2010-01-08 11:37:57 UTC
Created attachment 382443 [details]
Test patch 1

Exactly the same as referenced in the report.

Comment 6 Pete Zaitcev 2010-01-08 12:39:03 UTC
I have built a test kernel. Requestor, please download and test kernel
2.6.18-183.el5.bz503864.1 from this URL:
 http://people.redhat.com/zaitcev/ftp/503864/

I have reviewed the related code and although it's a far cry from
upstream, it appears to have everything necessary otherwise. But
testing is required nonetheless.

Comment 7 Pete Zaitcev 2010-03-09 07:05:23 UTC
*** Bug 568797 has been marked as a duplicate of this bug. ***

Comment 8 Pete Zaitcev 2010-03-09 07:06:32 UTC
Created attachment 398696 [details]
Test patch 2 - includes FireWire

Comment 9 Daniel Senie 2010-03-09 15:16:55 UTC
I have lost my test setup for the time being, as the drive got deployed in eSATA mode on another server (will use it via NFS mount for now). Ran out of time for something needed for a client.

I'll see about finding a way to test with another drive, might take a few days (might have to retrieve one from a data center). The 4TB did run into trouble when we took it, with file system on it, to the data center, and tried it on eSATA. Got indications of writing past the end of the physical device, like the ext3 thought the drive was bigger than it was. I don't know if that's because the person who created the partition screwed up, or if it was in fact a problem related to this bug.

I suggest holding this open until a bit more testing can be done, either by me or by someone else.

Sorry for the delay.

Comment 10 Pete Zaitcev 2010-03-09 22:03:22 UTC
The test kernel 2.6.18-183.el5.bz503864.2 is at the same location.
This time, FireWire fix is included. Please verify that it functions.

The write over the end of device indications are not acceptable.
I'll need to know if that happens and receive a relevant dmesg.

Comment 11 Daniel Senie 2010-04-08 17:13:44 UTC
Just got a 3TB drive in hand, so I can get back to testing this for you. Do you want to re-spin the test kernel before I do my testing, or use the one you already have up? (for that matter, is it still up?). I can do the testing over the next several days.

Comment 12 Pete Zaitcev 2010-04-09 00:25:44 UTC
Please use the existing images from comment #10, location as in comment #6.
I had to move things a bit, but it's back now.

Comment 13 Daniel Senie 2010-04-10 03:22:57 UTC
Drive is running on USB. Deleted partition table, labeled drive, and built an ext3 using the entire volume. Now have a script running that's creating 1GB files in a directory, filling the disk to see if there are any errors about running past the end of the physical media (any other suggestions for testing this?).

It is possible the write-past-end previously was due to a partition configuration error by one of my staff.

Once the test is complete on USB, we'll do a cursory check on firewire for good measure. I expect filling the disk via USB is going to take most of the weekend though. I won't clear the needinfo until I have the test results.

Comment 14 Pete Zaitcev 2010-04-12 19:21:36 UTC
Thanks a lot, this is good enough. I'm dropping needinfo.

Comment 15 Pete Zaitcev 2010-04-12 19:35:00 UTC
The patch is posted for internal review.

Comment 16 Daniel Senie 2010-04-13 13:30:30 UTC
Just a follow-up: Scripts completed filling the 3TB drive with data (file system set up with zero reserve) with no errors whatsoever. We will re-plug into firewire today to verify, but it looks like the patched kernel did the job well. We'll look forward to the fix hitting an upcoming RHEL 5 kernel update. Thanks for getting this resolved.

Comment 21 RHEL Program Management 2010-05-20 12:41:12 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 23 Jarod Wilson 2010-06-14 18:22:26 UTC
in kernel-2.6.18-203.el5
You can download this test kernel from http://people.redhat.com/jwilson/el5

Detailed testing feedback is always welcomed.

Comment 25 Daniel Senie 2010-07-28 19:17:29 UTC
Just getting back to looking at this. Do you still need this tested? I think I still have a setup where I can do so. Let me know which of your test kernels contain the fix.

Comment 34 errata-xmlrpc 2011-01-13 20:48:41 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0017.html


Note You need to log in before you can comment on or make changes to this bug.