From 27c16a70b13c0e7d1c16dd0539f781839f6f8aec Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Fri, 30 Jul 2021 02:14:39 +0100 Subject: [PATCH] uvol: lvm: make 'up' call reliable Changing a volume right after activation doesn't work well due to some caching or race-condition issue. Perform activation as last lvchange operation as a work-around. Signed-off-by: Daniel Golle --- utils/uvol/files/lvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/uvol/files/lvm.sh b/utils/uvol/files/lvm.sh index c06e2f102..20ad0bcb5 100644 --- a/utils/uvol/files/lvm.sh +++ b/utils/uvol/files/lvm.sh @@ -179,8 +179,8 @@ activatevol() { *) [ "$lv_active" = "active" ] && return 0 uvol_uci_commit "$1" - lvm_cmd lvchange -a y "$lv_full_name" || return $? lvm_cmd lvchange -k n "$lv_full_name" || return $? + lvm_cmd lvchange -a y "$lv_full_name" || return $? return 0 ;; esac