web-dev-qa-db-ja.com

デスクトップでPerconaxtrabackupを実行できますか?

データベースサーバーでxtracbackupを正常に実行できましたが、他のマシン(MySQLが実行されているマシンではない)でバックアップを実行したいと思っています。
ホスト/ポートオプションを指定してデスクトップでxtrabackupツールを実行しようとしましたが、次のエラーが発生します。

InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona LLC and/or its affiliates 2009-2013.  All Rights Reserved.

This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.

150424 16:40:59  innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup;Host=192.168.33.10;port=3306' as 'vagrant'  (using password: YES).
150424 16:40:59  innobackupex: Connected to MySQL server
IMPORTANT: Please check that the backup run completes successfully.
           At the end of a successful backup run innobackupex
           prints "completed OK!".

innobackupex: Using mysql server version 5.6.22-72.0

innobackupex: Created backup directory /home/WorkSpace/xtrabackup

150424 16:40:59  innobackupex: Starting ibbackup with command: xtrabackup  --defaults-group="mysqld" --backup --suspend-at-end --target-dir=/tmp --tmpdir=/tmp --extra-lsndir='/tmp' --stream=tar
innobackupex: Waiting for ibbackup (pid=10463) to suspend
innobackupex: Suspend file '/tmp/xtrabackup_suspended_2'

xtrabackup version 2.2.3 based on MySQL server 5.6.17 Linux (x86_64) (revision id: )
xtrabackup: uses posix_fadvise().
xtrabackup: Can't change dir to '/var/lib/mysql' (Errcode: 2 - No such file or directory)
xtrabackup: cannot my_setwd /var/lib/mysql
innobackupex: Error: The xtrabackup child process has died at /usr/bin/innobackupex line 2672.

他のマシンでバックアップを実行できますか?はいの場合、他に何をインストールする必要がありますか?ありがとう!

2
nvcnvn

いいえ、mysqlサーバープロセスを介さずにデータファイルを直接読み取るため、別のマシンで実行することはできません。

ただし、データベースホストに別のマシンのディスク領域をマウントし、この領域をバックアップのターゲットディレクトリとして使用できます。

2
Sven

別のマシンをバックアップするサーバーのmysqlスレーブにする場合は、そのマシンでxtrabackupを使用できます。

0
gnur