pelacables
November 7th, 2013, 12:38 AM
Sure,
# mysql --version
mysql Ver 14.14 Distrib 5.1.69, for redhat-linux-gnu (x86_64) using readline 5.1
1) mysqldump reports warning about event table:
Command used for logical backup is mysqldump --opt --extended-insert --create-options --default-character-set=utf8 --single-transactionbash -c 'mysqldump --opt --extended-insert --create-options --default-character-set=utf8 --single-transaction --all-databases > "/var/amanda/zamanda/XXXXXX/20131107092901/backup.sql" 2>>/var/backup_dir/JWol25PJZ_;echo ${PIPESTATUS[@]} > /var/backup_dir/F_8lt_lQtH 2>>/var/backup_dir/JWol25PJZ_'
# cat /var/backup_dir/JWol25PJZ_
-- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.
so any MySQL backup is marked as error becasue the dump generates some content that is saved in error file:
mysqlsrv04a.XXXX:backup:INFO: Command exit status is : 0
mysqlsrv04a.XXXX:backup:ERROR: Output of command: 'command is : bash -c 'mysqldump --opt --extended-insert --create-options --default-character-set=utf8 --single-transaction --all-databases > "/var/amanda/zamanda/mysqlsrv04a.XXXX/20131107092901/backup.sql" 2>>/var/backup_dir/JWol25PJZ_;echo ${PIPESTATUS[@]} > /var/backup_dir/F_8lt_lQtH 2>>/var/backup_dir/JWol25PJZ_'' is {
-- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.
}
mysqlsrv04a.XXXX:backup:ERROR: Output of command: 'pipe exit status' is {
0
}
mysqlsrv04a.XXXX:backup:ERROR: mysqldump did not succeed.
mysqlsrv04a.XXXX:backup:INFO: PHASE START: Cleanup
mysqlsrv04a.XXXX:backup:INFO: backup-status=Backup failed
mysqlsrv04a.XXXX:backup:INFO: Backup failed
mysqlsrv04a.XXXX:backup:INFO: mailing file /var/backup_dir/WqTmhgEn_v
mysqlsrv04a.XXXX:backup:INFO: mail command is cat "/var/backup_dir/WqTmhgEn_v"|mail -s "[ZRM for MySQL Report] ERROR during backup of backup-set mysqlsrv04a.XXXX"
[email protected]
mysqlsrv04a.XXXX:backup:INFO: PHASE END: Cleanup
mysqlsrv04a.XXXX:backup:INFO: END OF BACKUP
and seems that it's a bug because skip-events is not working:
http://bugs.mysql.com/bug.php?id=68376
the code is at line 1852 of /usr/bin/mysql-zrm-backup
if(( $r > 0 ) || (-s $CMDERR)) {
CMDERR content should be checked(?)
I've added "--events" to $MYSQLDUMP5:
my $MYSQLDUMP5="mysqldump --opt --events --extended-insert --create-options";
but I don't know if this is the best solution because (IMHO) those MySQL Warnings should be ingnored (same happens https://forums.zmanda.com/showthread.php?5006-ZRM-Failing-to-backup
I'm currently testing it, so I'll be rpeorting any other issue.
Cheers!
Arnau