From 30746f31dd1db63e0c83e6f8c7ae65dab3f69a4b Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 8 Oct 2013 11:15:05 +0200 Subject: [PATCH] vgrename: run fullscan For vgrename run full scan so the command is able to properly detect name collision. --- WHATS_NEW | 1 + tools/vgrename.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/WHATS_NEW b/WHATS_NEW index 5b3589081..93a156a00 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,6 +1,7 @@ Version 2.02.104 =================================== Improve message when unable to change discards setting on active thin pool. + Run full scan before vgrename operation to avoid any cache name collision. Version 2.02.103 - 4th October 2013 =================================== 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");