READ CAPACITY failed on ia64
Hi
Here is an ia64 box with a QLogic QLA12160 PCI to SCSI Host Adapter and two SCSI disks.
One of them is a SEAGATE ST318453LC (18352 MB) the other one is a SEAGATE ST3146807LC (147GB). The ST3146807LC disk works fine in other boxes. I just put it into this one from a HP server where it was working with the *same* controller.
In this box I get the following error message:
sd 0:0:2:0: [sdb] READ CAPACITY failed
sd 0:0:2:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
sd 0:0:2:0: [sdb] Sense Key : 0x3 [current]
sd 0:0:2:0: [sdb] ASC=0x31 ASCQ=0x0
sd 0:0:2:0: [sdb] Write Protect is off
sd 0:0:2:0: [sdb] Mode Sense: ab 00 10 08
sd 0:0:2:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FU A
sd 0:0:2:0: [sdb] Attached SCSI disk
I am currently running 2.6.22 but I've also tried with serveral other (and older) kernels and it still can't get the capacity of the disk.
The other disk ST318453LC is just working fine and it is serving as the system disk.
The only thing I can do is to run scsiformat(8) which finishes correctly. I've also tried to fill the disk with zeroes using dd(1) but that did not help anything either.
The full dmesg of the box can be found at http://humppa.hu/dmesg.scsi
EFI information:
Seg: 1 Bus: 0 Dev: 3 Func: 0 - Qlogic 12160 SCSI Controller detected: Firmware Rev 6
(Pun 1,Lun 0): SEAGATE ST318453LC 0002
(Pun 2,Lun 0): SEAGATE ST3146807LC 0003
Do you guys have any idea?
Thanks
Quoted 1 line · Robert Nagy
In this box I get the following error message:
If you turn on CONFIG_SCSI_CONSTANTS, you'll get the error message decoded for you, but ...
Quoted 3 lines
sd 0:0:2:0: [sdb] READ CAPACITY failed
sd 0:0:2:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08 sd 0:0:2:0: [sdb] Sense Key :0x3[current]
"Medium Error", /* 3: Data error detected on the medium */
Quoted 1 line
sd 0:0:2:0: [sdb] ASC=0x31 ASCQ=0x0
{0x3100, "Medium format corrupted"},Quoted 2 lines
I am currently running 2.6.22 but I've also tried with serveral other (and older) kernels and it still can't get the capacity of the disk.
Looks like the disc is broken. Given that a scsiformat doesn't fix it, it's probably irretrievable.
Signature · 3 lines
"Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step."
Quoted 14 lines · Matthew Wilcox
Quoted 1 line · Robert Nagy
In this box I get the following error message:
If you turn on
CONFIG_SCSI_CONSTANTS, you'll get the error message decoded for you, but ...Quoted 3 lines
sd 0:0:2:0: [sdb] READ CAPACITY failed
sd 0:0:2:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08 sd 0:0:2:0: [sdb] Sense Key :0x3[current]"Medium Error", /* 3: Data error detected on the medium */
Quoted 1 line
sd 0:0:2:0: [sdb] ASC=0x31 ASCQ=0x0
Quoted 7 lines
{0x3100, "Medium format corrupted"},Quoted 2 lines
I am currently running 2.6.22 but I've also tried with serveral other (and older) kernels and it still can't get the capacity of the disk.
Looks like the disc is broken. Given that a scsiformat doesn't fix it, it's probably irretrievable.
When a disk is formatted to a different sector size (say from 528 bytes to 512) then a MODE SELECT followed by a FORMAT is required. If the format fails or is interrupted (say someone powers off the machine) then the disk is said to be in "medium format corrupted" state.
Any attempt to access the media when the disk is in this state will yield the reported error.
May I suggest that you try sg_format in sg3_utils. Using sg_format without the '--format' option may show you what is happening. For a healthy disk you would see something like this:
# sg_format /dev/sda
Linux scsi_debug 1.82 peripheral_type: disk [0x0]
Mode sense (block descriptor) data, prior to changes:
Number of blocks=16384 [0x4000]
Block size=512 [0x200]
Read Capacity (10) results:
Number of blocks=16384
Block size=512 bytes
No changes made. To format use '--format'. To resize use '--resize'You will probably see the same error in response to the Read Capacity. The block size reported by the Mode Sense (block descriptor) most likely doesn't match some or all of your media.
Doug Gilbert