sfrank
December 18th, 2006, 06:18 AM
Hi,
I've been trying to set up a remote backup and here is what happens:
a) In the first case I'm using 'raw' backups with full backup leve.
"""
root@devserver:/etc/mysql# mysql-zrm-scheduler --now --backup-set cage --backup-level 0
Logging to /var/log/mysql-zrm/mysql-zrm-scheduler.log
INFO: ZRM for MySQL Community Edition - version 1.1.2
INFO: Input Parameters Used {
INFO: quiet=0
INFO: verbose=1
INFO: retention-policy=10D
INFO: backup-level=0
INFO: all-databases=1
INFO: destination=/var/lib/mysql-zrm
INFO: port=3306
INFO: host=192.168.1.102
INFO: backup-mode=raw
INFO: password=******
INFO: comment=Backups from cage
INFO: compress-plugin=/bin/gzip
INFO: user=zrmuser
INFO: mysql-binlog-path=/var/log/mysql
INFO: copy-plugin=/usr/share/mysql-zrm/plugins/socket-copy.pl
INFO: }
INFO: Getting mysql variables
INFO: mysqladmin --user="zrmuser" --password="*****" --host="192.168.1.102" --port="3306" variables
INFO: datadir is /var/lib/mysql/
INFO: mysql_version is 5.0.24a-Debian_9-log
INFO: log_bin=ON
INFO: InnoDB data file are /var/lib/mysql/ibdata1
INFO: InnoDB log dir is /var/lib/mysql/.
INFO: backup set being used is cage
INFO: backup-set=cage
INFO: backup-date=20061218144314
INFO: host=192.168.1.102
INFO: backup-date-epoch=1166449394
INFO: retention-policy=10D
INFO: mysql-zrm-version=ZRM for MySQL Community Edition - version 1.1.2
INFO: mysql-version=5.0.24a-Debian_9-log
INFO: backup-directory=/var/lib/mysql-zrm/cage/20061218144314
INFO: comment=Backups from cage
INFO: Executing pre-backup-plugin
INFO: Flushing the logs
INFO: flush-logs
INFO: Getting master logname using command mysql --user="zrmuser" --password="*****" --host="192.168.1.102" --port="3306" -e "show master status"
INFO: backup-level=0
INFO: Getting list of Databases
INFO: mysql --user="zrmuser" --password="*****" --host="192.168.1.102" --port="3306" -e "show databases;"
INFO: Command used for getting engine type mysql --user="zrmuser" --password="*****" --host="192.168.1.102" --port="3306" -e "show table status from mysql"
INFO: For database mysql
INFO: engine
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: Command used for raw backup is /usr/share/mysql-zrm/plugins/socket-copy.pl --mysqlhotcopy --user="zrmuser" --password="*****" --host="192.168.1.102" --port="3306" --quiet mysql "/var/lib/mysql-zrm/cage/20061218144314" > /tmp/RxBlZiwVem 2>&1
ERROR: Output of command: 'mysqlhotcopy' is {
gzip: stdin: unexpected end of file
/bin/tar: Child returned status 1
/bin/tar: Error exit delayed from previous errors
close of pipe failed
}
ERROR: mysqlhotcopy command did not succeed.
Command used is /usr/share/mysql-zrm/plugins/socket-copy.pl --mysqlhotcopy --user="zrmuser" --password="*****" --host="192.168.1.102" --port="3306" --quiet mysql "/var/lib/mysql-zrm/cage/20061218144314" > /tmp/RxBlZiwVem 2>&1
Return value is 512
INFO: backup-status=Backup failed
INFO: Backup failed
ERROR: /usr/bin/mysql-zrm did not finish successfully
"""
b) In the second case I've switched to logical backups but using incremental in order to have something to move with the socket-copy plugin.
"""
root@devserver:/etc/mysql# mysql-zrm-scheduler --now --backup-set cage --backup-level 1
Logging to /var/log/mysql-zrm/mysql-zrm-scheduler.log
INFO: ZRM for MySQL Community Edition - version 1.1.2
INFO: Input Parameters Used {
INFO: quiet=0
INFO: verbose=1
INFO: retention-policy=10D
INFO: backup-level=1
INFO: all-databases=1
INFO: destination=/var/lib/mysql-zrm
INFO: port=3306
INFO: host=192.168.1.102
INFO: backup-mode=logical
INFO: password=******
INFO: comment=Backups from cage
INFO: compress-plugin=/bin/gzip
INFO: user=zrmuser
INFO: mysql-binlog-path=/var/log/mysql
INFO: copy-plugin=/usr/share/mysql-zrm/plugins/socket-copy.pl
INFO: }
INFO: Getting mysql variables
INFO: mysqladmin --user="zrmuser" --password="*****" --host="192.168.1.102" --port="3306" variables
INFO: datadir is /var/lib/mysql/
INFO: mysql_version is 5.0.24a-Debian_9-log
INFO: log_bin=ON
INFO: InnoDB data file are /var/lib/mysql/ibdata1
INFO: InnoDB log dir is /var/lib/mysql/.
INFO: backup set being used is cage
INFO: backup-set=cage
INFO: backup-date=20061218144228
INFO: host=192.168.1.102
INFO: backup-date-epoch=1166449348
INFO: retention-policy=10D
INFO: mysql-zrm-version=ZRM for MySQL Community Edition - version 1.1.2
INFO: mysql-version=5.0.24a-Debian_9-log
INFO: backup-directory=/var/lib/mysql-zrm/cage/20061218144228
INFO: comment=Backups from cage
INFO: Executing pre-backup-plugin
INFO: Flushing the logs
INFO: flush-logs
INFO: Getting master logname using command mysql --user="zrmuser" --password="*****" --host="192.168.1.102" --port="3306" -e "show master status"
INFO: backup-level=1
INFO: Getting list of binary logs using command mysql --user="zrmuser" --password="*****" --host="192.168.1.102" --port="3306" -e "show master logs"
gzip: stdin: unexpected end of file
/bin/tar: Child returned status 1
/bin/tar: Error exit delayed from previous errors
close of pipe failed
ERROR: Could not copy file /var/log/mysql/mysql-bin.000027
ERROR: copy-plugin exited with error 512
ERROR: Could not copy bin log file mysql-bin.000027
INFO: incremental=mysql-bin.[0-9]*
INFO: next-binlog=mysql-bin.000028
INFO: last-backup=/var/lib/mysql-zrm/cage/20061218144155
INFO: backup-size=0.00 MB
INFO: Executing post-backup-plugin
INFO: read-locks-time=00:00:00
INFO: flush-logs-time=00:00:00
INFO: backup-time=00:00:00
INFO: backup-status=Backup done but with errors
INFO: Backup done but with errors
ERROR: /usr/bin/mysql-zrm did not finish successfully
"""
I've also tried to run the socket-copy.pl alone with the necessary parameters to move a file around, but it gave me the same gzip & tar error message.
Here is the content of the /tmp/client.log on the socket-server's side:
"""
Client started
ERROR: Bad data in
"""
I'm running Ubuntu Edgy on the MySQL server and Debian Sarge on the ZRM host. The host that I tried to hand-run the socket-copy.pl was a Debian testing which quite resembles to my MySQL host.
Any suggestions, hints are welcome.
I've been trying to set up a remote backup and here is what happens:
a) In the first case I'm using 'raw' backups with full backup leve.
"""
root@devserver:/etc/mysql# mysql-zrm-scheduler --now --backup-set cage --backup-level 0
Logging to /var/log/mysql-zrm/mysql-zrm-scheduler.log
INFO: ZRM for MySQL Community Edition - version 1.1.2
INFO: Input Parameters Used {
INFO: quiet=0
INFO: verbose=1
INFO: retention-policy=10D
INFO: backup-level=0
INFO: all-databases=1
INFO: destination=/var/lib/mysql-zrm
INFO: port=3306
INFO: host=192.168.1.102
INFO: backup-mode=raw
INFO: password=******
INFO: comment=Backups from cage
INFO: compress-plugin=/bin/gzip
INFO: user=zrmuser
INFO: mysql-binlog-path=/var/log/mysql
INFO: copy-plugin=/usr/share/mysql-zrm/plugins/socket-copy.pl
INFO: }
INFO: Getting mysql variables
INFO: mysqladmin --user="zrmuser" --password="*****" --host="192.168.1.102" --port="3306" variables
INFO: datadir is /var/lib/mysql/
INFO: mysql_version is 5.0.24a-Debian_9-log
INFO: log_bin=ON
INFO: InnoDB data file are /var/lib/mysql/ibdata1
INFO: InnoDB log dir is /var/lib/mysql/.
INFO: backup set being used is cage
INFO: backup-set=cage
INFO: backup-date=20061218144314
INFO: host=192.168.1.102
INFO: backup-date-epoch=1166449394
INFO: retention-policy=10D
INFO: mysql-zrm-version=ZRM for MySQL Community Edition - version 1.1.2
INFO: mysql-version=5.0.24a-Debian_9-log
INFO: backup-directory=/var/lib/mysql-zrm/cage/20061218144314
INFO: comment=Backups from cage
INFO: Executing pre-backup-plugin
INFO: Flushing the logs
INFO: flush-logs
INFO: Getting master logname using command mysql --user="zrmuser" --password="*****" --host="192.168.1.102" --port="3306" -e "show master status"
INFO: backup-level=0
INFO: Getting list of Databases
INFO: mysql --user="zrmuser" --password="*****" --host="192.168.1.102" --port="3306" -e "show databases;"
INFO: Command used for getting engine type mysql --user="zrmuser" --password="*****" --host="192.168.1.102" --port="3306" -e "show table status from mysql"
INFO: For database mysql
INFO: engine
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: MyISAM
INFO: Command used for raw backup is /usr/share/mysql-zrm/plugins/socket-copy.pl --mysqlhotcopy --user="zrmuser" --password="*****" --host="192.168.1.102" --port="3306" --quiet mysql "/var/lib/mysql-zrm/cage/20061218144314" > /tmp/RxBlZiwVem 2>&1
ERROR: Output of command: 'mysqlhotcopy' is {
gzip: stdin: unexpected end of file
/bin/tar: Child returned status 1
/bin/tar: Error exit delayed from previous errors
close of pipe failed
}
ERROR: mysqlhotcopy command did not succeed.
Command used is /usr/share/mysql-zrm/plugins/socket-copy.pl --mysqlhotcopy --user="zrmuser" --password="*****" --host="192.168.1.102" --port="3306" --quiet mysql "/var/lib/mysql-zrm/cage/20061218144314" > /tmp/RxBlZiwVem 2>&1
Return value is 512
INFO: backup-status=Backup failed
INFO: Backup failed
ERROR: /usr/bin/mysql-zrm did not finish successfully
"""
b) In the second case I've switched to logical backups but using incremental in order to have something to move with the socket-copy plugin.
"""
root@devserver:/etc/mysql# mysql-zrm-scheduler --now --backup-set cage --backup-level 1
Logging to /var/log/mysql-zrm/mysql-zrm-scheduler.log
INFO: ZRM for MySQL Community Edition - version 1.1.2
INFO: Input Parameters Used {
INFO: quiet=0
INFO: verbose=1
INFO: retention-policy=10D
INFO: backup-level=1
INFO: all-databases=1
INFO: destination=/var/lib/mysql-zrm
INFO: port=3306
INFO: host=192.168.1.102
INFO: backup-mode=logical
INFO: password=******
INFO: comment=Backups from cage
INFO: compress-plugin=/bin/gzip
INFO: user=zrmuser
INFO: mysql-binlog-path=/var/log/mysql
INFO: copy-plugin=/usr/share/mysql-zrm/plugins/socket-copy.pl
INFO: }
INFO: Getting mysql variables
INFO: mysqladmin --user="zrmuser" --password="*****" --host="192.168.1.102" --port="3306" variables
INFO: datadir is /var/lib/mysql/
INFO: mysql_version is 5.0.24a-Debian_9-log
INFO: log_bin=ON
INFO: InnoDB data file are /var/lib/mysql/ibdata1
INFO: InnoDB log dir is /var/lib/mysql/.
INFO: backup set being used is cage
INFO: backup-set=cage
INFO: backup-date=20061218144228
INFO: host=192.168.1.102
INFO: backup-date-epoch=1166449348
INFO: retention-policy=10D
INFO: mysql-zrm-version=ZRM for MySQL Community Edition - version 1.1.2
INFO: mysql-version=5.0.24a-Debian_9-log
INFO: backup-directory=/var/lib/mysql-zrm/cage/20061218144228
INFO: comment=Backups from cage
INFO: Executing pre-backup-plugin
INFO: Flushing the logs
INFO: flush-logs
INFO: Getting master logname using command mysql --user="zrmuser" --password="*****" --host="192.168.1.102" --port="3306" -e "show master status"
INFO: backup-level=1
INFO: Getting list of binary logs using command mysql --user="zrmuser" --password="*****" --host="192.168.1.102" --port="3306" -e "show master logs"
gzip: stdin: unexpected end of file
/bin/tar: Child returned status 1
/bin/tar: Error exit delayed from previous errors
close of pipe failed
ERROR: Could not copy file /var/log/mysql/mysql-bin.000027
ERROR: copy-plugin exited with error 512
ERROR: Could not copy bin log file mysql-bin.000027
INFO: incremental=mysql-bin.[0-9]*
INFO: next-binlog=mysql-bin.000028
INFO: last-backup=/var/lib/mysql-zrm/cage/20061218144155
INFO: backup-size=0.00 MB
INFO: Executing post-backup-plugin
INFO: read-locks-time=00:00:00
INFO: flush-logs-time=00:00:00
INFO: backup-time=00:00:00
INFO: backup-status=Backup done but with errors
INFO: Backup done but with errors
ERROR: /usr/bin/mysql-zrm did not finish successfully
"""
I've also tried to run the socket-copy.pl alone with the necessary parameters to move a file around, but it gave me the same gzip & tar error message.
Here is the content of the /tmp/client.log on the socket-server's side:
"""
Client started
ERROR: Bad data in
"""
I'm running Ubuntu Edgy on the MySQL server and Debian Sarge on the ZRM host. The host that I tried to hand-run the socket-copy.pl was a Debian testing which quite resembles to my MySQL host.
Any suggestions, hints are welcome.