How do you install MySQL ZRM?

From wiki.zmanda.com
Jump to navigation Jump to search

Before installation: Do's/Don'ts

  • Check the version of your MySQL server. Verify that this is a version supported by Zmanda Recovery Manager for MySQL.
  • MySQL ZRM requires MySQL client commands to be installed on the machine where MySQL ZRM is running. These commands are required even if MySQL ZRM is backing up remote MySQL servers. MySQL ZRM depends on the following MySQL commands:
    • mysqladmin
    • mysqlhotcopy
    • mysqldump
    • mysqlbinlog
    • mysql
  • The MySQL client commands installed on MySQL ZRM machine should be compatible with the MySQL server. It is preferable to use the same version of MySQL on MySQL servers and on the MySQL ZRM machine if they are running on different machines.
  • Zmanda Recovery Manager for MySQL installation and configuration requires Unix superuser access. All MySQL ZRM commands are run as the superuser.
  • Check the version of Perl and compatibility with MySQL database. MySQL Perl interfaces (DBD, DBI packages) are required for some backup methods.
    • DBD::mysql package must be installed on your system. Following command can install DBD::mysql package:
# perl -MCPAN -e 'install DBD::mysql'

RPM installation

  • RPM installation must be done as superuser.
  • RPMs are available from Zmanda downloads page.
# rpm -ivh MySQL-zrm-1.0.3-1.noarch.rpm
Preparing...                ########################################### [100%]
  1:MySQL-zrm               ########################################### [100%]
  • Files are installed in following directories:
Directory location
Executables /usr/bin
Man pages /usr/share/man/{man1,man5}
Configuration files /etc/mysql-zrm
Libraries /usr/lib/mysql-zrm
Log files /var/log/mysql-zrm
Documentation /usr/share/doc/MySQL-zrm-*

Is MySQL ZRM really installed?

You can do one of the following to verify installation:

  • Use rpm(8) command
# rpm -qa | grep MySQL-zrm
MySQL-zrm-1.0.3-1

  • Check mysql-zrm man page
# man mysql-zrm