diff options
author | Alasdair Kergon <agk@redhat.com> | 2011-02-28 19:35:09 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2011-02-28 19:35:09 +0000 |
commit | 07e711ecaa2959e63e8f7e00a3185c6c3200f89f (patch) | |
tree | 8fdd46b12013b1561bce78130002e757ee637f43 /tools/pvremove.c | |
parent | da721ac1ef2003c158accf464df318250ae8b6e1 (diff) | |
download | lvm2-07e711ecaa2959e63e8f7e00a3185c6c3200f89f.tar.gz |
Improve pvremove error message when PV belongs to a VG.
Diffstat (limited to 'tools/pvremove.c')
-rw-r--r-- | tools/pvremove.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/pvremove.c b/tools/pvremove.c index ace3c1d00..36da62da2 100644 --- a/tools/pvremove.c +++ b/tools/pvremove.c @@ -64,8 +64,8 @@ static int pvremove_check(struct cmd_context *cmd, const char *name) /* Allow partial & exported VGs to be destroyed. */ /* we must have -ff to overwrite a non orphan */ if (arg_count(cmd, force_ARG) < 2) { - log_error("Can't pvremove physical volume \"%s\" of " - "volume group \"%s\" without -ff", name, pv_vg_name(pv)); + log_error("PV %s belongs to Volume Group %s so please use vgreduce first.", name, pv_vg_name(pv)); + log_error("(If you are certain you need pvremove, then confirm by using --force twice.)"); return 0; } |