RELEASE=2.0
-RHCVER=3.1.8
-RHCBRANCH=origin/STABLE31
+RHCVER=3.1.92
+RHCBRANCH=origin/STABLE32
RHCDIR=cluster-${RHCVER}
RHCSRC=${RHCDIR}.tar.gz
PACKAGE=redhat-cluster-pve
-PKGREL=3
+PKGREL=1
DEBS= \
${PACKAGE}_${RHCVER}-${PKGREL}_amd64.deb \
+redhat-cluster-pve (3.1.92-1) unstable; urgency=low
+
+ * update to STABLE32 3.1.92
+
+ -- Proxmox Support Team <support@proxmox.com> Wed, 13 Jun 2012 15:48:46 +0200
+
redhat-cluster-pve (3.1.8-3) unstable; urgency=low
* do not join fence domain by default
Index: new/config/tools/xml/cluster.rng.in.head
===================================================================
---- new.orig/config/tools/xml/cluster.rng.in.head 2011-12-13 12:55:22.000000000 +0100
-+++ new/config/tools/xml/cluster.rng.in.head 2011-12-13 12:56:30.000000000 +0100
-@@ -988,6 +988,9 @@
+--- new.orig/config/tools/xml/cluster.rng.in.head 2012-06-13 15:50:21.000000000 +0200
++++ new/config/tools/xml/cluster.rng.in.head 2012-06-13 15:59:27.000000000 +0200
+@@ -997,6 +997,9 @@
<zeroOrMore>
<ref name="VM"/>
</zeroOrMore>
Index: new/cman/init.d/cman.in
===================================================================
---- new.orig/cman/init.d/cman.in 2011-12-22 09:52:56.000000000 +0100
-+++ new/cman/init.d/cman.in 2011-12-22 09:55:29.000000000 +0100
-@@ -19,6 +19,8 @@
- # set secure PATH
- PATH="/bin:/usr/bin:/sbin:/usr/sbin:@SBINDIR@"
+--- new.orig/cman/init.d/cman.in 2012-06-13 15:50:21.000000000 +0200
++++ new/cman/init.d/cman.in 2012-06-13 15:55:37.000000000 +0200
+@@ -22,6 +22,8 @@
+ # save invokation for rollback ops
+ thisinvokation="$0"
+test -x @SBINDIR@/cman_tool || exit 0
+
chkconfig2()
{
case "$1" in
-@@ -129,7 +131,7 @@
- # set to "yes", then the script will attempt to join the fence domain.
- # If FENCE_JOIN is set to any other value, the default behavior is
- # to join the fence domain (equivalent to "yes").
+@@ -138,7 +140,7 @@
+ # When setting FENCE_JOIN to "no", it is important to check
+ # DLM_CONTROLD_OPTS to reflect expected behavior regarding fencing
+ # and quorum.
-[ -z "$FENCE_JOIN" ] && FENCE_JOIN="yes"
+[ -z "$FENCE_JOIN" ] && FENCE_JOIN="no"
--- /dev/null
+Index: new/rgmanager/init.d/cpglockd.in
+===================================================================
+--- new.orig/rgmanager/init.d/cpglockd.in 2012-06-13 16:17:08.000000000 +0200
++++ new/rgmanager/init.d/cpglockd.in 2012-06-13 16:25:43.000000000 +0200
+@@ -6,10 +6,10 @@
+ #
+ ### BEGIN INIT INFO
+ # Provides: cpglockd
+-# Required-Start: cman
+-# Required-Stop: cman
+-# Default-Start:
+-# Default-Stop:
++# Required-Start: $remote_fs cman
++# Required-Stop: $remote_fs cman
++# Default-Start: 2 3 4 5
++# Default-Stop: 0 1 6
+ # Short-Description: Starts and stops the CPG lock daemon
+ # Description: Starts and stops the CPG lock daemon
+ ### END INIT INFO
+@@ -53,9 +53,7 @@
+
+ # deb based distros
+ if [ -d /etc/default ]; then
+- [ -f /etc/default/cluster ] && . /etc/default/cluster
+- [ -f /etc/default/rgmanager ] && . /etc/default/rgmanager
+- [ -f /etc/default/cpglockd ] && . /etc/default/cpglockd
++ [ -f /etc/default/redhat-cluster-pve ] && . /etc/default/redhat-cluster-pve
+ [ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/cpglockd"
+ fi
+
+@@ -70,6 +68,11 @@
+ kill -TERM $(pidof $CPGLOCKD)
+ }
+
++rgmanager_enabled()
++{
++ ccs_tool query /cluster/rm >/dev/null 2>&1
++}
++
+ rtrn=0
+
+ if [ "$EUID" != "0" ]; then
+@@ -79,6 +82,11 @@
+
+ case "$1" in
+ start)
++
++ if ! rgmanager_enabled; then
++ exit 0;
++ fi
++
+ echo -n "Starting $ID: "
+
+ # most recent distributions use tmpfs for /var/run
Index: new/cman/init.d/cman.in
===================================================================
---- new.orig/cman/init.d/cman.in 2011-08-30 11:58:11.000000000 +0200
-+++ new/cman/init.d/cman.in 2011-08-30 11:58:46.000000000 +0200
+--- new.orig/cman/init.d/cman.in 2012-06-13 15:55:37.000000000 +0200
++++ new/cman/init.d/cman.in 2012-06-13 15:56:41.000000000 +0200
@@ -8,10 +8,10 @@
#
### BEGIN INIT INFO
# Short-Description: Starts and stops cman
# Description: Starts and stops the Cluster Manager set of daemons
### END INIT INFO
-@@ -19,7 +19,10 @@
- # set secure PATH
- PATH="/bin:/usr/bin:/sbin:/usr/sbin:@SBINDIR@"
+@@ -22,7 +22,10 @@
+ # save invokation for rollback ops
+ thisinvokation="$0"
+CCFG="/etc/cluster/cluster.conf"
+
chkconfig2()
{
-@@ -68,8 +71,7 @@
+@@ -71,8 +74,7 @@
# deb based distros
if [ ! -d /etc/sysconfig ]; then
Index: new/rgmanager/init.d/rgmanager.in
===================================================================
---- new.orig/rgmanager/init.d/rgmanager.in 2011-09-29 11:01:03.000000000 +0200
-+++ new/rgmanager/init.d/rgmanager.in 2011-09-29 11:08:55.000000000 +0200
+--- new.orig/rgmanager/init.d/rgmanager.in 2012-06-13 15:50:21.000000000 +0200
++++ new/rgmanager/init.d/rgmanager.in 2012-06-13 15:58:49.000000000 +0200
@@ -6,10 +6,10 @@
#
### BEGIN INIT INFO
# Provides: rgmanager
--# Required-Start: cman
--# Required-Stop: cman
+-# Required-Start: cman cpglockd
+-# Required-Stop: cman cpglockd
-# Default-Start:
-# Default-Stop:
-+# Required-Start: $remote_fs cman
-+# Required-Stop: $remote_fs cman
++# Required-Start: $remote_fs cman cpglockd
++# Required-Stop: $remote_fs cman cpglockd
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
# Short-Description: Starts and stops Red Hat Service (resource group) Manager
[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/rgmanager"
fi
-@@ -72,6 +75,11 @@
- done
+@@ -82,6 +85,11 @@
+ while ! cpglockdump > /dev/null 2>&1; do sleep 1; done
}
+rgmanager_enabled()
rtrn=0
if [ "$EUID" != "0" ]; then
-@@ -81,6 +89,11 @@
+@@ -91,6 +99,11 @@
case "$1" in
start)
echo -n "Starting $ID: "
# most recent distributions use tmpfs for /var/run
-@@ -92,7 +105,9 @@
+@@ -107,7 +120,9 @@
if status $RGMGRD > /dev/null 2>&1; then
success
else
touch $LOCK_FILE
success
else
-@@ -126,11 +141,12 @@
+@@ -141,11 +156,12 @@
echo -n "Stopping $ID: "
if status $RGMGRD > /dev/null 2>&1; then
fix-startup-config-timeout.diff
#fix-quorum-wait-time.diff
fix-cluster-schema.diff
+fix-cpglockd-init.diff
-# CLUSTERNAME=""
-# NODENAME=""
-# USE_CCS="yes"
-# CLUSTER_JOIN_TIMEOUT=300
-# CLUSTER_JOIN_OPTIONS=""
-# CLUSTER_SHUTDOWN_TIMEOUT=60
-# RGMGR_OPTIONS=""
+# this file is sourced by the following init scripts:
+# /etc/init.d/cpglockd
+# /etc/init.d/cman
+# /etc/init.d/rgmanager
+
# FENCE_JOIN="yes"
usr/share/man/man5/*
usr/share/man/man8/*
etc/init.d/cman
+etc/init.d/cpglockd
etc/init.d/rgmanager
etc/logrotate.d/cluster
lib/udev/rules.d/51-dlm.rules
if [ -x "/etc/init.d/cman" ]; then
update-rc.d cman start 21 2 3 4 5 . stop 79 0 1 6 . >/dev/null || exit $?
fi
+if [ -x "/etc/init.d/cpglockd" ]; then
+ update-rc.d cpglockd start 98 2 3 4 5 . stop 2 0 1 6 . >/dev/null || exit $?
+fi
if [ -x "/etc/init.d/rgmanager" ]; then
update-rc.d rgmanager start 99 2 3 4 5 . stop 1 0 1 6 . >/dev/null || exit $?
fi
purge)
update-rc.d cman remove >/dev/null || exit $?
update-rc.d rgmanager remove >/dev/null || exit $?
+ update-rc.d cpglockd remove >/dev/null || exit $?
;;
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)