GTID is enabled on my instance. when using xtrabackup with 1) --slave-info 2) --prepare options, there is only master_auto_position option in the xtrabackup_slave_info file, instead of master_log_file and master_log_pos.
Is there any option available on the current versions for my need? I need to pass {file,pos} to mysqlbinlog, which is used to taking back up binlogs every full backup later.
Sorry for my pool english…it might be not clear to clarify my issue before. Actually I only need {file, pos} from xtrabackup_slave_info, but I found that the --slave-info option could not get the pair value when gtid_mode is enabled.
a) As follow is my commands:
shell> ${xtrabackup} --defaults-file=${MYCNF} --slave-info --backup --target-dir=${localdir}/${bakdate}/ 2>${localdir}/xtrabackup_${bakdate}.log
shell>${xtrabackup} --defaults-file=${MYCNF} --prepare --target-dir=${localdir}/${bakdate}/ 2>${localdir}/xtrabackup_${bakdate}.log
It seems like you are hitting this bug [url]https://bugs.launchpad.net/percona-xtrabackup/+bug/1705193[/url]
Can you try Percona Xtrabackup 2.3.9 or 2.4.8 instead. In case, If still fails then provide listing of target directory and show us contents of xtrabackup_slave_info file