linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* triggering udev rules based on the state of udevd
@ 2008-07-02 15:15 Bill Nottingham
  2008-07-02 16:13 ` Kay Sievers
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Bill Nottingham @ 2008-07-02 15:15 UTC (permalink / raw)
  To: linux-hotplug

When using udev to automatically assemble MD devices (using mdadm --incremental),
we've come across the following conundrum:

- If you just pass --incremental to mdadm, devices will only be started when all
  members are present; you can never start a degraded device)

- If you pass --run (to solve this), devices will be started when the minimum
  # of devices is present. This causes the array to always start in degraded
  mode, causing unnecessary resyncs.

There doesn't seem to be a good happy medium that allows for degraded assembly
when needed, but normal assembly in most cases. One potential way to do this
would be to queue events such as these RAID-handling events as 'idle', or
'end of queue', such that they are always run at the end of queue after other
events have run. Is that sort of thing possible?

Bill

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

end of thread, other threads:[~2008-07-03 16:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-02 15:15 triggering udev rules based on the state of udevd Bill Nottingham
2008-07-02 16:13 ` Kay Sievers
2008-07-02 16:26 ` Bill Nottingham
2008-07-02 16:32 ` Kay Sievers
2008-07-02 16:34 ` Bill Nottingham
2008-07-02 16:44 ` Bryan Kadzban
2008-07-02 16:45 ` Bill Nottingham
2008-07-02 22:12 ` Bryan Kadzban
2008-07-02 22:35 ` Hai Zaar
2008-07-03 13:09 ` Bill Nottingham
2008-07-03 16:29 ` Scott James Remnant

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