This patches enables raid5/single array Online Capacity Expansion using container operation. I've decided to post smaller series to allow us for closer/adaptive work. Main changes in code: - metadata is reloaded between reshape_super() and reshape_array(), reshape_super() doesn't modify local anchor - disk slot is set by md (index == -1), this propably has to be fixed in md - suspend_lo has to be set to suspend_hi value after reshape to unblock array - fixes The main problems I can see: - cannot add spare disks to container (add spare to raid0 works), I've payed no attantion for it so far as I'm using workaround for tests: create container with bigger disks number before any array is created. - adding disks to md with set index/slot should be fixed/investigated in md (for details look patches description) - array cannot be opened excl. in reshape_array() As I've put information in patch, it is possible caused by mdmon, I cannot see double array open operation in mdadm. On mdadm begin open_dev_excl() is possible. BR Adam --- Adam Kwolek (13): FIX: Fill sys_name for disk add FIX: parity disks use for redundant levels only FIX/WORKAROUND: Arrays cannot be opened exclusively FIX: Cannot unmount array after reshape Finalize reshape after adding disks to array FIX/WORKAROUND: added disks are not used by reshape process /md/ FIX: wrong flags are passed to function imsm: FIX: update disks status in container_contents() msm: FIX: when mdadm reloads anchor not need for local modyfication FIX: load anchor to get all information imsm: FIX: when monitor is active post update imsm: FIX: allow for container reshape any unset size value Manage reshape process in manage_reshape vector. Grow.c | 29 +++++++++++++++++++++-------- monitor.c | 11 +++++++++++ super-intel.c | 30 +++++++++++++----------------- 3 files changed, 45 insertions(+), 25 deletions(-) -- Signature -- 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