summaryrefslogtreecommitdiff
path: root/tools/vgreduce.c
diff options
context:
space:
mode:
authorHeming Zhao <heming.zhao@suse.com>2020-01-15 02:44:30 +0000
committerDavid Teigland <teigland@redhat.com>2020-01-15 09:46:54 -0600
commitd53bfae273677975bd805bfaa3d7e7cd995aaa52 (patch)
tree5f19b4dc98c07233490b6750953604cffeb43a7a /tools/vgreduce.c
parent2f6d0a6408220a1f6a96a9f39779846578d88b8c (diff)
downloadlvm2-d53bfae273677975bd805bfaa3d7e7cd995aaa52.tar.gz
add suggestion message for mirror LVs
Currently the error messages are not clear. This very easy to guide user to execute "--removemissing --force", it is dangerous and will make the LVs to be destroied. Signed-off-by: Zhao Heming <heming.zhao@suse.com>
Diffstat (limited to 'tools/vgreduce.c')
-rw-r--r--tools/vgreduce.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/vgreduce.c b/tools/vgreduce.c
index b001ccbbd..4a4202e86 100644
--- a/tools/vgreduce.c
+++ b/tools/vgreduce.c
@@ -67,6 +67,8 @@ static int _consolidate_vg(struct cmd_context *cmd, struct volume_group *vg)
cmd->handles_missing_pvs = 1;
log_error("There are still partial LVs in VG %s.", vg->name);
log_error("To remove them unconditionally use: vgreduce --removemissing --force.");
+ log_error("To remove them unconditionally from mirror LVs use: vgreduce"
+ " --removemissing --mirrorsonly --force.");
log_warn("WARNING: Proceeding to remove empty missing PVs.");
}