Bug#625738: 2TB SCSI disk size not recognized correctly

2011-05-16 Thread Ben Hutchings
On Thu, 2011-05-05 at 11:03 -0400, Greg Wooledge wrote:
 Package: linux-image-2.6.32-5-686
 Version: 2.6.32-31
 
 I upgraded a machine from Lenny to Squeeze, and it failed to mount one
 of the disks.  Here is a large swath of dmesg from the failing kernel:
[...]
 [8.343674] sd 4:0:0:0: [sdb] 4294967296 512-byte logical blocks: (2.19 
 TB/2.00 TiB)

So we initially see exactly 2 TiB (2^32 blocks)...

 [8.344551] usbcore: registered new interface driver hiddev
 [8.344741] sd 4:0:0:0: [sdb] Write Protect is off
 [8.344745] sd 4:0:0:0: [sdb] Mode Sense: bf 00 00 08
 [8.345180] sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, 
 doesn't support DPO or FUA
 [8.345421]  sda1 sda2
 [8.345672] sd 2:0:0:0: [sda] Attached SCSI disk
 [8.345973] sd 4:0:0:0: [sdb] 13651132416 512-byte logical blocks: (6.98 
 TB/6.35 TiB)
 [8.347305] sdb: detected capacity change from 219902322 to 
 6989379796992

but then we find it's really 6.35 TiB (is that the correct value?)...

 [8.347310]  sdb:
 [8.348685] Errataon LSI53C1030 
 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
 [8.348837] Errataon LSI53C1030 
 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
 [8.348986] Errataon LSI53C1030 
 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
 [8.349135] Errataon LSI53C1030 
 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
 [8.349286] Errataon LSI53C1030 
 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
 [8.349435] Errataon LSI53C1030 
 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
 [8.349442] sd 4:0:0:0: [sdb] Unhandled error code
 [8.349444] sd 4:0:0:0: [sdb] Result: hostbyte=DID_SOFT_ERROR 
 driverbyte=DRIVER_OK
 [8.349449] sd 4:0:0:0: [sdb] CDB: Read(16): 88 00 00 00 00 03 2d ab bf f8 
 00 00 00 08 00 00
 [8.349461] end_request: I/O error, dev sdb, sector 13651132408
 [8.349520] Buffer I/O error on device sdb, logical block 1706391551

but we can't read the last logical block (4 KiB).

 [8.349732] Errataon LSI53C1030 
 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
 [8.349886] Errataon LSI53C1030 
 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
 [8.350046] Errataon LSI53C1030 
 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
 [8.350196] Errataon LSI53C1030 
 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
 [8.350347] Errataon LSI53C1030 
 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
 [8.350497] Errataon LSI53C1030 
 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
 [8.350503] sd 4:0:0:0: [sdb] Unhandled error code
 [8.350505] sd 4:0:0:0: [sdb] Result: hostbyte=DID_SOFT_ERROR 
 driverbyte=DRIVER_OK
 [8.350509] sd 4:0:0:0: [sdb] CDB: Read(16): 88 00 00 00 00 03 2d ab bf f8 
 00 00 00 08 00 00
 [8.350520] end_request: I/O error, dev sdb, sector 13651132408
 [8.350576] Buffer I/O error on device sdb, logical block 1706391551

Same error on retry.

[...]
 The device in question is a hardware RAID (multiple SATA disks presented
 as one SCSI device).  I can attempt to get model numbers and so on if
 those are relevant.

Please send a full kernel boot log, and the output of 'lspci -vnn'.

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.


signature.asc
Description: This is a digitally signed message part


Bug#625738: 2TB SCSI disk size not recognized correctly

2011-05-05 Thread Greg Wooledge
Package: linux-image-2.6.32-5-686
Version: 2.6.32-31

I upgraded a machine from Lenny to Squeeze, and it failed to mount one
of the disks.  Here is a large swath of dmesg from the failing kernel:

[0.00] Linux version 2.6.32-5-686 (Debian 2.6.32-31) 
(b...@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Tue Mar 8 
21:36:00 UTC 2011

...

[3.914558] scsi 4:0:0:0: Direct-Access   R0.0 
PQ: 0 ANSI: 5
[3.914564] scsi 4:0:0:0: Information Units disabled by blacklist
[3.914576] scsi target4:0:0: Beginning Domain Validation
[3.914594] scsi5 : ioc1: LSI53C1030 C0, FwRev=01032700h, Ports=1, MaxQ=255, 
IRQ=18
[4.566692] scsi target4:0:0: Ending Domain Validation
[4.566756] scsi target4:0:0: FAST-80 WIDE SCSI 160.0 MB/s DT (12.5 ns, 
offset 127)
[5.728614] scsi 4:0:5:0: Sequential-Access CERTANCE ULTRIUM 31770 
PQ: 0 ANSI: 4
[5.728625] scsi target4:0:5: Beginning Domain Validation
[6.058280] scsi target4:0:5: Domain Validation skipping write tests
[6.058283] scsi target4:0:5: Ending Domain Validation
[6.058345] scsi target4:0:5: FAST-80 WIDE SCSI 160.0 MB/s DT (12.5 ns, 
offset 127)
[8.310955] scsi 3:0:0:0: Direct-Access ATA  SEAGATE ST32500N n/a  
PQ: 0 ANSI: 5
[8.325016] sd 2:0:0:0: [sda] 488390625 512-byte logical blocks: (250 GB/232 
GiB)
[8.325071] sd 2:0:0:0: [sda] Write Protect is off
[8.325075] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
[8.325098] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[8.325233]  sda:
[8.332152] sd 3:0:0:0: [sdc] 488390625 512-byte logical blocks: (250 GB/232 
GiB)
[8.332201] sd 3:0:0:0: [sdc] Write Protect is off
[8.332204] sd 3:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[8.332225] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[8.332365]  sdc:
[8.332488] st: Version 20081215, fixed bufsize 32768, s/g segs 256
[8.09] st 4:0:5:0: Attached scsi tape st0
[8.12] st 4:0:5:0: st0: try direct i/o: yes (alignment 512 B)
[8.343674] sd 4:0:0:0: [sdb] 4294967296 512-byte logical blocks: (2.19 
TB/2.00 TiB)
[8.344551] usbcore: registered new interface driver hiddev
[8.344741] sd 4:0:0:0: [sdb] Write Protect is off
[8.344745] sd 4:0:0:0: [sdb] Mode Sense: bf 00 00 08
[8.345180] sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[8.345421]  sda1 sda2
[8.345672] sd 2:0:0:0: [sda] Attached SCSI disk
[8.345973] sd 4:0:0:0: [sdb] 13651132416 512-byte logical blocks: (6.98 
TB/6.35 TiB)
[8.347305] sdb: detected capacity change from 219902322 to 6989379796992
[8.347310]  sdb:
[8.348685] Errataon LSI53C1030 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
[8.348837] Errataon LSI53C1030 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
[8.348986] Errataon LSI53C1030 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
[8.349135] Errataon LSI53C1030 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
[8.349286] Errataon LSI53C1030 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
[8.349435] Errataon LSI53C1030 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
[8.349442] sd 4:0:0:0: [sdb] Unhandled error code
[8.349444] sd 4:0:0:0: [sdb] Result: hostbyte=DID_SOFT_ERROR 
driverbyte=DRIVER_OK
[8.349449] sd 4:0:0:0: [sdb] CDB: Read(16): 88 00 00 00 00 03 2d ab bf f8 
00 00 00 08 00 00
[8.349461] end_request: I/O error, dev sdb, sector 13651132408
[8.349520] Buffer I/O error on device sdb, logical block 1706391551
[8.349732] Errataon LSI53C1030 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
[8.349886] Errataon LSI53C1030 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
[8.350046] Errataon LSI53C1030 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
[8.350196] Errataon LSI53C1030 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
[8.350347] Errataon LSI53C1030 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
[8.350497] Errataon LSI53C1030 occurred.sc-req_bufflen=0x1000,xfer_cnt=0x00
[8.350503] sd 4:0:0:0: [sdb] Unhandled error code
[8.350505] sd 4:0:0:0: [sdb] Result: hostbyte=DID_SOFT_ERROR 
driverbyte=DRIVER_OK
[8.350509] sd 4:0:0:0: [sdb] CDB: Read(16): 88 00 00 00 00 03 2d ab bf f8 
00 00 00 08 00 00
[8.350520] end_request: I/O error, dev sdb, sector 13651132408
[8.350576] Buffer I/O error on device sdb, logical block 1706391551
[8.350639] Alternate GPT is invalid, using primary GPT.
[8.350642]  sdb1
[8.353476]  sdc1 sdc2
[8.353538] input: Virtual USB MULTIMEDIA KEYBOARD as 
/devices/pci:00/:00:02.0/usb2/2-1/2-1:1.0/input/input0
[8.353610] generic-usb 0003:0B38:0003.0001: input,hidraw0: USB HID v1.10 
Keyboard [Virtual USB MULTIMEDIA KEYBOARD] on usb-:00:02.0-1
/input0
[8.353792] sd 3:0:0:0: [sdc] Attached SCSI disk
[8.363449] input: Virtual USB MULTIMEDIA KEYBOARD as