linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* raiddetect support for Linux software RAID?
@ 2004-05-01 15:54 Kevin P. Fleming
  2004-05-04 20:42 ` Mike Snitzer
  2004-05-05  0:34 ` Kevin P. Fleming
  0 siblings, 2 replies; 3+ messages in thread
From: Kevin P. Fleming @ 2004-05-01 15:54 UTC (permalink / raw)
  To: linux-hotplug

I'm wondering if anyone has planned on putting Linux software RAID (md) 
detection into the raiddetect tool. Currently I use mdadm to scan all 
devices to look for my RAID(s), but it's got some problems:

- it's not hotplug driven, it has to be run over all devices
- it's noisy because it wants to scan everything in /dev
- i can't see what's there without trying to activate it

raiddetect would be a nice addition, I would be able to tell that a 
complete array has appeared and just use mdadm to start it up. Thoughts?



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id149&alloc_idÅ66&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: raiddetect support for Linux software RAID?
  2004-05-01 15:54 raiddetect support for Linux software RAID? Kevin P. Fleming
@ 2004-05-04 20:42 ` Mike Snitzer
  2004-05-05  0:34 ` Kevin P. Fleming
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Snitzer @ 2004-05-04 20:42 UTC (permalink / raw)
  To: linux-hotplug

On Sat, May 01 2004 at 09:54,
Kevin P. Fleming <kpfleming@backtobasicsmgmt.com> wrote:

> I'm wondering if anyone has planned on putting Linux software RAID (md) 
> detection into the raiddetect tool. Currently I use mdadm to scan all 
> devices to look for my RAID(s), but it's got some problems:
> 
> - it's not hotplug driven, it has to be run over all devices
> - it's noisy because it wants to scan everything in /dev
> - i can't see what's there without trying to activate it
> 
> raiddetect would be a nice addition, I would be able to tell that a 
> complete array has appeared and just use mdadm to start it up. Thoughts?

The notion of a "complete array" is somewhat difficult to define in terms
of hotplug.  Traditionally a raid array is intialized _after_ all block
devices have been detected and made available.  The piece-wise
availability of hotplug detected block devices makes it hard to know when
its safe/right to initialize the raid array.

E.g. raid initialization special case: What if a raid array spans two
disk controllers; and the first controller happens to have enough disks
for the array to opperate in degraded mode? Once the other controller
makes its disks available the raid could already be online and the disks
that got left behind would need to re-sync.  This is a problem common to
all software raid and hotplug; regardless of whether your using Linux's MD
or DM (EVMS).

If anyone has great ideas on ways to implement a barrier for the raid
initialization special case (and any others I may be overlooking) let me
know.

Mike




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id149&alloc_idÅ66&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: raiddetect support for Linux software RAID?
  2004-05-01 15:54 raiddetect support for Linux software RAID? Kevin P. Fleming
  2004-05-04 20:42 ` Mike Snitzer
@ 2004-05-05  0:34 ` Kevin P. Fleming
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin P. Fleming @ 2004-05-05  0:34 UTC (permalink / raw)
  To: linux-hotplug

Mike Snitzer wrote:

> E.g. raid initialization special case: What if a raid array spans two
> disk controllers; and the first controller happens to have enough disks
> for the array to opperate in degraded mode? Once the other controller
> makes its disks available the raid could already be online and the disks
> that got left behind would need to re-sync.  This is a problem common to
> all software raid and hotplug; regardless of whether your using Linux's MD
> or DM (EVMS).

That is a very valid point; my initial attempts at this always allow 
mdadm to make the final choice. If the array is missing disks (even a 
single disk), and I don't pass --force and --run, it will stop at 
assembling the array but will not try to start it. A subsequent 
--assemble with more disks should add the additional needed disks, 
although I have not tried that.

I think this can be handled suitably in a hotplug script; each disk that 
appears could be "assembled" into whatever array it belongs in, if 
possible. An attempt could be made to start the array, but only if it 
will run in non-degraded mode.


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id149&alloc_idÅ66&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

end of thread, other threads:[~2004-05-05  0:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-01 15:54 raiddetect support for Linux software RAID? Kevin P. Fleming
2004-05-04 20:42 ` Mike Snitzer
2004-05-05  0:34 ` Kevin P. Fleming

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