Re: Auto Rebuild on hot-plug

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dan Williams
Date: Tuesday, March 30, 2010 - 4:36 pm

On Tue, Mar 30, 2010 at 8:23 AM, Doug Ledford <dledford@redhat.com> wrote:

Great.


Ok, that sounds like a good split we'll keep you posted as well,


Why not 0.90 and 1.x for instead of 'md'?  These match the 'name'
attribute of struct superswitch.


I have been thinking that the path= option specifies controller paths,
not disk devices.  Something like "pci-0000:00:1f.2-scsi-[0-3]*" to
pick the first 4 ahci ports.  This also purposefully excludes virtual
devices dm/md.  I think we want to limit this functionality to
physical controller ports... or were you looking to incorporate
support for any block device?


Can't we limit the scope to the hotplug events we care about by
filtering the udev scripts based on the current contents of the
configuration file?  We already need a step in the process that
verifies if the configuration heeds the platform constraints.  So,
something like mdadm --activate-domains that validates the
configuration, generates the necessary udev scripts and enables
hotplug.


Yes, but this also reminds me about the multiple superblock case.  It
should usually only happen to people that experiment with different
metadata types, but we should catch and probably ignore drives that
have ambiguous/multiple superblocks.


Let's also limit this to ports that were recently (as specified by a
timeout= option to the DOMAIN) unplugged.  This limits the potential
damage.


Nod.


Modulo the ability to have a global enable / disable for domains via
something like --activate-domains


Sounds reasonable.


I think we have a consensus.  The wrinkle that comes to mind is the
case we talked about before where some ahci ports have been reserved
for jbod support in the DOMAIN configuration.  If the user plugs in an
imsm-metadata disk into a "jbod port" and reboots the option-rom will
assemble the array across the DOMAIN boundary.  You would need to put
explicit "passthrough" metadata on the disk to get the option-rom to
ignore it, but then you couldn't put another metadata type on that
disk.  So maybe we can't support the subset case and need to force the
platform's full expectation of the domain boundaries or honor the
DOMAIN line and let the user figure out/remember why this one raid
member slot does not respond to hotplug events.

Thanks for the detailed write up.

--
Dan
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Auto Rebuild on hot-plug, Neil Brown, (Wed Mar 24, 5:35 pm)
Re: Auto Rebuild on hot-plug, Michael Evans, (Wed Mar 24, 7:47 pm)
Re: Auto Rebuild on hot-plug, Luca Berra, (Thu Mar 25, 1:01 am)
Re: Auto Rebuild on hot-plug, John Robinson, (Thu Mar 25, 7:10 am)
RE: Auto Rebuild on hot-plug, Labun, Marcin, (Thu Mar 25, 8:04 am)
Re: Auto Rebuild on hot-plug, linbloke, (Thu Mar 25, 11:41 pm)
Re: Auto Rebuild on hot-plug, Majed B., (Fri Mar 26, 12:52 am)
Re: Auto Rebuild on hot-plug, Dan Williams, (Fri Mar 26, 5:37 pm)
Re: Auto Rebuild on hot-plug, Doug Ledford, (Mon Mar 29, 11:10 am)
Re: Auto Rebuild on hot-plug, John Robinson, (Mon Mar 29, 11:36 am)
Re: Auto Rebuild on hot-plug, Doug Ledford, (Mon Mar 29, 11:57 am)
Re: Auto Rebuild on hot-plug, Dan Williams, (Mon Mar 29, 2:36 pm)
Re: Auto Rebuild on hot-plug, John Robinson, (Mon Mar 29, 3:36 pm)
Re: Auto Rebuild on hot-plug, Dan Williams, (Mon Mar 29, 3:41 pm)
Re: Auto Rebuild on hot-plug, John Robinson, (Mon Mar 29, 3:46 pm)
Re: Auto Rebuild on hot-plug, Doug Ledford, (Mon Mar 29, 4:30 pm)
Re: Auto Rebuild on hot-plug, Doug Ledford, (Mon Mar 29, 4:35 pm)
Re: Auto Rebuild on hot-plug, Dan Williams, (Mon Mar 29, 5:46 pm)
Re: Auto Rebuild on hot-plug, John Robinson, (Tue Mar 30, 5:10 am)
Re: Auto Rebuild on hot-plug, Doug Ledford, (Tue Mar 30, 8:23 am)
Re: Auto Rebuild on hot-plug, Doug Ledford, (Tue Mar 30, 8:53 am)
RE: Auto Rebuild on hot-plug, Labun, Marcin, (Tue Mar 30, 10:47 am)
Re: Auto Rebuild on hot-plug, Dan Williams, (Tue Mar 30, 4:36 pm)
Re: Auto Rebuild on hot-plug, Dan Williams, (Tue Mar 30, 4:47 pm)
Re: Auto Rebuild on hot-plug, Neil Brown, (Tue Mar 30, 6:18 pm)
Re: Auto Rebuild on hot-plug, Neil Brown, (Tue Mar 30, 6:26 pm)
Re: Auto Rebuild on hot-plug, Neil Brown, (Tue Mar 30, 6:30 pm)
Re: Auto Rebuild on hot-plug, Neil Brown, (Tue Mar 30, 6:35 pm)
Re: Auto Rebuild on hot-plug, Neil Brown, (Tue Mar 30, 6:42 pm)
Re: Auto Rebuild on hot-plug, Michael Evans, (Tue Mar 30, 7:46 pm)
Re: Auto Rebuild on hot-plug, Neil Brown, (Tue Mar 30, 9:53 pm)
Re: Auto Rebuild on hot-plug, Luca Berra, (Tue Mar 30, 11:10 pm)
Re: Auto Rebuild on hot-plug, John Robinson, (Fri Apr 2, 4:01 am)