Skip to contentSkip to conversation

clvmd: fix init script to start after dlm when running with corosync >= 2.0

PATCH New Fabio M. Di Nitto 1 participant 1 message Feb 6, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clvmd: fix init script to start after dlm when running with corosync >= 2.0

From: "Fabio M. Di Nitto" <[email protected]>

With new corosync, dlm is a standalone service provided by dlm.service and/or dlm.init. clvmd need to start after dlm has been initialized.

---
 configure.in |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
configure.in +9 -0
index ab04ebb..ca7019a 100644
@@ -675,6 +675,15 @@ if test x$CLVMD = xall; then
 	fi
 fi
 
+dnl -- Fixup CLVMD_CMANAGERS with new corosync
+dnl -- clvmd built with corosync >= 2.0 needs dlm (either init or systemd service)
+dnl -- to be started.
+if [[ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]]; then
+   if test x$HAVE_CMAP = xyes; then
+	CLVMD_CMANAGERS="$CLVMD_CMANAGERS dlm"
+   fi
+fi
+
 ################################################################################
 dnl -- clvmd pidfile
 if test "x$CLVMD" != xnone; then
Signature · 1 line
1.7.7.6