Blame SOURCES/bz1643307-LVM-activate-dont-fail-initial-probe.patch

b94b9d
From 848d62c32b355a03c2ad8d246eb3e34b04af07ca Mon Sep 17 00:00:00 2001
b94b9d
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
b94b9d
Date: Wed, 9 Jan 2019 16:49:41 +0100
b94b9d
Subject: [PATCH] LVM-activate: dont fail initial probe
b94b9d
b94b9d
---
b94b9d
 heartbeat/LVM-activate | 4 ++++
b94b9d
 1 file changed, 4 insertions(+)
b94b9d
b94b9d
diff --git a/heartbeat/LVM-activate b/heartbeat/LVM-activate
b94b9d
index f46932c1c..49ab717a3 100755
b94b9d
--- a/heartbeat/LVM-activate
b94b9d
+++ b/heartbeat/LVM-activate
b94b9d
@@ -323,6 +323,10 @@ lvmlockd_check()
b94b9d
 
b94b9d
 	# Good: lvmlockd is running, and clvmd is not running
b94b9d
 	if ! pgrep lvmlockd >/dev/null 2>&1 ; then
b94b9d
+		if ocf_is_probe; then
b94b9d
+			exit $OCF_NOT_RUNNING
b94b9d
+		fi
b94b9d
+
b94b9d
 		ocf_exit_reason "lvmlockd daemon is not running!"
b94b9d
 		exit $OCF_ERR_CONFIGURED
b94b9d
 	fi