mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Based on auto-detection or user requested cluster managers for clvmd,
set appropriate Required-Start and Required-Stop at configure time. Reorder the checks for user selected cluster managers to match auto detected ones, to be consistent in the output. Add special case for qdiskd that´s started after cman/lock_gulmd for RHEL-4/RHEL-5.
This commit is contained in:
parent
e9848871d6
commit
34b6075d68
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.74 -
|
Version 2.02.74 -
|
||||||
==================================
|
==================================
|
||||||
|
Automatically generate LSB Requires-Start for clvmd init script.
|
||||||
Fix return code of pvmove --abort PV.
|
Fix return code of pvmove --abort PV.
|
||||||
Fix pvmove --abort to remove even for empty pvmove LV.
|
Fix pvmove --abort to remove even for empty pvmove LV.
|
||||||
Add configure --with-default-data-alignment.
|
Add configure --with-default-data-alignment.
|
||||||
|
41
configure.in
41
configure.in
@ -401,19 +401,33 @@ if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
|
|||||||
pkg_config_init
|
pkg_config_init
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl -- Express clvmd init script Required-Start / Required-Stop
|
||||||
|
CLVMD_CMANAGERS=""
|
||||||
|
dnl -- On RHEL4/RHEL5, qdiskd is started from a separate init script.
|
||||||
|
dnl -- Enable if we are build for either cman or gulm.
|
||||||
|
CLVMD_NEEDS_QDISKD=no
|
||||||
|
|
||||||
dnl -- define build types
|
dnl -- define build types
|
||||||
if [[ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]]; then
|
if [[ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]]; then
|
||||||
BUILDGULM=yes
|
BUILDGULM=yes
|
||||||
fi
|
CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
|
||||||
if [[ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]]; then
|
CLVMD_NEEDS_QDISKD=yes
|
||||||
BUILDCOROSYNC=yes
|
|
||||||
fi
|
|
||||||
if [[ `expr x"$CLVMD" : '.*openais.*'` != 0 ]]; then
|
|
||||||
BUILDOPENAIS=yes
|
|
||||||
fi
|
fi
|
||||||
if [[ `expr x"$CLVMD" : '.*cman.*'` != 0 ]]; then
|
if [[ `expr x"$CLVMD" : '.*cman.*'` != 0 ]]; then
|
||||||
BUILDCMAN=yes
|
BUILDCMAN=yes
|
||||||
|
CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
|
||||||
|
CLVMD_NEEDS_QDISKD=yes
|
||||||
|
fi
|
||||||
|
if [[ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]]; then
|
||||||
|
BUILDCOROSYNC=yes
|
||||||
|
CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
|
||||||
|
fi
|
||||||
|
if [[ `expr x"$CLVMD" : '.*openais.*'` != 0 ]]; then
|
||||||
|
BUILDOPENAIS=yes
|
||||||
|
CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
|
||||||
|
fi
|
||||||
|
if test x$CLVMD_NEEDS_QDISKD != xno; then
|
||||||
|
CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl -- sanity check around user selection
|
dnl -- sanity check around user selection
|
||||||
@ -568,18 +582,25 @@ if test x$CHECKDLM = xyes; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
dnl -- If we are autodetecting, we need to re-create
|
dnl -- If we are autodetecting, we need to re-create
|
||||||
dnl -- the depedencies checks and set a proper CLVMD.
|
dnl -- the depedencies checks and set a proper CLVMD,
|
||||||
|
dnl -- together with init script Required-Start/Stop entries.
|
||||||
if test x$CLVMD = xall; then
|
if test x$CLVMD = xall; then
|
||||||
CLVMD=none
|
CLVMD=none
|
||||||
|
CLVMD_CMANAGERS=""
|
||||||
|
CLVMD_NEEDS_QDISKD=no
|
||||||
if test x$HAVE_CCS = xyes && \
|
if test x$HAVE_CCS = xyes && \
|
||||||
test x$HAVE_GULM = xyes; then
|
test x$HAVE_GULM = xyes; then
|
||||||
AC_MSG_RESULT([Enabling clvmd gulm cluster manager])
|
AC_MSG_RESULT([Enabling clvmd gulm cluster manager])
|
||||||
CLVMD="$CLVMD,gulm"
|
CLVMD="$CLVMD,gulm"
|
||||||
|
CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
|
||||||
|
CLVMD_NEEDS_QDISKD=yes
|
||||||
fi
|
fi
|
||||||
if test x$HAVE_CMAN = xyes && \
|
if test x$HAVE_CMAN = xyes && \
|
||||||
test x$HAVE_DLM = xyes; then
|
test x$HAVE_DLM = xyes; then
|
||||||
AC_MSG_RESULT([Enabling clvmd cman cluster manager])
|
AC_MSG_RESULT([Enabling clvmd cman cluster manager])
|
||||||
CLVMD="$CLVMD,cman"
|
CLVMD="$CLVMD,cman"
|
||||||
|
CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
|
||||||
|
CLVMD_NEEDS_QDISKD=yes
|
||||||
fi
|
fi
|
||||||
if test x$HAVE_COROSYNC = xyes && \
|
if test x$HAVE_COROSYNC = xyes && \
|
||||||
test x$HAVE_QUORUM = xyes && \
|
test x$HAVE_QUORUM = xyes && \
|
||||||
@ -588,12 +609,17 @@ if test x$CLVMD = xall; then
|
|||||||
test x$HAVE_CONFDB = xyes; then
|
test x$HAVE_CONFDB = xyes; then
|
||||||
AC_MSG_RESULT([Enabling clvmd corosync cluster manager])
|
AC_MSG_RESULT([Enabling clvmd corosync cluster manager])
|
||||||
CLVMD="$CLVMD,corosync"
|
CLVMD="$CLVMD,corosync"
|
||||||
|
CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
|
||||||
fi
|
fi
|
||||||
if test x$HAVE_COROSYNC = xyes && \
|
if test x$HAVE_COROSYNC = xyes && \
|
||||||
test x$HAVE_CPG = xyes && \
|
test x$HAVE_CPG = xyes && \
|
||||||
test x$HAVE_SALCK = xyes; then
|
test x$HAVE_SALCK = xyes; then
|
||||||
AC_MSG_RESULT([Enabling clvmd openais cluster manager])
|
AC_MSG_RESULT([Enabling clvmd openais cluster manager])
|
||||||
CLVMD="$CLVMD,openais"
|
CLVMD="$CLVMD,openais"
|
||||||
|
CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
|
||||||
|
fi
|
||||||
|
if test x$CLVMD_NEEDS_QDISKD != xno; then
|
||||||
|
CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
|
||||||
fi
|
fi
|
||||||
if test x$CLVMD = xnone; then
|
if test x$CLVMD = xnone; then
|
||||||
AC_MSG_RESULT([Disabling clvmd build. No cluster manager detected.])
|
AC_MSG_RESULT([Disabling clvmd build. No cluster manager detected.])
|
||||||
@ -1238,6 +1264,7 @@ AC_SUBST(CLDNOWHOLEARCHIVE)
|
|||||||
AC_SUBST(CLDWHOLEARCHIVE)
|
AC_SUBST(CLDWHOLEARCHIVE)
|
||||||
AC_SUBST(CLUSTER)
|
AC_SUBST(CLUSTER)
|
||||||
AC_SUBST(CLVMD)
|
AC_SUBST(CLVMD)
|
||||||
|
AC_SUBST(CLVMD_CMANAGERS)
|
||||||
AC_SUBST(CMAN_CFLAGS)
|
AC_SUBST(CMAN_CFLAGS)
|
||||||
AC_SUBST(CMAN_LIBS)
|
AC_SUBST(CMAN_LIBS)
|
||||||
AC_SUBST(CMDLIB)
|
AC_SUBST(CMDLIB)
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
#
|
#
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: clvmd
|
# Provides: clvmd
|
||||||
# Required-Start: $local_fs
|
# Required-Start: $local_fs@CLVMD_CMANAGERS@
|
||||||
# Required-Stop: $local_fs
|
# Required-Stop: $local_fs@CLVMD_CMANAGERS@
|
||||||
# Short-Description: This service is Clusterd LVM Daemon.
|
# Short-Description: This service is Clusterd LVM Daemon.
|
||||||
# Description: Cluster daemon for userland logical volume management tools.
|
# Description: Cluster daemon for userland logical volume management tools.
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
Loading…
Reference in New Issue
Block a user