USB: Buffer I/O error on device dm-0, logical block XYZ

From: Andreas
Date: Sun Apr 12 2009 - 17:59:46 EST


Hello,

on heavy disk I/O my external USB device gets re-mounted read-only.
(Ok - scp with 2,5MB/s over WLAN)
After this i get EXT3-Errors.

I've already:
- tweaked kernel parameters (see below)
- changed entries in sys-fs

The only thing that works is if i remove the ehci module for USB2.0.



SysLog-Errors:
==============
Apr 12 17:45:08 elrond kernel: [ 628.205804] usb-storage: device found
at 2
Apr 12 17:45:08 elrond kernel: [ 628.205825] usb-storage: waiting for
device to settle before scanning
Apr 12 17:45:13 elrond kernel: [ 633.206246] usb-storage: device scan
complete
Apr 12 17:45:13 elrond kernel: [ 633.218523] scsi 3:0:0:0:
Direct-Access WD 3200JB External 0412 PQ: 0 ANSI: 0
Apr 12 17:45:13 elrond kernel: [ 633.252002] sd 3:0:0:0: [sdc]
625142448 512-byte hardware sectors: (320 GB/298 GiB)
Apr 12 17:45:13 elrond kernel: [ 633.262009] sd 3:0:0:0: [sdc] Write
Protect is off
Apr 12 17:45:13 elrond kernel: [ 633.262057] sd 3:0:0:0: [sdc] Mode
Sense: 33 00 00 00
Apr 12 17:45:13 elrond kernel: [ 633.262083] sd 3:0:0:0: [sdc] Assuming
drive cache: write through
Apr 12 17:45:13 elrond kernel: [ 633.285968] sd 3:0:0:0: [sdc]
625142448 512-byte hardware sectors: (320 GB/298 GiB)
Apr 12 17:45:13 elrond kernel: [ 633.296113] sd 3:0:0:0: [sdc] Write
Protect is off
Apr 12 17:45:13 elrond kernel: [ 633.296148] sd 3:0:0:0: [sdc] Mode
Sense: 33 00 00 00
Apr 12 17:45:13 elrond kernel: [ 633.296170] sd 3:0:0:0: [sdc] Assuming
drive cache: write through
Apr 12 17:45:13 elrond kernel: [ 633.296313] sdc: sdc1
Apr 12 17:45:13 elrond kernel: [ 633.314525] sd 3:0:0:0: [sdc] Attached
SCSI disk
Apr 12 17:45:13 elrond kernel: [ 633.315315] sd 3:0:0:0: Attached scsi
generic sg1 type 0
Apr 12 17:45:16 elrond kernel: [ 635.773406] ext3_abort called.
Apr 12 17:45:16 elrond kernel: [ 635.773484] EXT3-fs error (device
dm-0): ext3_journal_start_sb: Detected aborted journal
Apr 12 17:45:16 elrond kernel: [ 635.773588] Remounting filesystem
read-only
Apr 12 17:46:27 elrond kernel: [ 706.828326] EXT3-fs error (device
dm-0): ext3_get_inode_loc: unable to read inode block - inode=1015809
, block=4063234
Apr 12 17:46:27 elrond kernel: [ 706.833874] EXT3-fs error (device
dm-0): ext3_get_inode_loc: unable to read inode block - inode=1015809
, block=4063234
Apr 12 17:46:27 elrond kernel: [ 706.840217] EXT3-fs error (device
dm-0): ext3_get_inode_loc: unable to read inode block - inode=1015810
, block=4063234
...
...
...



My Setup:
=========
Kernel:
2.6.29-02062901-generic #02062901 SMP (Ubuntu 2.6.29.1)

lspci:
00:00.0 Host bridge: Transmeta Corporation LongRun Northbridge (rev 03)
00:00.1 RAM memory: Transmeta Corporation SDRAM controller
00:00.2 RAM memory: Transmeta Corporation BIOS scratchpad
00:09.0 VGA compatible controller: Silicon Integrated Systems [SiS]
315PRO PCI/AGP VGA Display Adapter
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 80)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 80)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 80)
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
00:11.1 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:11.5 Multimedia audio controller: VIA Technologies, Inc.
VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II]
(rev 74)


/sys-parameters:
echo 1024 > /sys/block/sdb/device/max_sectors
echo 1 > /sys/block/sdb/device/scsi_diskXYZ/allow_restart


grub-parameters:
all_generic_ide combined_mode=ide enable_atapi=1 noapic

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/