diff --git a/tools/toollib.c b/tools/toollib.c index 4856f02db..26810b202 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -97,6 +97,8 @@ int become_daemon(struct cmd_context *cmd, int skip_lvm) strncpy(*cmd->argv, "(lvm2)", strlen(*cmd->argv)); + lvmetad_disconnect(); + if (!skip_lvm) { reset_locking(); lvmcache_destroy(cmd, 1, 1);