Mysql使用xtrabackup备份失败处理

  在生产环境中使用的是xtrabackup,对mysql进行备份,每天0点开始备份,周日是全量备份,其他时间是基于周日做的增量备份,通过脚本实现,每天备份完成后会发送短信,突然有一天,备份全部失败,手动执行也无法备份,报错的日志如下:

1/usr/bin/xtrabackup version 2.4.8 based on MySQL server 5.7.13 Linux (x86_64) (revision id: 97330f7) 2incremental backup from 70857650633 is enabled. 3xtrabackup: uses posix_fadvise(). 4xtrabackup: cd to /usr/local/mysql/mysqldata/data1 5xtrabackup: open files limit requested 8192, set to 1048576 6xtrabackup: using the following InnoDB configuration: 7xtrabackup: innodb_data_home_dir = . 8xtrabackup: innodb_data_file_path = ibdata1:12M:autoextend 9xtrabackup: innodb_log_group_home_dir = ./ 10xtrabackup: innodb_log_files_in_group = 2 11xtrabackup: innodb_log_file_size = 536870912 12InnoDB: Number of pools: 1 1323:04:07 UTC - xtrabackup got signal 11 ; 14This could be because you hit a bug or data is corrupted. 15This error can also be caused by malfunctioning hardware. 16Attempting to collect some information that could help diagnose the problem. 17As this is a crash and something is definitely wrong, the information 18collection process might fail. 19 20Thread pointer: 0x0 21Attempting backtrace. You can use the following information to find out 22where mysqld died. If you see no messages after this, something went 23terribly wrong... 24stack_bottom = 0 thread_stack 0x10000 25/usr/bin/xtrabackup(my_print_stacktrace+0x35)[0xd19635] 26/usr/bin/xtrabackup(handle_fatal_signal+0x273)[0xbccf03] 27/lib64/libpthread.so.0[0x383920f7e0] 28/usr/bin/xtrabackup(_Z8log_initv+0x24f)[0x7f0bcf] 29/usr/bin/xtrabackup(_Z22xtrabackup_backup_funcv+0x44c)[0x7424ac] 30/usr/bin/xtrabackup(main+0x9a1)[0x747e21] 31/lib64/libc.so.6(__libc_start_main+0xfd)[0x3838a1ed1d] 32/usr/bin/xtrabackup[0x7354e9] 33 34Please report a bug at https://bugs.launchpad.net/percona-xtrabackup

  在这种情况下,通过手动重启mysql数据库,就能解决。

点赞
收藏

评论区

加载中...

相关推荐

MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1

文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s

Oracle 分组与拼接字符串同时使用

SELECTT.,ROWNUMIDFROM(SELECTT.EMPLID,T.NAME,T.BU,T.REALDEPART,T.FORMATDATE,SUM(T.S0)S0,MAX(UPDATETIME)CREATETIME,LISTAGG(TOCHAR(

MySQL 大数据备份方案之Percona XtraBackup

  Xtrabackup介绍1、Xtrabackup是什么Xtrabackup是一个对InnoDB做数据备份的工具,支持在线热备份(备份时不影响数据读写),是商业备份工具InnoDBHotbackup的一个很好的替代品。Xtrabackup有两个主要的工具:xtrabackup、innobackupex1、xtrabackup只能备份Inn

mysql的全量备份与增量备份

mysql的全量备份与增量备份全量备份:可以使用mysqldump直接备份整个库或者是备份其中某一个库或者一个库中的某个表。备份所有数据库:\root@my~\mysqldumpurootp123456alldatabases/opt/all.sqlmysqldump:\Warning\Usinga

MySql 备份+ 高可用(二)

一、Xtrabackup介绍  MySQL冷备、mysqldump、MySQL热拷贝都无法实现对数据库进行增量备份。在实际生产环境中增量备份是非常实用的,如果数据大于50G或100G,存储空间足够的情况下,可以每天进行完整备份,如果每天产生的数据量较大,需要定制数据备份策略。例如每周实用完整备份,周一到周六实用增量备份。

Twitter的分布式自增ID算法snowflake (Java版)

概述分布式系统中,有一些需要使用全局唯一ID的场景,这种时候为了防止ID冲突可以使用36位的UUID,但是UUID有一些缺点,首先他相对比较长,另外UUID一般是无序的。有些时候我们希望能使用一种简单一些的ID,并且希望ID能够按照时间有序生成。而twitter的snowflake解决了这种需求,最初Twitter把存储系统从MySQL迁移