summaryrefslogtreecommitdiffstats
path: root/Grow.c
diff options
context:
space:
mode:
authorMateusz Kusiak <mateusz.kusiak@intel.com>2024-10-10 14:45:11 +0200
committerMariusz Tkaczyk <mtkaczyk@kernel.org>2025-01-13 10:24:49 +0100
commit70cba6ba8e83f2971d17ce6e36076d46191766d9 (patch)
treeaee2c2c22403f90b9673581423d57c9fc1c95510 /Grow.c
parentmdadm: Do not start reshape before switchroot (diff)
downloadmdadm-70cba6ba8e83f2971d17ce6e36076d46191766d9.tar.xz
mdadm-70cba6ba8e83f2971d17ce6e36076d46191766d9.zip
Better error messages for broken reshape
mdadm --grow --continue has no functionality to restore critical sectors if reshape was stopped during operation. This functionality belongs to assemble or incremental. This patch adds hints to error messages, to try to reassemble array in case of reshape failure to restore critical sector, so assemble can handle restoration. Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com>
Diffstat (limited to 'Grow.c')
-rw-r--r--Grow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Grow.c b/Grow.c
index 2719346c..818eb6a4 100644
--- a/Grow.c
+++ b/Grow.c
@@ -2387,6 +2387,7 @@ static int verify_reshape_position(struct mdinfo *info, int level)
} else if (info->reshape_progress > position) {
pr_err("Fatal error: array reshape was not properly frozen (expected reshape position is %llu, but reshape progress is %llu.\n",
position, info->reshape_progress);
+ pr_err("Reassemble array to try to restore critical sector.\n");
ret_val = -1;
} else {
dprintf("Reshape position in md and metadata are the same;");