You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

MariaDB 10.4每小时无响应触发InnoDB断言失败,且无法完成数据库备份的问题求助

MariaDB 10.4每小时无响应触发InnoDB断言失败,且无法完成数据库备份的问题求助

各位大佬好,我遇到了一个棘手的问题,希望能得到大家的帮助:

我的MariaDB 10.4数据库每小时会突然停止响应,查看日志会出现以下InnoDB断言失败的内容:

Feb  9 10:00:02 maria55 mysqld: 2023-02-09 10:00:02 0x7f72547a5700  InnoDB: Assertion failure in file /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.4.13/storage/innobase/btr/btr0cur.cc line 7940
Feb  9 10:00:02 maria55 mysqld: InnoDB: Failing assertion: space_id == page_get_space_id(page)
Feb  9 10:00:02 maria55 mysqld: InnoDB: We intentionally generate a memory trap.
Feb  9 10:00:02 maria55 mysqld: InnoDB: Submit a detailed bug report to https://jira.mariadb.org/
Feb  9 10:00:02 maria55 mysqld: InnoDB: If you get repeated assertion failures or crashes, even
Feb  9 10:00:02 maria55 mysqld: InnoDB: immediately after the mysqld startup, there may be
Feb  9 10:00:02 maria55 mysqld: InnoDB: corruption in the InnoDB tablespace. Please refer to
Feb  9 10:00:02 maria55 mysqld: InnoDB: https://mariadb.com/kb/en/library/innodb-recovery-modes/
Feb  9 10:00:02 maria55 mysqld: InnoDB: about forcing recovery.

服务器上运行着Kopano,虽然没找到恰好整点触发的定时任务,但我高度怀疑是Kopano的每小时维护 routines 导致了这次崩溃。

日志里提示可能是InnoDB表空间损坏,我先尝试了mysqlcheck kopano,结果显示数据库检查完全正常。谷歌搜索也没找到类似的案例,现在有点无从下手。

雪上加霜的是,我现在连备份都做不了:执行mysqldump --single-transaction --routines kopano -r kopanodb.sql时,在导出lob表的第166961行时,报错mysqldump: Error 2013: Lost connection to MySQL server during query,数据库总大小有80GB。

我原本想通过升级MariaDB来修复可能存在的bug,但因为没法拿到可靠备份,不敢轻易操作。另一个想法是停止MariaDB服务后,直接复制/var/lib/mysql到临时目录当备份,但不确定这种方式是否靠谱。

请问各位还有什么其他思路或建议吗?不管是解决数据库每小时崩溃的问题,还是成功完成备份的方法,都非常感谢!

备注:内容来源于stack exchange,提问作者Eugene van der Merwe

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.23 14:33:10