RE: Auto Rebuild on hot-plug

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Labun, Marcin
Date: Thursday, March 25, 2010 - 8:04 am

Thank you for bringing-up this design.


I think that metadata keyword can be used to identify scope of devices to which the DOMAIN line applies.
For instance we could have:
DOMAIN path=glob-pattern metadata=imsm hotplug=mode1  spare-group=name1
DOMAIN path=glob-pattern metadata=0.90 hotplug=mode2  spare-group=name2

Keywords: 
Path, metadata and spare-group shall define to which arrays the hotplug definition (or other definition of action) applies. User could define any subset of it.
For instance to define that all imsm arrays shall use hotplug mode2 user shall define:
DOMAIN metadata=imsm hotplug=mode2

In above example user need not define spare-group in his/her configuration file for each array.

I also assume that each metadata handler can additionally sets its own rules of accepting the spare in the container. Rules can be derived from platform dependencies or metadata. Notice that user can disable platform specific constrains by defining IMSM_NO_PLATFORM environment variable. 


Maybe use the most specific match?


Please consider:
      spare_add - add any spare device that matches the metadata container/volume in case of native metadata regardless of array state, so later such a spare can be used in rebuild process.

Can we assume for all external metadata that spares added any container can be potentially moved between all container the same metadata?
I expect that this could be default behavior if no spare groups are defined for some metadata.
More over each metadata handler could impose build-in rules on spares assignment to specific container.

Thanks,
Marcin Labun
--
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)