public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* Is there a grand plan for FC failover?
@ 2004-01-26 14:18 Simon Kelley
  2004-01-26 15:37 ` James Bottomley
  0 siblings, 1 reply; 28+ messages in thread
From: Simon Kelley @ 2004-01-26 14:18 UTC (permalink / raw)
  To: linux-scsi

I see that 2.6.x kernels now have the qla2xxx driver in the mainline, 
but without the failover code.

What is the reason for that? Is there a plan provide failover facilities 
  at a higher level which will be usable with all suitable low-level 
drivers and hardware?

I'm very much in favour of using drivers which are developed in the 
kernel mainline but I have an application which needs failover so I 
might be forced back to the qlogic-distributed code.

Cheers,

Simon.


^ permalink raw reply	[flat|nested] 28+ messages in thread
* RE: Is there a grand plan for FC failover?
@ 2004-01-28 21:02 Smart, James
  2004-01-28 22:16 ` James Bottomley
  0 siblings, 1 reply; 28+ messages in thread
From: Smart, James @ 2004-01-28 21:02 UTC (permalink / raw)
  To: 'Patrick Mansfield', Philip R. Auld
  Cc: James Bottomley, Simon Kelley, SCSI Mailing List, dm-devel

I'd add one additional issue :

3) SCSI Reservations

I guess this could be considered a part of (2), but given that reservations
bring in a host of additional problems, and potentially brings up multi-host
configs/clusters as well...

-- James S


> -----Original Message-----
> From: Patrick Mansfield [mailto:patmans@us.ibm.com]
> Sent: Wednesday, January 28, 2004 3:48 PM
> To: Philip R. Auld
> Cc: James Bottomley; Simon Kelley; SCSI Mailing List;
> dm-devel@sistina.com
> Subject: Re: Is there a grand plan for FC failover?
> 
> 
> [cc-ing dm-devel]
> 
> My two main issues with dm multipath versus scsi core multipath are:
> 
> 1) It does not handle character devices.
> 
> 2) It does not have the information available about the state of the
> scsi_device or scsi_host (for path selection), or about the elevator.
> 
> If we end up passing all the scsi information up to dm, and 
> it does the
> same things that we already do in scsi (or in block), what is 
> the point of
> putting the code into a separate layer?
> 
> More scsi fastfail like code is still needed - probably for 
> all the cases
> where scsi_dev_queue_ready and scsi_host_queue_ready return 0 
> - and more.
> For example, should we somehow make sdev->queue_depth available to dm?
> 
> There are still issues with with a per path elevator (i.e. we have an
> elevator for each path rather than the entire device) that 
> probably won't
> be fixed cleanly in 2.6. AFAIUI this requires moving dm from 
> a bio based
> approach to a request based one.
> 
> -- Patrick Mansfield
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 28+ messages in thread
* RE: Is there a grand plan for FC failover?
@ 2004-01-29 17:35 Smart, James
  2004-01-29 18:31 ` Mike Anderson
  2004-01-29 18:31 ` James Bottomley
  0 siblings, 2 replies; 28+ messages in thread
From: Smart, James @ 2004-01-29 17:35 UTC (permalink / raw)
  To: 'James Bottomley', Philip R. Auld
  Cc: 'Patrick Mansfield', Simon Kelley, SCSI Mailing List,
	dm-devel



> -----Original Message-----
> From: James Bottomley [mailto:James.Bottomley@SteelEye.com]
> Sent: Thursday, January 29, 2004 10:06 AM
> To: Philip R. Auld
> Cc: Smart, James; 'Patrick Mansfield'; Simon Kelley; SCSI 
> Mailing List;
> dm-devel@sistina.com
> Subject: Re: Is there a grand plan for FC failover?
> 
> 
> On Thu, 2004-01-29 at 09:49, Philip R. Auld wrote:
> > It needs to be known to the pathing layer if you've got 
> load balancing. 
> > It has to know which path has the reservation and only use that one.
> 
> Well, yes, but your multiple active path implementation just collapsed
> back down to single path in the face of reservations, so it would
> probably be better simply to use failover in the face of reservations
> and clustering.

Why do you imply that you're down to a single path ? With multiple port
devices, and the T10 unclarity on multiport support, simple reservations
didn't bring you down to the single port access you are describing. Some
devices may have implemented it this way, but the standard didn't say they
had to or even that they should.

And this picture changes significantly with the use of Persistent
Reservations and the use of keys.


> 
> For the single path case, something like the HP MSA/EVA arrays simply
> throw away reservations on path switch over. 

Depends on the reservation type. Simple Reservations, yes. Persistent
Reservations, no.

> This allows the user level
> watchdog code to reassert them in a cluster down the new 
> path.  However,
> there are array that will do a path switchover and then return
> reservation conflict to everyone (including the taking node).  These
> arrays will need some type of special handling.
> 
> James
> 

Although the management of the reservation/keys in user space is functional,
given that reservations are used as a last firewall for babbling adapters
under failure, you want to reinstate or move the firewall as quickly as
possible - which is sometimes at odds with going out to userland to do so.

-- James S

^ permalink raw reply	[flat|nested] 28+ messages in thread
* RE: Is there a grand plan for FC failover?
@ 2004-01-29 18:41 Smart, James
  0 siblings, 0 replies; 28+ messages in thread
From: Smart, James @ 2004-01-29 18:41 UTC (permalink / raw)
  To: 'Mike Anderson'
  Cc: 'James Bottomley', Philip R. Auld,
	'Patrick Mansfield', Simon Kelley, SCSI Mailing List,
	dm-devel

I view port as a part of the path. I may have been a little loose on my
terms. I am describing paths that enter different ports on the device - not
the paths through the same port that you describe. Could be 1 adapter to a
switch with 2 switch connections to 2 ports on the target; or 2 adapters,
each with an independent path to a different port on the device.

Relative to a single port on the device - I agree with you. Simple
reservations only allow one initiator access. With multiple ports on the
device, each which may be on different and independent "bus", simple
reservation isn't sufficient.  (yes - I'm using "bus" loosely - it may be an
independent Parallel SCSI bus, or a independent fabric/zone, etc).

-- James

> -----Original Message-----
> From: Mike Anderson [mailto:andmike@us.ibm.com]
> Sent: Thursday, January 29, 2004 1:31 PM
> To: Smart, James
> Cc: 'James Bottomley'; Philip R. Auld; 'Patrick Mansfield'; Simon
> Kelley; SCSI Mailing List; dm-devel@sistina.com
> Subject: Re: Is there a grand plan for FC failover?
> 
> 
> Smart, James [James.Smart@Emulex.com] wrote:
> > 
> > 
> > > -----Original Message-----
> > > From: James Bottomley [mailto:James.Bottomley@SteelEye.com]
> > > 
> > > On Thu, 2004-01-29 at 09:49, Philip R. Auld wrote:
> > > > It needs to be known to the pathing layer if you've got 
> > > load balancing. 
> > > > It has to know which path has the reservation and only 
> use that one.
> > > 
> > > Well, yes, but your multiple active path implementation 
> just collapsed
> > > back down to single path in the face of reservations, so it would
> > > probably be better simply to use failover in the face of 
> reservations
> > > and clustering.
> > 
> > Why do you imply that you're down to a single path ? With 
> multiple port
> > devices, and the T10 unclarity on multiport support, simple 
> reservations
> > didn't bring you down to the single port access you are 
> describing. Some
> > devices may have implemented it this way, but the standard 
> didn't say they
> > had to or even that they should.
> > 
> > And this picture changes significantly with the use of Persistent
> > Reservations and the use of keys.
> > 
> 
> It appears you are mixing port and path. If you have multiple 
> paths to a
> port created by multiple adapters connecting to this port 
> through a bus,
> fabric, etc. then simple reservations should restrict you to only one
> path to this port. Is there a device that implements simple 
> reservations
> and allows multiple initiators access?
> 
> -andmike
> --
> Michael Anderson
> andmike@us.ibm.com
> 

^ permalink raw reply	[flat|nested] 28+ messages in thread
* RE: Is there a grand plan for FC failover?
@ 2004-01-29 19:37 Smart, James
  0 siblings, 0 replies; 28+ messages in thread
From: Smart, James @ 2004-01-29 19:37 UTC (permalink / raw)
  To: 'James Bottomley'
  Cc: Philip R. Auld, 'Patrick Mansfield', Simon Kelley,
	SCSI Mailing List, dm-devel

I agree with what's here. Some of my concern did come from trying to support
older SCSI-2 devices, or some of those implementations before Persistent
Reserve finally settled to where it is now, and how you actually detect the
different rev/behaviors. 

IMO - After addressing the semantics of the reservations types and how to
identify what's what(which is all SCSI-based) - why isn't this in the scsi
layer ? Pushing this up a level to a transport agnostic layer seems to just
impose more behaviors on that layer, and create a bunch of new interfaces
for what SCSI could already know/do. Also, when considering the timing
constraints and ownership issues pushing this to user land doesn't seem
right either.

-- James S


> -----Original Message-----
> From: James Bottomley [mailto:James.Bottomley@SteelEye.com]
> Sent: Thursday, January 29, 2004 1:31 PM
> To: Smart, James
> Cc: Philip R. Auld; 'Patrick Mansfield'; Simon Kelley; SCSI Mailing
> List; dm-devel@sistina.com
> Subject: RE: Is there a grand plan for FC failover?
> 
> 
> On Thu, 2004-01-29 at 12:35, Smart, James wrote:
> > Why do you imply that you're down to a single path ? With 
> multiple port
> > devices, and the T10 unclarity on multiport support, simple 
> reservations
> > didn't bring you down to the single port access you are 
> describing. Some
> > devices may have implemented it this way, but the standard 
> didn't say they
> > had to or even that they should.
> 
> T10 implies SCSI-2 reservations protect single paths.  Any multi-port
> SCSI-2 reservation implementations tend to be vendor 
> specific.  That's a
> nasty I don't think we want to get into.
> 
> > And this picture changes significantly with the use of Persistent
> > Reservations and the use of keys.
> 
> That's the point, it doesn't.  T10 clarified the persistent 
> reservation
> holder (5.6.2.6 in rev 16) so that it's a specific I_T nexus (which is
> effectively a specific path unless you have fabric redundancy) except
> for all registrant reservations (which aren't useful for clustering).
> 
> Obviously, this seems to require that the reservation be held against
> everyone when the port switches, which would preclude doing user level
> reservation handling, hence the need for a separate ownership API
> (assuming all vendors get on the same page about this).
> 
> James
> 
> 

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

end of thread, other threads:[~2004-02-12 16:05 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-26 14:18 Is there a grand plan for FC failover? Simon Kelley
2004-01-26 15:37 ` James Bottomley
2004-01-28 15:02   ` Philip R. Auld
2004-01-28 16:57     ` James Bottomley
2004-01-28 18:00       ` Philip R. Auld
2004-01-28 20:47         ` Patrick Mansfield
2004-01-28 22:14           ` James Bottomley
2004-01-29  0:55             ` Patrick Mansfield
2004-01-30 19:48               ` [dm-devel] " Joe Thornber
2004-01-31  9:30                 ` Jens Axboe
2004-01-31 16:59                   ` Philip R. Auld
2004-01-31 17:42                     ` Jens Axboe
2004-02-12 15:17                       ` Philip R. Auld
2004-02-12 15:28                         ` Arjan van de Ven
2004-02-12 16:03                           ` Philip R. Auld
2004-01-28 22:37         ` Mike Christie
2004-01-29 15:24           ` Philip R. Auld
2004-01-29 16:00             ` James Bottomley
2004-01-29 23:25               ` Mike Christie
  -- strict thread matches above, loose matches on Subject: below --
2004-01-28 21:02 Smart, James
2004-01-28 22:16 ` James Bottomley
2004-01-29 14:49   ` Philip R. Auld
2004-01-29 15:05     ` James Bottomley
2004-01-29 17:35 Smart, James
2004-01-29 18:31 ` Mike Anderson
2004-01-29 18:31 ` James Bottomley
2004-01-29 18:41 Smart, James
2004-01-29 19:37 Smart, James

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