archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] [PATCH] [vgreduce] add suggestion message for mirror LVs
@ 2020-01-15  2:44 Heming Zhao
  0 siblings, 0 replies; only message in thread
From: Heming Zhao @ 2020-01-15  2:44 UTC (permalink / raw)
  To: zkabelac, teigland, linux-lvm; +Cc: Heming Zhao

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 <>
 tools/vgreduce.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/vgreduce.c b/tools/vgreduce.c
index b001ccbbd7..4a4202e868 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.");

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-15  2:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-15  2:44 [linux-lvm] [PATCH] [vgreduce] add suggestion message for mirror LVs Heming Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).