解决MySQL 使用xtrabackup备份失败方法简析
admin
2023-05-18 16:22:24
0

本文主要给大家介绍解决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

备份日志:

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

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, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html
InnoDB: 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 information
collection process might fail.
Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly 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备份失败方法简析,很多读者朋友肯定多少有一定的了解,如需获取更多的行业知识信息 ,可以持续关注我们的行业资讯栏目的。

相关内容

热门资讯

暗访牛蛙加工厂:专留一批样品应... 澎湃新闻记者 祝江 实习生 栗英鹤牛蛙为何抗生素等兽药成分屡屡超标?养殖、运输过程中,“施药”真的难...
以音乐节恐袭幸存者煎熬3年在遇... 2023 年 10 月 7 日以色列新星音乐节那场突如其来的血腥袭击,改写了无数普通人的命运。8 月...
大佬们啊嵌入式微波炉十大品牌排... 摘要:你好,现在生活都是快节奏了,每家必备微波炉,微波炉也给人们带来很多方便,节省时间。嵌入式微波炉...
中国开关插座十大品牌排行榜大佬... 最佳回答 十大品牌如下:第一个品牌:西蒙,西蒙成立于1916年,总部在西班牙。第二个品牌:西门子,成...
防盗门钥匙塑料盒怎么打开 有一些防盗门的钥匙都会装在一个特制的塑料盒里,这样的塑料盒子装备会显得防盗门的钥匙特别高档。但是这种...
钥匙插不进去锁怎么办(钥匙插不... 钥匙无法插入门锁,有两种情况,一是锁芯内部的弹簧松动,二是锁眼内有杂物。就拿有些小的锁来说,可以根据...
电视机电源指示灯不亮是怎么回事 先确认电视机电源是否接通,若未接入电源请先将电视机电源线插好使其通电。确认电源接通后,对电视机进行开...
浙江宣传评文艺圈“塌房”:人品... 近几年来,文艺圈人品“塌房”事件屡有发生,从言行失范、私德有亏到违法犯罪,当创作者的德行有了污点,其...
伊朗看到了美国的3个软肋 全世界现在哭笑不得。刚扬言要狠狠打击伊朗,打击伊朗的能源基础设施,甚至感觉迫在眉睫、必须要打、不打不...
接连反转!特朗普透露三个信息 特朗普称美伊3日将举行谈判。美国总统特朗普当地时间8月2日,美国总统特朗普谈及伊朗时称,关于霍尔木兹...