clvmd: fix init script to start after dlm when running with corosync >= 2.0
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.
Signed-off-by Fabio M. Di Nitto <[email protected]>
--- configure.in | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
configure.in +9 -0
@@ -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