Re: Auto Rebuild on hot-plug

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: John Robinson
Date: Tuesday, March 30, 2010 - 5:10 am

On 30/03/2010 00:35, Doug Ledford wrote:

I wouldn't want to take the server down to shuffle the drives or cables. 
But my point really is that if I have decided that I would want all the 
drives in my chassis to have identical partition tables and carry an 
active mirror of an array - in my example /boot - I would like to be 
able to configure the hotplug arrangement to make it so, rather than 
leaving me to have to manually regenerate the partition table, install 
grub, add the spare and perhaps even grow the array.

Of course this is a per-installation policy decision of what to do when 
an extra drive is added to a non-degraded array, I'm certainly not 
suggesting this should be the default action, though I think it would be 
nice if it were possible to configure an action in this case.


I quite agree. All I'm getting at is that I'd like to be able to say 
something in my mdadm.conf or wherever to say what I'd like done. This 
might mean that I end up something like the following:
DOMAIN path=pci-0000:00:1f.2-scsi-[0-4]:0:0:0       action=include
DOMAIN path=pci-0000:00:1f.2-scsi-[0-4]:0:0:0-part1 action=grow
DOMAIN path=pci-0000:00:1f.2-scsi-[0-4]:0:0:0-part2 action=replace
DOMAIN path=pci-0000:00:1f.2-scsi-[0-4]:0:0:0-part3 action=include

The first line gets the partition table and grub boot code regenerated 
even when nothing's degraded. This in turn may trigger the other lines. 
In the second line my action=grow means fix up my /boot if it's degraded 
and both --add and --grow so it gets mirrored onto a fresh disc. The 
third lines says fix up my swap array if it's degraded, but leave alone 
otherwise. The fourth line says fix up my data array if it's degraded, 
and add as a spare if it's a fresh disc. This last lets me decide later 
what (if any) kind of --grow I want to do - make it larger or reshape 
from RAID-5 to RAID-6.

But as you say, the default should be
DOMAIN path=* action=incremental

and the installer (automated or human) probably wants to edit that to 
include at least
DOMAIN path=something action=replace
to take advantage of this auto-rebuild on hot-plug feature.

Sorry if I'm being long-winded, but hopefully you can see how I'd like 
to be able to configure things. In the first instance, though, just 
getting as far as the replace option would be great.

Cheers,

John.

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