On Thu, 02 Dec 2010 09:19:20 +0100 Adam Kwolek <adam.kwolek@xxxxxxxxx> wrote: > Spares are used by Online Capacity Expansion to expand array. > To run expansion on raid0, spares have to be added to raid0 volume also. > Raid0 cannot have spares (no mdmon runs for raid0 array). > To do this, takeover to raid5 (and back) is used. mdmon runs temporary for raid5 and spare drives can be added to container. > > Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx> This is just wrong. If mdmon is running (maybe because some other array in the container needs it) then you add a spare to the container and send mdmon a metadata update to apply. If mdmon is not running, then you add a spare to the container and apply a metadata update directly in mdadm. There is no need to switch to raid5 and back just to add a spare. NeilBrown -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html