From 2ee105089a261f5db2ba8b93c30708ba66dd1a01 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 22 Jan 2018 11:39:05 +0100 Subject: [PATCH] python: some LVs do need exclusive activation --- liblvm/lvm_lv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/liblvm/lvm_lv.c b/liblvm/lvm_lv.c index 20ceda30f..e5a35c4e9 100644 --- a/liblvm/lvm_lv.c +++ b/liblvm/lvm_lv.c @@ -304,7 +304,9 @@ static int _lvm_lv_activate(lv_t lv) return -1; } - if (lv_is_origin(lv)) { + if (lv_is_origin(lv) || + lv_is_pvmove(lv) || + seg_only_exclusive(first_seg(lv))) { log_verbose("Activating logical volume \"%s\" " "exclusively", lv->name); if (!activate_lv_excl(lv->vg->cmd, lv)) {