linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [multipath] SCSI device capacity mess
@ 2004-10-26 23:27 christophe varoqui
  2004-10-26 21:34 ` James Bottomley
  2004-10-27  8:17 ` [dm-devel] " Lars Marowsky-Bree
  0 siblings, 2 replies; 23+ messages in thread
From: christophe varoqui @ 2004-10-26 23:27 UTC (permalink / raw)
  To: device-mapper development; +Cc: linux-scsi@vger.kernel.org

Let me present an interesting problem :

Some SAN hardware present for a same LUN a bunch of valid paths and  a
bunch ghost paths. In my case, the ghosts responds to standard INQUIRY
(EVPD 0x83, 0x80, ...) but the READ_CAPACITY fails :

Attached scsi generic sg29 at scsi2, channel 0, id 3, lun 0,  type 12
  Vendor: DEC       Model: HSG80             Rev: V86S
  Type:   Direct-Access                      ANSI SCSI revision: 02
sdw : READ CAPACITY failed.
sdw : status=0, message=00, host=0, driver=08 
Current sd: sense key Not Ready
Additional sense: Logical unit not ready, initializing cmd. required
sdw: asking for cache data failed
sdw: assuming drive cache: write through
 /dev/scsi/host2/bus0/target3/lun1:<6>Device sdw not ready.
end_request: I/O error, dev sdw, sector 0
Buffer I/O error on device sdw, logical block 0
Device sdw not ready.
end_request: I/O error, dev sdw, sector 0
Buffer I/O error on device sdw, logical block 0
 unable to read partition table
Attached scsi disk sdw at scsi2, channel 0, id 3, lun 1


Somehow the sysfs attribute gets set to a random value :

# cat /sys/block/sdw/size
2097152

Say /dev/sdq is valid path to the same LUN. Its size is rightly reported
as 213338334 512-byte blocks.

Now when I want to map a multipath target over those two paths, the
device-mapper faithfully rejects saying /dev/sdw is too small for a
213338334 blocks devmap.

So what is the correct way to treat this situation ?

1) make the /sys/block/*/size attribute writable
2) resurrect a BLKSETSIZE ioctl
3) make device-mapper less strict, and hope we can fix the size by a
device rescan when it get activated
4) sell the culprit hardware

Other ideas ? Can someone provide help and kernel coding skills ?

regards,
-- 
christophe varoqui <christophe.varoqui@free.fr>


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

end of thread, other threads:[~2004-11-02 15:25 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-26 23:27 [multipath] SCSI device capacity mess christophe varoqui
2004-10-26 21:34 ` James Bottomley
2004-10-26 21:46   ` christophe varoqui
2004-10-27  8:17 ` [dm-devel] " Lars Marowsky-Bree
2004-10-27  8:42   ` Lars Marowsky-Bree
2004-10-27 18:51     ` Bryan Henderson
2004-10-29 14:12       ` Lars Marowsky-Bree
2004-10-29 16:48         ` Bryan Henderson
2004-10-27 19:02   ` christophe varoqui
2004-10-27 19:37     ` Eddie Williams
2004-10-27 20:19       ` christophe varoqui
2004-10-27 20:34         ` Greg Freemyer
2004-10-27 20:28     ` Philip R Auld
2004-10-27 21:57     ` James Bottomley
2004-10-28 11:37       ` Lars Marowsky-Bree
2004-10-28 18:14         ` Patrick Mansfield
2004-10-28 18:21           ` Lars Marowsky-Bree
2004-10-30  0:41             ` Patrick Mansfield
2004-10-30  1:01               ` Patrick Mansfield
2004-10-30  7:21               ` christophe varoqui
2004-10-30  8:22                 ` christophe varoqui
2004-11-02 15:23                 ` Lars Marowsky-Bree
2004-10-28 11:35     ` Lars Marowsky-Bree

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