From 4e11dfe3ca97a663bf638b8becdecddaeb6fe641 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Thu, 19 Nov 2009 13:44:37 +0000 Subject: [PATCH] In case we refuse to continue due to missing PVs, print a hint about using vgreduce --removemissing to remedy the situation. --- lib/metadata/metadata.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c index 5d57c53d5..601d1552d 100644 --- a/lib/metadata/metadata.c +++ b/lib/metadata/metadata.c @@ -3378,8 +3378,8 @@ static struct volume_group *_vg_lock_and_read(struct cmd_context *cmd, const cha if (!cmd->handles_missing_pvs && vg_missing_pv_count(vg) && (lock_flags & LCK_WRITE)) { - log_error("Cannot change VG %s while PVs are missing!", - vg->name); + log_error("Cannot change VG %s while PVs are missing.", vg->name); + log_error("Consider vgreduce --removemissing."); failure |= FAILED_INCONSISTENT; /* FIXME new failure code here? */ goto_bad; }