linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* READ CAPACITY failed on ia64
@ 2007-08-14 11:50 Robert Nagy
  2007-08-14 12:08 ` Matthew Wilcox
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Nagy @ 2007-08-14 11:50 UTC (permalink / raw)
  To: linux-scsi

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: READ CAPACITY failed on ia64
  2007-08-14 11:50 READ CAPACITY failed on ia64 Robert Nagy
@ 2007-08-14 12:08 ` Matthew Wilcox
  2007-08-30 20:48   ` Douglas Gilbert
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Wilcox @ 2007-08-14 12:08 UTC (permalink / raw)
  To: Robert Nagy; +Cc: linux-scsi

On Tue, Aug 14, 2007 at 01:50:05PM +0200, Robert Nagy wrote:
> 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 ...

> 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 */

> sd 0:0:2:0: [sdb] ASC=0x31 ASCQ=0x0

        {0x3100, "Medium format corrupted"},

> 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.

-- 
"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."

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: READ CAPACITY failed on ia64
  2007-08-14 12:08 ` Matthew Wilcox
@ 2007-08-30 20:48   ` Douglas Gilbert
  0 siblings, 0 replies; 3+ messages in thread
From: Douglas Gilbert @ 2007-08-30 20:48 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: Robert Nagy, linux-scsi

Matthew Wilcox wrote:
> On Tue, Aug 14, 2007 at 01:50:05PM +0200, Robert Nagy wrote:
>> 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 ...
> 
>> 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 */
> 
>> sd 0:0:2:0: [sdb] ASC=0x31 ASCQ=0x0
> 
>         {0x3100, "Medium format corrupted"},
> 
>> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-08-30 20:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-14 11:50 READ CAPACITY failed on ia64 Robert Nagy
2007-08-14 12:08 ` Matthew Wilcox
2007-08-30 20:48   ` Douglas Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).