public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* md multipath with disk missing ?
@ 2002-09-09 13:08 Oktay Akbal
  2002-09-09 13:27 ` Lars Marowsky-Bree
  0 siblings, 1 reply; 7+ messages in thread
From: Oktay Akbal @ 2002-09-09 13:08 UTC (permalink / raw)
  To: linux-kernel

Hello !

Can someone tell me, how md multipathing works, when a drive fails
completly ?
Does this only work with raid-autodetection ?
When no autodetection is done and a drive is missing, would a raidstart
kill the raid, since the drives are now available with other devices (sda
instead of former sdb...) ?


Oktay Akbal


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

* Re: md multipath with disk missing ?
  2002-09-09 13:08 md multipath with disk missing ? Oktay Akbal
@ 2002-09-09 13:27 ` Lars Marowsky-Bree
  2002-09-09 13:46   ` Oktay Akbal
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Marowsky-Bree @ 2002-09-09 13:27 UTC (permalink / raw)
  To: Oktay Akbal, linux-kernel

On 2002-09-09T15:08:31,
   Oktay Akbal <oktay.akbal@s-tec.de> said:

> Can someone tell me, how md multipathing works, when a drive fails
> completly ?

Well, if the drive (not the path to it) fails _completely_, it won't be
detected by the md autostart (as it can't find the md superblock).

If it fails completely during runtime, all paths but the last one to it will
be disabled, as a drive failure can't be distinguished from a path failure in
the wonderful 2.4 error handling ;-)

But then, all requests send down the last path will fail, because the target
is broken, not the path.

In short, multipathing doesn't help a bit here; how could it?

> Does this only work with raid-autodetection ?
> When no autodetection is done and a drive is missing, would a raidstart
> kill the raid, since the drives are now available with other devices (sda
> instead of former sdb...) ?

I don't understand your question, sorry.


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] 7+ messages in thread

* Re: md multipath with disk missing ?
  2002-09-09 13:27 ` Lars Marowsky-Bree
@ 2002-09-09 13:46   ` Oktay Akbal
  2002-09-09 13:50     ` Steve Mickeler
                       ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Oktay Akbal @ 2002-09-09 13:46 UTC (permalink / raw)
  To: Lars Marowsky-Bree; +Cc: linux-kernel

> > Does this only work with raid-autodetection ?
> > When no autodetection is done and a drive is missing, would a raidstart
> > kill the raid, since the drives are now available with other devices (sda
> > instead of former sdb...) ?
>
> I don't understand your question, sorry.

Example:

We have sda - sdb (8 drives) and setup up a raidtab to tell linux that
sda and sde are the same sdc - sdd etc.
Now for some random error the server restarts and the former sda (path to
that drive) is no longer available. So now we have sda,sdb...sdg.
We do not use autodetect, but raidstart to activate the raid.

now since the former sda is missing the raidtab does not reflect the
actual setup. The raidtab would read, that sda and sdb are the same
drive, which is not true in that case.

(The device-ordering would not be right for a real setup, but take it as
an example and assume sda-sde sdb-sdf...)

Would the superblock prevent the wrong use of devices ?
(With raid-configuration setup on top of multipathing ?)




Oktay Akbal
S-Tec Datenverarbeitung GmbH
Feuerbachstr. 8
68163 Mannheim
Tel: 0621-4185070
Fax: 0621-4185071


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

* Re: md multipath with disk missing ?
  2002-09-09 13:46   ` Oktay Akbal
@ 2002-09-09 13:50     ` Steve Mickeler
  2002-09-09 20:45       ` Alan Cox
  2002-09-09 15:06     ` Lars Marowsky-Bree
  2002-09-10 22:51     ` Neil Brown
  2 siblings, 1 reply; 7+ messages in thread
From: Steve Mickeler @ 2002-09-09 13:50 UTC (permalink / raw)
  To: Oktay Akbal; +Cc: linux-kernel


Oktay,

You should really be using devfs in a situation such as yours, where you
need device name consistency during reboots.

On Mon, 9 Sep 2002, Oktay Akbal wrote:

> > > Does this only work with raid-autodetection ?
> > > When no autodetection is done and a drive is missing, would a raidstart
> > > kill the raid, since the drives are now available with other devices (sda
> > > instead of former sdb...) ?
> >
> > I don't understand your question, sorry.
>
> Example:
>
> We have sda - sdb (8 drives) and setup up a raidtab to tell linux that
> sda and sde are the same sdc - sdd etc.
> Now for some random error the server restarts and the former sda (path to
> that drive) is no longer available. So now we have sda,sdb...sdg.
> We do not use autodetect, but raidstart to activate the raid.
>
> now since the former sda is missing the raidtab does not reflect the
> actual setup. The raidtab would read, that sda and sdb are the same
> drive, which is not true in that case.
>
> (The device-ordering would not be right for a real setup, but take it as
> an example and assume sda-sde sdb-sdf...)
>
> Would the superblock prevent the wrong use of devices ?
> (With raid-configuration setup on top of multipathing ?)
>
>
>
>
> Oktay Akbal
> S-Tec Datenverarbeitung GmbH
> Feuerbachstr. 8
> 68163 Mannheim
> Tel: 0621-4185070
> Fax: 0621-4185071
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>



[-] Steve Mickeler [ steve@neptune.ca ]

[|] Todays root password is brought to you by /dev/random

[+] 1024D/9AA80CDF = 4103 9E35 2713 D432 924F  3C2E A7B9 A0FE 9AA8 0CDF



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

* Re: md multipath with disk missing ?
  2002-09-09 13:46   ` Oktay Akbal
  2002-09-09 13:50     ` Steve Mickeler
@ 2002-09-09 15:06     ` Lars Marowsky-Bree
  2002-09-10 22:51     ` Neil Brown
  2 siblings, 0 replies; 7+ messages in thread
From: Lars Marowsky-Bree @ 2002-09-09 15:06 UTC (permalink / raw)
  To: Oktay Akbal; +Cc: linux-kernel

On 2002-09-09T15:46:15,
   Oktay Akbal <oktay.akbal@s-tec.de> said:

> Example:
> 
> We have sda - sdb (8 drives) and setup up a raidtab to tell linux that
> sda and sde are the same sdc - sdd etc.
> Now for some random error the server restarts and the former sda (path to
> that drive) is no longer available. So now we have sda,sdb...sdg.
> We do not use autodetect, but raidstart to activate the raid.
> 
> now since the former sda is missing the raidtab does not reflect the
> actual setup. The raidtab would read, that sda and sdb are the same
> drive, which is not true in that case.
> 
> (The device-ordering would not be right for a real setup, but take it as
> an example and assume sda-sde sdb-sdf...)
> 
> Would the superblock prevent the wrong use of devices ?

I hope so. But yes, your setup would break spectularly because the devices
moved and the raids wouldn't go online. This shouldn't happen with the
autostart feature, I think.


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] 7+ messages in thread

* Re: md multipath with disk missing ?
  2002-09-09 13:50     ` Steve Mickeler
@ 2002-09-09 20:45       ` Alan Cox
  0 siblings, 0 replies; 7+ messages in thread
From: Alan Cox @ 2002-09-09 20:45 UTC (permalink / raw)
  To: Steve Mickeler; +Cc: Oktay Akbal, linux-kernel

On Mon, 2002-09-09 at 14:50, Steve Mickeler wrote:
> 
> Oktay,
> 
> You should really be using devfs in a situation such as yours, where you
> need device name consistency during reboots.
> 

There are a collection of nice tools that will run at boot up (eg from
initrd or from the rootfs mount) and generate a set of sun like /dev/
symlinks to the real scsi device by lun.

You don't need to play with experimental stuff like devfs


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

* Re: md multipath with disk missing ?
  2002-09-09 13:46   ` Oktay Akbal
  2002-09-09 13:50     ` Steve Mickeler
  2002-09-09 15:06     ` Lars Marowsky-Bree
@ 2002-09-10 22:51     ` Neil Brown
  2 siblings, 0 replies; 7+ messages in thread
From: Neil Brown @ 2002-09-10 22:51 UTC (permalink / raw)
  To: Oktay Akbal; +Cc: Lars Marowsky-Bree, linux-kernel

On Monday September 9, oktay.akbal@s-tec.de wrote:
> > > Does this only work with raid-autodetection ?
> > > When no autodetection is done and a drive is missing, would a raidstart
> > > kill the raid, since the drives are now available with other devices (sda
> > > instead of former sdb...) ?
> >
> > I don't understand your question, sorry.
> 
> Example:
> 
> We have sda - sdb (8 drives) and setup up a raidtab to tell linux that
> sda and sde are the same sdc - sdd etc.
> Now for some random error the server restarts and the former sda (path to
> that drive) is no longer available. So now we have sda,sdb...sdg.
> We do not use autodetect, but raidstart to activate the raid.

raidstart is broken by design and cannot cope with devices that change
device number (whether name in /dev is preserved or not.  There are
device numbers in the superblock which raidstart trusts).

This is one of the reasons that I wrote mdadm
   http://www.cse.unsw.edu.au/~neilb/source/mdadm/

This affects all raid levels, not just multipath.

NeilBrown

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

end of thread, other threads:[~2002-09-10 22:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-09 13:08 md multipath with disk missing ? Oktay Akbal
2002-09-09 13:27 ` Lars Marowsky-Bree
2002-09-09 13:46   ` Oktay Akbal
2002-09-09 13:50     ` Steve Mickeler
2002-09-09 20:45       ` Alan Cox
2002-09-09 15:06     ` Lars Marowsky-Bree
2002-09-10 22:51     ` Neil Brown

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