public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [RFC] Multi-path IO in 2.5/2.6 ?
@ 2002-09-09 14:57 James Bottomley
  2002-09-09 16:56 ` Patrick Mansfield
  2002-09-11  0:21 ` Neil Brown
  0 siblings, 2 replies; 40+ messages in thread
From: James Bottomley @ 2002-09-09 14:57 UTC (permalink / raw)
  To: Lars Marowsky-Bree; +Cc: linux-kernel, James.Bottomley

Lars Marowsky-Bree <lmb@suse.de> said:
> So, what is the take on "multi-path IO" (in particular, storage) in
> 2.5/2.6?

I've already made my views on this fairly clear (at least from the SCSI stack 
standpoint):

- multi-path inside the low level drivers (like qla2x00) is wrong
- multi-path inside the SCSI mid-layer is probably wrong
- from the generic block layer on up, I hold no specific preferences

That being said, I'm not particularly happy to have the multi-path solution 
tied to a specific raid driver; I'd much rather it were in something generic 
that could be made use of by all raid drivers (and yes, I do see the LVM2 
device mapper as more hopeful than md in this regard).

> I am looking at what to do for 2.5. I have considered porting the
> small changes from 2.4 to md 2.5. The LVM1 changes are probably and
> out gone, as LVM1 doesn't work still.

Well, neither of the people most involved in the development (that's Neil 
Brown for md in general and Ingo Molnar for the multi-path enhancements) made 
any comments---see if you can elicit some feedback from either of them.

James



^ permalink raw reply	[flat|nested] 40+ messages in thread
[parent not found: <patmans@us.ibm.com>]
* RE: [RFC] Multi-path IO in 2.5/2.6 ?
@ 2002-09-10 16:34 Cameron, Steve
  2002-09-10 18:48 ` Alan Cox
  0 siblings, 1 reply; 40+ messages in thread
From: Cameron, Steve @ 2002-09-10 16:34 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel


Alan Cox wrote:

> On Tue, 2002-09-10 at 15:43, Cameron, Steve wrote:
> > Well, the BIOS can do it if it has one working path, right?
> > (I think the md information is at the end of the partition,)
> 
> Yes. A good PC bios will spot an hda boot fail, and try hdc. Good PC
> bioses are alas slightly hard to find nowdays. In that set up raid1
> works very well. Multipath is obviously a lot more complicated.

For the failed primary path case yes.  In the case the primary path is
working, I would think booting from a multipath device and a RAID1 
device would be very very similar, or even identical, from the 
perspective of the BIOS, right?

> > lilo and grub as they stand today, and anaconda (et al) as it 
> > stands today, cannot do it.  They can do RAID1 md devices only.  
> > lilo for example will complain if you try to run it with 
> > boot=/dev/md0, and /dev/md0 is not a RAID1 device.   At least 
> 
> It relies on the BIOS to do the data loading off the md0. In your
> scenario you would tell it the boot is on /dev/sdfoo where that is the
> primary path. I guess the ugly approach would be to add lilo/grub
> entries for booting off either path as two seperate kernel entries.
> 

Hmm, I thought I had tried this, but, I had tried so many things.
If anyone has successfully set up a system booting from a multipath
md device, I'd like to hear about it.

What I tried was more or less this:

1. Install normally to disk-A, remove disk-A from the system.
2. Install normally to disk-B.  Install disk-A into the system.
   and boot from disk-B.  (now I can safely copy from disk-A, which has
   no actively mounted partitions.)
3.  Create multipath devices on disk-C, one for each partition.
   The partitions are bigger than those on disk-A, to allow for md to
	put its data at the end.
4.  Copy, (using dd) the partitions from disk-A to the md devices.

5.  mount the md devices, and chroot to the md-root device.
    Try to figure out how to run lilo to make booting from disk-C possible
    also, initrd modifications to insmod multipath.o, mount the md devices,
    etc.  This part, (making lilo work) I never was able to figure out.

  Would boot up and say "LI" then stop... or various other problems
  that I can't quite recall now.  (this was a couple weeks ago)

I guess this is getting a little off topic for linux-kernel, so maybe I 
should let this drop now, or take it over to linux-raid, but I _would_ 
like to hear from anyone who has got a multipath boot device working.

Anyway, even if this can be made to work, this leaves a rather ugly and
convoluted method of installation.

> > bit, but so far, I am unsuccessful.  I think grub cannot even do
> > RAID1.
> 
> Works for me

Ok, good to hear.  (I had it only on hearsay that grub couldn't do it,
so my experiments were confined to lilo.)

-- steve

 

^ permalink raw reply	[flat|nested] 40+ messages in thread
* RE: [RFC] Multi-path IO in 2.5/2.6 ?
@ 2002-09-10 14:43 Cameron, Steve
  2002-09-10 15:05 ` Alan Cox
  0 siblings, 1 reply; 40+ messages in thread
From: Cameron, Steve @ 2002-09-10 14:43 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

Alan Cox wrote:
> On Tue, 2002-09-10 at 15:06, Cameron, Steve wrote:
> > We can use the md driver for this.  However, we cannot boot from
> > such a multipath device.  Lilo and grub do not understand md multipath
> > devices, nor do anaconda or other installers.  (Enhancing all of those,
> > I'd like to avoid.  Cramming multipath i/o into the low level driver
> > would accomplish that, but, too yucky.) 
> > 
> > If there is work going on to enhance the multipath support in linux
> > it would be nice if you could boot from and install to such devices.
> 
> Booting from them is a BIOS matter. If the BIOS can do the block loads
> off the multipath device we can do the rest. The probe stuff 
> can be done
> in the boot initrd - as some vendors handle raid for example.

Well, the BIOS can do it if it has one working path, right?
(I think the md information is at the end of the partition,)
Maybe it will have some trouble if the primary path is failed,
but ignoring that for now.  In the normal case, the bios shouldn't
even have to know it's a multipath device, right?

lilo and grub as they stand today, and anaconda (et al) as it 
stands today, cannot do it.  They can do RAID1 md devices only.  
lilo for example will complain if you try to run it with 
boot=/dev/md0, and /dev/md0 is not a RAID1 device.   At least 
it did when I tried it.  When I looked at the lilo source, it
goes through each disk in the raid device and puts the boot 
code on each one, a la RAID1.  No provision is made for any other
kind of raid.  Raid 5, naturally is much harder, and is unlikely
to have BIOS support, so this is understandable.  Multipath seems
much closer to raid1 in terms of what's necessary for booting,
that is, much much easier than raid 5.  I tried hacking on lilo a
bit, but so far, I am unsuccessful.  I think grub cannot even do
RAID1.

I agree in principle, the initrd scripts can insmod multipath.o
to get things rolling, etc.  The trouble comes from lilo, grub 
and install time configuration.

-- steve



^ permalink raw reply	[flat|nested] 40+ messages in thread
* Re: [RFC] Multi-path IO in 2.5/2.6 ?
@ 2002-09-10 14:06 Cameron, Steve
  2002-09-10 14:25 ` Alan Cox
  0 siblings, 1 reply; 40+ messages in thread
From: Cameron, Steve @ 2002-09-10 14:06 UTC (permalink / raw)
  To: linux-kernel

James Bottomley wrote:

>Answer me this question:
>- In the forseeable future does multi-path have uses other than SCSI?

We (HP) would like to use multipath i/o with the cciss driver.
(which is a block driver).

We can use the md driver for this.  However, we cannot boot from
such a multipath device.  Lilo and grub do not understand md multipath
devices, nor do anaconda or other installers.  (Enhancing all of those,
I'd like to avoid.  Cramming multipath i/o into the low level driver
would accomplish that, but, too yucky.) 

If there is work going on to enhance the multipath support in linux
it would be nice if you could boot from and install to such devices.

-- steve

^ permalink raw reply	[flat|nested] 40+ messages in thread
* Re: [RFC] Multi-path IO in 2.5/2.6 ?
@ 2002-09-09 17:58 Ulrich Weigand
  0 siblings, 0 replies; 40+ messages in thread
From: Ulrich Weigand @ 2002-09-09 17:58 UTC (permalink / raw)
  To: James.Bottomley, patmans; +Cc: linux-kernel

James Bottomley wrote:

>Answer me this question:
>- In the forseeable future does multi-path have uses other than SCSI?

The S/390 DASD driver could conceivably make use of generic block layer
(or higher-up) multi-path support.

(We have multi-path support on a lower level, the channel subsystem,
but this helps only with reliability / failover.  Using multi-path
support on a higher level for performance reasons would be helpful
in certain scenarios.)


Mit freundlichen Gruessen / Best Regards

Ulrich Weigand

--
  Dr. Ulrich Weigand
  Linux for S/390 Design & Development
  IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 Boeblingen
  Phone: +49-7031/16-3727   ---   Email: Ulrich.Weigand@de.ibm.com


^ permalink raw reply	[flat|nested] 40+ messages in thread
* [RFC] Multi-path IO in 2.5/2.6 ?
@ 2002-09-09 10:49 Lars Marowsky-Bree
  2002-09-09 12:23 ` Alan Cox
  2002-09-10 10:30 ` Heinz J . Mauelshagen
  0 siblings, 2 replies; 40+ messages in thread
From: Lars Marowsky-Bree @ 2002-09-09 10:49 UTC (permalink / raw)
  To: linux-kernel

Morning everyone,

I hope people are waking up by now ;-)

So, what is the take on "multi-path IO" (in particular, storage) in 2.5/2.6?

Right now, we have md multipathing in 2.4 (+ an enhancement to that one by
Jens Axboe and myself, which however was ignored on l-k ;-), an enhancement to
LVM1 and various hardware-specific and thus obviously wrong approaches.

I am looking at what to do for 2.5. I have considered porting the small
changes from 2.4 to md 2.5. The LVM1 changes are probably and out gone, as
LVM1 doesn't work still.

I noticed that EVMS duplicates the entire md layer internally (great way to
code, really!), so that might also require changing if I update the md code.

Or can the LVM2 device-mapper be used to do that more cleanly?

I wonder whether anyone has given this some thought already.


Sincerely,
    Lars Marowsky-Brée <lmb@suse.de>

-- 
Immortality is an adequate definition of high availability for me.
	--- Gregory F. Pfister


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

end of thread, other threads:[~2002-10-31  0:38 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-09 14:57 [RFC] Multi-path IO in 2.5/2.6 ? James Bottomley
2002-09-09 16:56 ` Patrick Mansfield
2002-09-09 17:34   ` James Bottomley
2002-09-09 18:40     ` Mike Anderson
2002-09-10 13:02       ` Lars Marowsky-Bree
2002-09-10 16:03         ` Patrick Mansfield
2002-09-10 16:27         ` Mike Anderson
2002-09-10  0:08     ` Patrick Mansfield
2002-09-10  7:55       ` Jeremy Higdon
2002-09-10 13:04         ` Lars Marowsky-Bree
2002-09-10 16:20           ` Patrick Mansfield
2002-09-10 13:16       ` Lars Marowsky-Bree
2002-09-10 19:26         ` Patrick Mansfield
2002-09-11 14:20           ` James Bottomley
2002-09-11 19:17             ` Lars Marowsky-Bree
2002-09-11 19:37               ` James Bottomley
2002-09-11 19:52                 ` Lars Marowsky-Bree
2002-09-12  1:15                   ` Bernd Eckenfels
2002-09-11 21:38                 ` Oliver Xymoron
2002-09-11 20:30             ` Doug Ledford
2002-09-11 21:17               ` Mike Anderson
2002-09-10 17:21       ` Patrick Mochel
2002-09-10 18:42         ` Patrick Mansfield
2002-09-10 19:00           ` Patrick Mochel
2002-09-10 19:37             ` Patrick Mansfield
2002-09-11  0:21 ` Neil Brown
     [not found] <patmans@us.ibm.com>
2002-10-30 16:58 ` [PATCH] 2.5 current bk fix setting scsi queue depths Patrick Mansfield
2002-10-30 17:17   ` James Bottomley
2002-10-30 18:05     ` Patrick Mansfield
2002-10-31  0:44       ` James Bottomley
  -- strict thread matches above, loose matches on Subject: below --
2002-09-10 16:34 [RFC] Multi-path IO in 2.5/2.6 ? Cameron, Steve
2002-09-10 18:48 ` Alan Cox
2002-09-10 14:43 Cameron, Steve
2002-09-10 15:05 ` Alan Cox
2002-09-10 14:06 Cameron, Steve
2002-09-10 14:25 ` Alan Cox
2002-09-09 17:58 Ulrich Weigand
2002-09-09 10:49 Lars Marowsky-Bree
2002-09-09 12:23 ` Alan Cox
2002-09-10 10:30 ` Heinz J . Mauelshagen

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