[lvm-devel] [PATCH] clvmd: fix init script to start after dlm when running with corosync >= 2.0
Fabio M. Di Nitto
fdinitto at redhat.com
Mon Feb 6 13:04:57 UTC 2012
From: "Fabio M. Di Nitto" <fdinitto at redhat.com>
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.
Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>
---
configure.in | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/configure.in b/configure.in
index ab04ebb..ca7019a 100644
--- a/configure.in
+++ b/configure.in
@@ -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
--
1.7.7.6
More information about the lvm-devel
mailing list