千家信息网

解决MySQL 使用xtrabackup备份失败方法简析

发表于:2026-11-01 作者:千家信息网编辑
千家信息网最后更新 2026年11月01日,本文主要给大家介绍解决MySQL使用xtrabackup备份失败方法简析,文章内容都是笔者用心摘选和编辑的,具有一定的针对性,对大家的参考意义还是比较大的,下面跟笔者一起了解下主题内容吧。收到报警,某
千家信息网最后更新 2026年11月01日解决MySQL 使用xtrabackup备份失败方法简析

本文主要给大家介绍解决MySQL使用xtrabackup备份失败方法简析,文章内容都是笔者用心摘选和编辑的,具有一定的针对性,对大家的参考意义还是比较大的,下面跟笔者一起了解下主题内容吧。

收到报警,某个端口备份失败,查看备份日志如下,显示有DDL操作导致的备份中断,查看当时的二进制日志,当时执行了一条添加字段的sql语句。目前只能重新执行备份,并修改备份时间,避免再发生类似情况。

MySQL:5.7.11

xtrabackup:2.4.5

查找到官方修复bug的情况:

Running DDL statements on Percona Server 5.7 during the backup process could in some cases lead to failure while preparing the backup. Bug fixed #1555626.

MySQL 5.7 can sometimes skip redo logging when creating an index. If such ALTER TABLE is being issued during the backup, the backup would be inconsistent. xtrabackup will now abort with error message if such ALTER TABLEhas been done during the backup. Bug fixed #1582345.

所以说这种情况是正常的,应尽量避免在备份时执行这些sql

备份日志:

InnoDB: Last flushed lsn: 340748764928 load_index lsn 340748904772# 一个DDL操作已经执行(未记录redo日志)。影响到的行可能未落地,PXB不能确保备份的一致性,请重试[FATAL] InnoDB: An optimized(without redo logging) DDLoperation has been performed. All modified pages may not have been flushed to the disk yet.    PXB will not be able take a consistent backup. Retry the backup operation    # 断言失败2017-06-01 08:43:19 0x7f396ee27700  InnoDB: Assertion failure in thread 139884650198784 in file ut0ut.cc line 916# 故意生成一个内存陷阱,使备份中断InnoDB: We intentionally generate a memory trap.InnoDB: Submit a detailed bug report to http://bugs.mysql.com.InnoDB: If you get repeated assertion failures or crashes, evenInnoDB: immediately after the mysqld startup, there may beInnoDB: corruption in the InnoDB tablespace. Please refer toInnoDB: http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.htmlInnoDB: about forcing recovery.00:43:19 UTC - xtrabackup got signal 6 ;This could be because you hit a bug or data is corrupted.This error can also be caused by malfunctioning hardware.Attempting to collect some information that could help diagnose the problem.As this is a crash and something is definitely wrong, the informationcollection process might fail.Thread pointer: 0x0Attempting backtrace. You can use the following information to find outwhere mysqld died. If you see no messages after this, something wentterribly wrong...stack_bottom = 0 thread_stack 0x10000/usr/local/xtrabackup/bin/innobackupex(my_print_stacktrace+0x35)[0xd55c45]/usr/local/xtrabackup/bin/innobackupex(handle_fatal_signal+0x273)[0xb0d5a3]/lib64/libpthread.so.0[0x36ac20f710]/lib64/libc.so.6(gsignal+0x35)[0x36abe32625]/lib64/libc.so.6(abort+0x175)[0x36abe33e05]/usr/local/xtrabackup/bin/innobackupex[0x7bfbe5]/usr/local/xtrabackup/bin/innobackupex(_ZN2ib5fatalD1Ev+0xb3)[0x837743]/usr/local/xtrabackup/bin/innobackupex[0x8af4a1]/usr/local/xtrabackup/bin/innobackupex(_Z19recv_parse_log_recsm7store_tb+0x4df)[0x8b20ef]/usr/local/xtrabackup/bin/innobackupex[0x763b60]/usr/local/xtrabackup/bin/innobackupex[0x764176]/usr/local/xtrabackup/bin/innobackupex[0x764523]/lib64/libpthread.so.0[0x36ac2079d1]/lib64/libc.so.6(clone+0x6d)[0x36abee88fd]Please report a bug at https://bugs.launchpad.net/percona-xtrabackup

看完以上关于解决MySQL 使用xtrabackup备份失败方法简析,很多读者朋友肯定多少有一定的了解,如需获取更多的行业知识信息 ,可以持续关注我们的行业资讯栏目的。

备份 日志 情况 方法 内容 笔者 行业 一致 一致性 主题 二进制 信息 内存 字段 官方 意义 文章 时间 更多 朋友 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 互联网科技企业 科技信息互联网 狮子座互联网科技有限公司 友谊互联网络科技 互联网科技公司招聘 富国互联网科技创新基金 互联网实体化科技化 青岛中康互联网医疗科技有限公司 栖莱科技互联网股份有限公司 迪庆互联网科技招生 世界互联网领先科技成果获奖 区块链结合互联网科技 国大互联网教育科技有限公司薪资 深圳互联网科技的发展 昆明中奇联合互联网科技 上海万顺科技互联网有限公司招聘 银川新华互联网科技学校是国营吗 恒生科技指数 中概互联网 10位科技互联网大佬 互联网科技自媒体灵感 河南真二互联网科技有限公司 期待互联网科技 银川新华互联网科技职业技术培训学校图片 厦门比较好的科技互联网公司 福建科技产业互联网发展 重庆互联网医院沙龙医盟信息科技 996高科技互联网公司 云南省自由互联网科技有限公司 互联网科技手抄报图片 杭州科技互联网公司有哪些
0