summaryrefslogtreecommitdiff
path: root/tools/vgremove.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/vgremove.c')
-rw-r--r--tools/vgremove.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/vgremove.c b/tools/vgremove.c
index e6df559a0..7c1f0ee4e 100644
--- a/tools/vgremove.c
+++ b/tools/vgremove.c
@@ -94,6 +94,10 @@ int vgremove(struct cmd_context *cmd, int argc, char **argv)
return EINVALID_CMD_LINE;
}
+ /*
+ * Needed to change the global VG namespace,
+ * and to change the set of orphan PVs.
+ */
if (!lockd_gl(cmd, "ex", LDGL_UPDATE_NAMES))
return ECMD_FAILED;