]> sourceware.org Git - lvm2.git/commitdiff
In the new corosync world, dlm is a standalone service.
authorFabio M. Di Nitto <fdinitto@redhat.com>
Mon, 13 Feb 2012 05:24:57 +0000 (05:24 +0000)
committerFabio M. Di Nitto <fdinitto@redhat.com>
Mon, 13 Feb 2012 05:24:57 +0000 (05:24 +0000)
Fix clvmd init script to Require dlm service when building for the
new corosync or clvmd will fail to start.

WHATS_NEW
configure.in

index 7c58d480a3d4675d16f932127cd5ba03cbe87829..05f9f51f321cf7fef4bde24d111a141699991d54 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.92 - 
 ====================================
+  Add clvmd init dependency on dlm service when running with new corosync.
 
 Version 2.02.91 - 12th February 2012
 ====================================
index ab04ebbdd34d02708a3c1fd8b8c5f8d927fea259..ca7019ae66f2fbeea4e6907c4486de802fb78b68 100644 (file)
@@ -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
This page took 0.040197 seconds and 5 git commands to generate.