--- mysql-mmm-2.2.1.orig/debian/mysql-mmm-agent.install +++ mysql-mmm-2.2.1/debian/mysql-mmm-agent.install @@ -0,0 +1,4 @@ +bin/agent usr/lib/mysql-mmm/ +etc/mysql-mmm/mmm_agent.conf etc/mysql-mmm/ +lib/Agent usr/share/perl5/MMM/ +sbin/mmm_agentd usr/sbin/ --- mysql-mmm-2.2.1.orig/debian/mysql-mmm-monitor.dirs +++ mysql-mmm-2.2.1/debian/mysql-mmm-monitor.dirs @@ -0,0 +1,3 @@ +usr/share/perl5/ +usr/lib/mysql-mmm +usr/sbin --- mysql-mmm-2.2.1.orig/debian/mysql-mmm-common.conffiles +++ mysql-mmm-2.2.1/debian/mysql-mmm-common.conffiles @@ -0,0 +1 @@ +/etc/mysql-mmm/mmm_common.conf --- mysql-mmm-2.2.1.orig/debian/mysql-mmm-agent.init +++ mysql-mmm-2.2.1/debian/mysql-mmm-agent.init @@ -0,0 +1,79 @@ +#! /bin/sh + +### BEGIN INIT INFO +# Provides: mmm_agentd +# Required-Start: $network $remote_fs $syslog +# Required-Stop: $network $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: MMM Agent Daemon +# Description: Debian init script for the mysql-mmm agent daemon +### END INIT INFO + +set -e + +. /lib/lsb/init-functions + +# Cluster name (it can be empty for default cases) +CLUSTER='' + +DESC='MMM Agent Daemon' +NAME='mmm_agentd' +PIDFILE="/var/run/mmm_agentd.pid" +DAEMON="/usr/sbin/mmm_agentd" +ARGS='' +ENABLED=0 + +test -f /etc/default/mysql-mmm-agent && . /etc/default/mysql-mmm-agent + +if [ "$ENABLED" = "0" ]; then + log_action_msg "$DESC disabled, see /etc/default/mysql-mmm-agent" + exit 0 +fi + +if [ "$CLUSTER" != "" ]; then + DAEMON="/usr/sbin/mmm_agentd" + PIDFILE="/var/run/mmm_agentd-$CLUSTER.pid" + NAME="mmm_agentd-$CLUSTER" + ARGS="@$CLUSTER" +fi + +case "$1" in + start) + log_daemon_msg "Starting $DESC" "$NAME" + if pidofproc -p $PIDFILE $NAME >/dev/null; then + log_progress_msg "already running" + log_end_msg 0 + exit 0 + fi + $DAEMON $ARGS + log_end_msg $? + ;; + + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + if start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $PIDFILE; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + + status) + status_of_proc $NAME "$NAME" && exit 0 || exit $? + ;; + + restart|force-reload) + $0 stop + $0 start + exit $? + ;; + + *) + log_action_msg "Usage: $0 {start|stop|restart|force-reload|status}" + exit 1 + ;; + +esac + +exit 0 --- mysql-mmm-2.2.1.orig/debian/compat +++ mysql-mmm-2.2.1/debian/compat @@ -0,0 +1 @@ +5 --- mysql-mmm-2.2.1.orig/debian/mysql-mmm-tools.install +++ mysql-mmm-2.2.1/debian/mysql-mmm-tools.install @@ -0,0 +1,6 @@ +bin/tools usr/lib/mysql-mmm/ +etc/mysql-mmm/mmm_tools.conf etc/mysql-mmm/ +lib/Tools usr/share/perl5/MMM/ +sbin/mmm_backup usr/sbin/ +sbin/mmm_restore usr/sbin/ +sbin/mmm_clone usr/sbin/ --- mysql-mmm-2.2.1.orig/debian/changelog +++ mysql-mmm-2.2.1/debian/changelog @@ -0,0 +1,158 @@ +mysql-mmm (2.2.1-1) unstable; urgency=low + + * Fixed usage of wrong state name in set_active, forced_move_role and + set_offline which could lead to strange errors when hosts had replication + backlog. + + -- Pascal Hofmann Fri, 07 May 2010 07:50:00 +0000 + +mysql-mmm (2.2.0-1) unstable; urgency=low + + * Added manual mode (bug #531011), wait mode, config values 'mode' and + 'wait_for_other_master' + * Don't die at startup when no network connection is available - wait for it + to appear instead (bug #416572) + * Changed startup behaviour. mmm_mond will only go into passive mode if it + detects the active_master_role on more than one host. + * Added config value 'careful_startup' (bug #422549). If set to 0 mmm_mond + will never switch into passive mode at startup. + * Added check for invalid agent commands (prevents crash when mmmd_mon + version 1.x talks to an 2.x agent). + * Fixed date format for 'mmm_control checks' (bug #531841) + * Allow running multiple agents on the same host (bug #525719) + + -- Pascal Hofmann Tue, 09 Mar 2010 14:18:15 +0000 + +mysql-mmm (2.1.1-1) unstable; urgency=low + + * Changed default logging behaviour (bug #484395) + * Fixed DBI timeout handling (bug #528437) + * Close ITP (Closes: #568405) + + -- Pascal Hofmann Tue, 02 Mar 2010 20:08:21 +0000 + +mysql-mmm (2.1.0-1) unstable; urgency=low + + * Renamed mmmd_mon and mmmd_agent - they are called mmm_agentd and mmm_mond + now (fixes bug #410612) + * Some changes to fulfill the debian policy and the Filesystem Hierarchy + Standard. (Place utility binaries in /usr/lib/mysql-mmm/ (old location was + /usr/bin/mysql-mmm) and some smaller changes) + * Made debian init scripts compliant to LSB and debian policy. + * Determine whether to set a flapping host to ONLINE 'cause of + auto_set_online using time of last check state change instead of time of + last host state change. (bug #517650) + * Added command 'mmm_control checks' + * Let checks 'rep_threads' and 'rep_backlog' report an error when the monitor + user doesn't have sufficient privileges. + * Set $PROGRAM_NAME for prettier ps output. + * Enhanced debian init scripts. + * Small fix for angel functionality. + * Added mmm_* --version + * Fixed debian/control + + -- Pascal Hofmann Thu, 18 Feb 2010 14:16:13 +0000 + +mysql-mmm (2.0.11-1) stable; urgency=low + + * let auto_set_online set flapping hosts to ONLINE after flap_duration seconds + without failure (bug #484128) + * Prevent angel from filling filesystem on infinit error conditions + (bug #473446) + * Ignore white space after config values in the config file (bug #494128) + * Use Unix::Uptime when available (bug #465107) + + -- Pascal Hofmann Fri, 12 Feb 2010 02:29:39 +0000 + +mysql-mmm (2.0.10-1) stable; urgency=low + + * Check for failure when configuring ips, checking for ips and removing ips + (bug #429651) + * Show preferred role status in mmm_control show output (bug #463241) + * Added move_role --force (bug #381919) + * Added auto_set_online feature (bug #429664) + * Fixed dependencies of package mysql-mmm-monitor (libdbi-perl and + libdbd-mysql-perl were missing) + * Don't change host state from HARD_OFFLINE to AWAITING_RECOVERY if + replication checks are not ok (bug #458907) + * Enhanced log messages (bug #416572, bug #416586, ...) + + -- Pascal Hofmann Fri, 30 Oct 2009 08:51:00 +0200 + +mysql-mmm (2.0.9-1) stable; urgency=high + + * Fixed mmm_clone and mmm_restore so that they don't mess up owner/group of + files. (bug #388426) + + -- Pascal Hofmann Fri, 19 Jun 2009 03:13:00 +0200 + +mysql-mmm (2.0.8-1) stable; urgency=high + + * .pid file permissions (bug #387459) + + -- Pascal Hofmann Mon, 15 Jun 2009 22:30:00 +0200 + +mysql-mmm (2.0.7-1) stable; urgency=low + + * When overwriting status file, create temporary file in the same directory + (fixes bug #385541) + + -- Pascal Hofmann Thu, 11 Jun 2009 08:57:00 +0200 + +mysql-mmm (2.0.6-1) stable; urgency=low + + * Check that config files are not world writable/readable (bug #384837) + * fixed angel functionality to overwrite signals only temporary. + * use File::Temp when overwriting status file. + * Check new master before executing set_active_master. + * distribute non-active-master roles equally (fixes bug #385223) + + -- Pascal Hofmann Mon, 09 Jun 2009 17:43:00 +0200 + +mysql-mmm (2.0.5-1) stable; urgency=low + + * Fixed return code of init scripts (bug #383872) + * Added angel functionality + + -- Pascal Hofmann Sun, 07 Jun 2009 18:57:00 +0200 + +mysql-mmm (2.0.4-1) stable; urgency=low + + * Added ssh_port and ssh_parameters config variables for mysql-mmm-tools + + -- Pascal Hofmann Wed, 03 Jun 2009 23:51:00 +0200 + +mysql-mmm (2.0.3-1) stable; urgency=low + + * fixed startup + * fixed removal of roles if only mysql is down, but agent is reachable. + + -- Pascal Hofmann Tue, 26 May 2009 14:19:39 +0200 + +mysql-mmm (2.0.2-1) stable; urgency=low + + * Improved logging + * Retry failed agent commands in some cases + * Show unreachable agents in "mmm_control status" output. + * Flag unreachable agents on startup to prevent assignment of roles when + monitor is set active. + * Warn about bad auto_increment_increment and auto_increment_offset values + * check replication peer of both masters + * retry mysql connect when checking master configuration (could be interrupted + through SIGCHILD) + + -- Pascal Hofmann Sun, 24 May 2009 19:08:00 +0200 + +mysql-mmm (2.0.1-1) stable; urgency=low + + * Support Net:ARP >= 1.0 + * Fix Net::ARP usage (use interface from config instead hard coded 'eth0') + * Better error reporting/handling + + -- Pascal Hofmann Thu, 15 Apr 2009 13:45:00 +0200 + +mysql-mmm (2.0.0-1) stable; urgency=low + + * Initial release + + -- Pascal Hofmann Thu, 15 Jan 2009 13:11:31 +0200 --- mysql-mmm-2.2.1.orig/debian/mysql-mmm-monitor.conffiles +++ mysql-mmm-2.2.1/debian/mysql-mmm-monitor.conffiles @@ -0,0 +1 @@ +/etc/mysql-mmm/mmm_mon.conf --- mysql-mmm-2.2.1.orig/debian/rules +++ mysql-mmm-2.2.1/debian/rules @@ -0,0 +1,35 @@ +#!/usr/bin/make -f + +build: + dh_testdir + dh_clean -k + dh_installdirs + +clean: + dh_testdir + rm -f build-stamp configure-stamp + dh_clean + +binary-indep: build + dh_testdir + dh_installchangelogs + dh_installdocs +# dh_installexamples +# dh_installman +# dh_installcron + dh_installinit + dh_installlogrotate + dh_compress + dh_fixperms + dh_perl + dh_installdeb + dh_install + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep + +binary-arch: + +.PHONY: binary binary-indep binary-arch clean build --- mysql-mmm-2.2.1.orig/debian/mysql-mmm-tools.conffiles +++ mysql-mmm-2.2.1/debian/mysql-mmm-tools.conffiles @@ -0,0 +1 @@ +/etc/mysql-mmm/mmm_tools.conf --- mysql-mmm-2.2.1.orig/debian/mysql-mmm-common.dirs +++ mysql-mmm-2.2.1/debian/mysql-mmm-common.dirs @@ -0,0 +1,3 @@ +usr/share/perl5/ +var/log/mysql-mmm/ +etc/ --- mysql-mmm-2.2.1.orig/debian/mysql-mmm-common.docs +++ mysql-mmm-2.2.1/debian/mysql-mmm-common.docs @@ -0,0 +1,2 @@ +README +VERSION --- mysql-mmm-2.2.1.orig/debian/mysql-mmm-monitor.default +++ mysql-mmm-2.2.1/debian/mysql-mmm-monitor.default @@ -0,0 +1,2 @@ +# Change to one to enable MMM monitor +ENABLED=0 --- mysql-mmm-2.2.1.orig/debian/mysql-mmm-monitor.logrotate +++ mysql-mmm-2.2.1/debian/mysql-mmm-monitor.logrotate @@ -0,0 +1,10 @@ +/var/log/mysql-mmm/mmm_mond.log { + daily + missingok + rotate 7 + compress + delaycompress + notifempty + create 640 root adm + sharedscripts +} --- mysql-mmm-2.2.1.orig/debian/mysql-mmm-common.install +++ mysql-mmm-2.2.1/debian/mysql-mmm-common.install @@ -0,0 +1,2 @@ +etc/mysql-mmm/mmm_common.conf etc/mysql-mmm/ +lib/Common usr/share/perl5/MMM/ --- mysql-mmm-2.2.1.orig/debian/mysql-mmm-agent.conffiles +++ mysql-mmm-2.2.1/debian/mysql-mmm-agent.conffiles @@ -0,0 +1 @@ +/etc/mysql-mmm/mmm_agent.conf --- mysql-mmm-2.2.1.orig/debian/mysql-mmm-monitor.init +++ mysql-mmm-2.2.1/debian/mysql-mmm-monitor.init @@ -0,0 +1,79 @@ +#! /bin/sh + +### BEGIN INIT INFO +# Provides: mmm_mond +# Required-Start: $network $remote_fs $syslog +# Required-Stop: $network $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: MMM Monitoring Daemon +# Description: Debian init script for the mysql-mmm monitoring daemon +### END INIT INFO + +set -e + +. /lib/lsb/init-functions + +# Cluster name (it can be empty for default cases) +CLUSTER='' + +DESC='MMM Monitoring Daemon' +NAME='mmm_mond' +PIDFILE='/var/run/mmm_mond.pid' +DAEMON='/usr/sbin/mmm_mond' +ARGS='' +ENABLED=0 + +test -f /etc/default/mysql-mmm-monitor && . /etc/default/mysql-mmm-monitor + +if [ "$ENABLED" = "0" ]; then + log_action_msg "$DESC disabled, see /etc/default/mysql-mmm-monitor" + exit 0 +fi + +if [ "$CLUSTER" != "" ]; then + DAEMON="/usr/sbin/mmm_mond" + PIDFILE="/var/run/mmm_mond-$CLUSTER.pid" + NAME="mmm_mond-$CLUSTER" + ARGS="@$CLUSTER" +fi + +case "$1" in + start) + log_daemon_msg "Starting $DESC" "$NAME" + if pidofproc -p $PIDFILE $NAME >/dev/null; then + log_progress_msg "already running" + log_end_msg 0 + exit 0 + fi + $DAEMON $ARGS + log_end_msg $? + ;; + + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + if start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $PIDFILE; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + + status) + status_of_proc $NAME "$NAME" && exit 0 || exit $? + ;; + + restart|force-reload) + $0 stop + $0 start + exit $? + ;; + + *) + log_action_msg "Usage: $0 {start|stop|restart|force-reload|status}" + exit 1 + ;; + +esac + +exit 0 --- mysql-mmm-2.2.1.orig/debian/mysql-mmm-monitor.install +++ mysql-mmm-2.2.1/debian/mysql-mmm-monitor.install @@ -0,0 +1,5 @@ +bin/monitor usr/lib/mysql-mmm/ +etc/mysql-mmm/mmm_mon.conf etc/mysql-mmm/ +lib/Monitor usr/share/perl5/MMM/ +sbin/mmm_control usr/sbin/ +sbin/mmm_mond usr/sbin/ --- mysql-mmm-2.2.1.orig/debian/control +++ mysql-mmm-2.2.1/debian/control @@ -0,0 +1,64 @@ +Source: mysql-mmm +Section: database +Priority: optional +Maintainer: Pascal Hofmann +Build-Depends: debhelper (>= 5) +Standards-Version: 3.8.4 + +Package: mysql-mmm-common +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends}, liblog-log4perl-perl, libmailtools-perl, liblog-dispatch-perl +Description: Multi-Master Replication Manager for MySQL - common files + MMM (Master-Master Replication Manager for MySQL) is a set of flexible scripts + to perform monitoring/failover and management of MySQL Master-Master + replication configurations (with only one node writable at any time). + The toolset also has the ability to read balance standard master/slave + configurations with any number of slaves, so you can use it to move virtual + IP addresses around a group of servers depending on whether they are behind + in replication. + . + This package includes files needed by the agent, the monitor and the lvmtools. + +Package: mysql-mmm-agent +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends}, mysql-mmm-common, iproute, libnet-arp-perl, libproc-daemon-perl, libalgorithm-diff-perl, libdbi-perl, libdbd-mysql-perl +Description: Multi-Master Replication Manager for MySQL - agent daemon + MMM (Master-Master Replication Manager for MySQL) is a set of flexible scripts + to perform monitoring/failover and management of MySQL Master-Master + replication configurations (with only one node writable at any time). + The toolset also has the ability to read balance standard master/slave + configurations with any number of slaves, so you can use it to move virtual + IP addresses around a group of servers depending on whether they are behind + in replication. + . + This package includes the MMM agent. + +Package: mysql-mmm-monitor +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends}, mysql-mmm-common, libclass-singleton-perl, libproc-daemon-perl, libalgorithm-diff-perl, libdbi-perl, libdbd-mysql-perl +Recommends: fping +Description: Multi-Master Replication Manager for MySQL - monitoring daemon + MMM (Master-Master Replication Manager for MySQL) is a set of flexible scripts + to perform monitoring/failover and management of MySQL Master-Master + replication configurations (with only one node writable at any time). + The toolset also has the ability to read balance standard master/slave + configurations with any number of slaves, so you can use it to move virtual + IP addresses around a group of servers depending on whether they are behind + in replication. + . + This package includes the MMM monitor. + +Package: mysql-mmm-tools +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends}, mysql-mmm-common, libdbi-perl, libdbd-mysql-perl +Description: Multi-Master Replication Manager for MySQL - tools + MMM (Master-Master Replication Manager for MySQL) is a set of flexible scripts + to perform monitoring/failover and management of MySQL Master-Master + replication configurations (with only one node writable at any time). + The toolset also has the ability to read balance standard master/slave + configurations with any number of slaves, so you can use it to move virtual + IP addresses around a group of servers depending on whether they are behind + in replication. + . + This package includes the MMM tools mmm_backup, mmm_restore and mmm_clone. + --- mysql-mmm-2.2.1.orig/debian/copyright +++ mysql-mmm-2.2.1/debian/copyright @@ -0,0 +1,16 @@ +This package was debianized by Pascal Hofmann on +Thu, 15 Jan 2009 13:11:31 +0200. + +It was downloaded from http://mysql-mmm.org/ + +Upstream Author: + Pascal Hofmann + +Copyright: + Copyright (C) 2008-2010 Pascal Hofmann + +License: + GPL version 2 + +On Debian systems, the complete text of the GNU General Public License version 2 +can be found in `/usr/share/common-licenses/GPL-2'. --- mysql-mmm-2.2.1.orig/debian/mysql-mmm-agent.logrotate +++ mysql-mmm-2.2.1/debian/mysql-mmm-agent.logrotate @@ -0,0 +1,10 @@ +/var/log/mysql-mmm/mmm_agentd.log { + daily + missingok + rotate 7 + compress + delaycompress + notifempty + create 640 root adm + sharedscripts +} --- mysql-mmm-2.2.1.orig/debian/mysql-mmm-agent.default +++ mysql-mmm-2.2.1/debian/mysql-mmm-agent.default @@ -0,0 +1,2 @@ +# Change to one to enable MMM agent +ENABLED=0 --- mysql-mmm-2.2.1.orig/debian/mysql-mmm-tools.dirs +++ mysql-mmm-2.2.1/debian/mysql-mmm-tools.dirs @@ -0,0 +1,3 @@ +usr/share/perl5/ +usr/lib/mysql-mmm +usr/sbin --- mysql-mmm-2.2.1.orig/debian/mysql-mmm-agent.dirs +++ mysql-mmm-2.2.1/debian/mysql-mmm-agent.dirs @@ -0,0 +1,3 @@ +usr/share/perl5/ +usr/lib/mysql-mmm +usr/sbin