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

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