Reshape can be run for external metadata for monitored array/container only. In case when array/container is not monitored run mdmon for it. Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx> --- Grow.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/Grow.c b/Grow.c index 2b2cb5a..4d2c361 100644 --- a/Grow.c +++ b/Grow.c @@ -3672,6 +3672,21 @@ int Grow_continue_command(char *devname, int fd, } sysfs_init(content, fd2, mdstat->devnum); + + /* start mdmon in case it is not run + */ + if (!mdmon_running(container_dev)) + start_mdmon(container_dev); + ping_monitor(container); + + if (mdmon_running(container_dev)) + st->update_tail = &st->updates; + else { + fprintf(stderr, Name ": No mdmon found. " + "Grow cannot continue.\n"); + ret_val = 1; + goto Grow_continue_command_exit; + } } /* continue reshape -- 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