summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2013-10-08 11:15:05 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2013-10-08 13:39:11 +0200
commit30746f31dd1db63e0c83e6f8c7ae65dab3f69a4b (patch)
tree75dec067232448e5b4d1045b125edcf468cafc68 /tools
parent4806f38d703c2d7cd01e0adc49505ccb7d010a17 (diff)
downloadlvm2-30746f31dd1db63e0c83e6f8c7ae65dab3f69a4b.tar.gz
vgrename: run fullscan
For vgrename run full scan so the command is able to properly detect name collision.
Diffstat (limited to 'tools')
-rw-r--r--tools/vgrename.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/vgrename.c b/tools/vgrename.c
index 154a6f37b..b5e778f58 100644
--- a/tools/vgrename.c
+++ b/tools/vgrename.c
@@ -83,6 +83,8 @@ static int vg_rename_path(struct cmd_context *cmd, const char *old_vg_path,
if (!lvmetad_vg_list_to_lvmcache(cmd))
stack;
+ lvmcache_label_scan(cmd, 2);
+
/* Avoid duplicates */
if (!(vgids = get_vgids(cmd, 0)) || dm_list_empty(vgids)) {
log_error("No complete volume groups found");