public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* clustering and 2.6
@ 2004-09-07 16:12 mikem
  2004-09-07 16:34 ` Christoph Hellwig
  2004-09-07 16:40 ` James Bottomley
  0 siblings, 2 replies; 3+ messages in thread
From: mikem @ 2004-09-07 16:12 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-scsi, axboe

All,
I'm having some issues when trying to use some clustering software when
running any 2.6.x kernel.
Basically, there are 2 nodes connected to 1 storage storage enclosure.
When node 1 comes up it reserves the volume(s) in the enclosure. When
node 2 comes up the read capacity fails as expected because of the 
SCSI reservation. However, if node 1 fails node 2 breaks the reservation,
but cannot register the disk. At this time we're assuming it's because the read
capacity failed and the size of the disk is zero blocks.

The SCSI mid-layer sets a bogus size on a device when read capacity fails.
Is this the preferred way to get around this issue? Seems like there
should be a better way.

Any input is greatly appreciated.

Thanks,
mikem

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

* Re: clustering and 2.6
  2004-09-07 16:12 clustering and 2.6 mikem
@ 2004-09-07 16:34 ` Christoph Hellwig
  2004-09-07 16:40 ` James Bottomley
  1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2004-09-07 16:34 UTC (permalink / raw)
  To: mikem; +Cc: linux-kernel, linux-scsi, axboe

On Tue, Sep 07, 2004 at 11:12:54AM -0500, mikem wrote:
> The SCSI mid-layer sets a bogus size on a device when read capacity fails.
> Is this the preferred way to get around this issue? Seems like there
> should be a better way.

you need to write something (anything works) to the rescan attribute of
each lun.

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

* Re: clustering and 2.6
  2004-09-07 16:12 clustering and 2.6 mikem
  2004-09-07 16:34 ` Christoph Hellwig
@ 2004-09-07 16:40 ` James Bottomley
  1 sibling, 0 replies; 3+ messages in thread
From: James Bottomley @ 2004-09-07 16:40 UTC (permalink / raw)
  To: mikem; +Cc: Linux Kernel, SCSI Mailing List, Jens Axboe

On Tue, 2004-09-07 at 12:12, mikem wrote:
> All,
> I'm having some issues when trying to use some clustering software when
> running any 2.6.x kernel.
> Basically, there are 2 nodes connected to 1 storage storage enclosure.
> When node 1 comes up it reserves the volume(s) in the enclosure. When
> node 2 comes up the read capacity fails as expected because of the 
> SCSI reservation. However, if node 1 fails node 2 breaks the reservation,
> but cannot register the disk. At this time we're assuming it's because the read
> capacity failed and the size of the disk is zero blocks.
> 
> The SCSI mid-layer sets a bogus size on a device when read capacity fails.
> Is this the preferred way to get around this issue? Seems like there
> should be a better way.
> 
> Any input is greatly appreciated.

The bogus size thing is a holdover from the old days.

However, I recently did a test where I forced the size to zero.  What I
see is that the partition does indeed not get registered (even for the
whole disc device).  However I can still send a BLKRRPART ioctl to it
trigger a rescan and get the correct size.

James



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

end of thread, other threads:[~2004-09-07 16:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-07 16:12 clustering and 2.6 mikem
2004-09-07 16:34 ` Christoph Hellwig
2004-09-07 16:40 ` James Bottomley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox