Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Peronca TokuBackup is currently a bit tricky to get installed, since percona neither has source tarballs nor binary downloads up on their site. The documentation (https://www.percona.com/doc/percona-server/5.6/tokudb/toku_backup.html) mentions that it's shipped as part of Percona Server, but obviously doesn't help much when you're running MariaDB.

      Would be nice if there would be some better availability for MariaDB

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            prohaska7 Rich Prohaska added a comment -

            The source to the tokudb backup plugin is in two repos:
            github.com:percona/percona-tokubackup
            github.com:percona/tokudb-backup-plugin

            These two repo's need to be checked out and built with the mariadb server source. Here is an example on how to build the tokudb backup plugin into mariadb 10.1:

            set -e
            if [ ! -d mariadb-server ] ; then git clone git@github.com:mariadb/server mariadb-server; fi
            if [ ! -d percona-tokubackup ] ; then git clone git@github.com:percona/percona-tokubackup; fi
            if [ ! -d tokudb-backup-plugin ] ; then git clone git@github.com:percona/tokudb-backup-plugin; fi
            pushd tokudb-backup-plugin
            rm -rf backup
            ln -s ../percona-tokubackup/backup
            popd
            pushd mariadb-server/plugin
            if [ -d tokudb-backup-plugin ] ; then rm tokudb-backup-plugin; fi
            rm -rf tokudb-backup-plugin
            ln -s ../../tokudb-backup-plugin
            popd
            rm -rf build install
            mkdir build install
            pushd build
            cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../install -DMYSQL_MAINTAINER_MODE=OFF ../mariadb-server
            make -j8 install
            popd

            Need to preload the hot backup library:
            LD_PRELOAD=$PWD/lib/libHotBackup.so bin/mysqld_safe --defaults-file=~/rfp.cnf --plugin-load-add=ha_tokudb.so --plugin-load-add=tokudb_backup.so &

            Here is the user interface:
            MariaDB [(none)]> show variables like 'version';
            -----------------------------------+

            Variable_name Value

            -----------------------------------+

            version 10.1.8-MariaDB-debug

            -----------------------------------+
            1 row in set (0.00 sec)

            MariaDB [(none)]> show variables like 'tokudb_backup%';
            ------------------------------------------------------------------+

            Variable_name Value

            ------------------------------------------------------------------+

            tokudb_backup_allowed_prefix  
            tokudb_backup_dir  
            tokudb_backup_exclude  
            tokudb_backup_last_error 0
            tokudb_backup_last_error_string  
            tokudb_backup_plugin_version  
            tokudb_backup_throttle 18446744073709551615
            tokudb_backup_version tokubackup 1.2 $Revision: 56100 $

            ------------------------------------------------------------------+

            Show
            prohaska7 Rich Prohaska added a comment - The source to the tokudb backup plugin is in two repos: github.com:percona/percona-tokubackup github.com:percona/tokudb-backup-plugin These two repo's need to be checked out and built with the mariadb server source. Here is an example on how to build the tokudb backup plugin into mariadb 10.1: set -e if [ ! -d mariadb-server ] ; then git clone git@github.com:mariadb/server mariadb-server; fi if [ ! -d percona-tokubackup ] ; then git clone git@github.com:percona/percona-tokubackup; fi if [ ! -d tokudb-backup-plugin ] ; then git clone git@github.com:percona/tokudb-backup-plugin; fi pushd tokudb-backup-plugin rm -rf backup ln -s ../percona-tokubackup/backup popd pushd mariadb-server/plugin if [ -d tokudb-backup-plugin ] ; then rm tokudb-backup-plugin; fi rm -rf tokudb-backup-plugin ln -s ../../tokudb-backup-plugin popd rm -rf build install mkdir build install pushd build cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../install -DMYSQL_MAINTAINER_MODE=OFF ../mariadb-server make -j8 install popd Need to preload the hot backup library: LD_PRELOAD=$PWD/lib/libHotBackup.so bin/mysqld_safe --defaults-file=~/rfp.cnf --plugin-load-add=ha_tokudb.so --plugin-load-add=tokudb_backup.so & Here is the user interface: MariaDB [(none)] > show variables like 'version'; -------------- ---------------------+ Variable_name Value -------------- ---------------------+ version 10.1.8-MariaDB-debug -------------- ---------------------+ 1 row in set (0.00 sec) MariaDB [(none)] > show variables like 'tokudb_backup%'; -------------------------------- ----------------------------------+ Variable_name Value -------------------------------- ----------------------------------+ tokudb_backup_allowed_prefix   tokudb_backup_dir   tokudb_backup_exclude   tokudb_backup_last_error 0 tokudb_backup_last_error_string   tokudb_backup_plugin_version   tokudb_backup_throttle 18446744073709551615 tokudb_backup_version tokubackup 1.2 $Revision: 56100 $ -------------------------------- ----------------------------------+

              People

              • Assignee:
                Unassigned
                Reporter:
                pprkut Heinz Wiesinger
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: