====== Upgrade ====== ===== Upgrading from 2.0.x to 2.1.0 ===== MMM 2.1.0 is backwards compatible with MMM 2.0.x, so a monitoring host running version 2.1.0 can talk to agents running 2.0.x and the other way around. ==== Upgrading the monitoring host ==== - Stop mmmd_mon (if you have multiple clusters running, be sure to stop all instances of mmmd_mon): /etc/init.d/mysql-mmm-monitor stop - When using the .debs edit ''/etc/default/mysql-mmm-monitor'' and set ''ENABLED'' to 0 - Install the new version of MMM. - ''mmmd_mon'' was renamed to ''mmm_mond''. So you can delete the old binary: rm -f /usr/sbin/mmmd_mon - If you have multiple clusters running, recreate your init-scripts for these by cloning ''/etc/init.d/mysql-mmm-monitor'' and adjusting the variable ''CLUSTER'' - (Optional) Edit ''mmm_mon.conf'' and change ''status_path'' from ''/var/lib/misc/mmmd_mon.status'' to ''/var/lib/misc/mmm_mond.status'' - afterwards copy the existing status file to its new location: cp /var/lib/misc/mmmd_mon.status /var/lib/misc/mmm_mond.status - Edit ''mmm_mon.conf'' and change ''pid_path'' from ''/var/run/mmmd_mon.pid'' to ''/var/run/mmm_mond.pid'' - The helper binaries have been moved so edit mmm_*.conf and change ''bin_path'' from ''/usr/bin/mysql-mmm/'' to ''/usr/lib/mysql-mmm/'' - then delete the old binaries: rm -rf /usr/bin/mysql-mmm - When using the .debs edit ''/etc/default/mysql-mmm-monitor'' and set ''ENABLED'' to 1 - Start mmm_mond (if you use more than one cluster, don't forget to start them too): /etc/init.d/mysql-mmm-monitor start ==== Upgrading agent hosts ==== - Stop mmmd_agent: /etc/init.d/mysql-mmm-agent stop - When using the .debs edit ''/etc/default/mysql-mmm-agent'' and set ''ENABLED'' to 0 - Install the new version of MMM. - ''mmmd_agent'' was renamed to ''mmm_agentd''. So you can delete the old binary: rm -f /usr/sbin/mmmd_agent - The helper binaries have been moved so edit ''mmm_*.conf'' and change ''bin_path'' from ''/usr/bin/mysql-mmm/'' to ''/usr/lib/mysql-mmm/'' - then delete the old binaries: rm -rf /usr/bin/mysql-mmm - Edit ''mmm_*.conf'' and change ''pid_path'' in the '''' sections from ''/var/run/mmmd_agent.pid'' to ''/var/run/mmm_agentd.pid'' - When using the .debs edit ''/etc/default/mysql-mmm-agent'' and set ''ENABLED'' to 1 - Start mmm_agentd: /etc/init.d/mysql-mmm-agent start