mysql 5.6.34 突然宕機,啟動不了,提示[ERROR] InnoDB: Space id in fsp header

來源:互聯網
上載者:User

標籤:mysql 5.6.34 報錯 [error] innodb: space id in fsp header

一、問題描述

一台線上的從伺服器,半夜收到警示簡訊通知異常,串連到該伺服器,發現mysqld進程不在了,ps 查看,也沒有查到。於是重啟,但是重啟失敗,提示without pid file 於是查看errorlog,內容如下:

2017-09-22 03:37:42 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled2017-09-22 03:37:42 0 [Note] /opt/app/mysql5/bin/mysqld (mysqld 5.6.34-log) starting as process 166408 ...2017-09-22 03:37:42 166408 [Note] Plugin ‘FEDERATED‘ is disabled.2017-09-22 03:37:42 7f5b77946720 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB‘s internal memory allocator.2017-09-22 03:37:42 166408 [Note] InnoDB: Using atomics to ref count buffer pool pages2017-09-22 03:37:42 166408 [Note] InnoDB: The InnoDB memory heap is disabled2017-09-22 03:37:42 166408 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins2017-09-22 03:37:42 166408 [Note] InnoDB: Memory barrier is not used2017-09-22 03:37:42 166408 [Note] InnoDB: Compressed tables use zlib 1.2.32017-09-22 03:37:42 166408 [Note] InnoDB: Using CPU crc32 instructions2017-09-22 03:37:42 166408 [Note] InnoDB: Initializing buffer pool, size = 4.0G2017-09-22 03:37:43 166408 [Note] InnoDB: Completed initialization of buffer pool2017-09-22 03:37:43 166408 [Note] InnoDB: Highest supported file format is Barracuda.2017-09-22 03:37:43 166408 [Note] InnoDB: Log scan progressed past the checkpoint lsn 40142270189622017-09-22 03:37:43 166408 [Note] InnoDB: Database was not shutdown normally!2017-09-22 03:37:43 166408 [Note] InnoDB: Starting crash recovery.2017-09-22 03:37:43 166408 [Note] InnoDB: Reading tablespace information from the .ibd files...2017-09-22 03:37:43 166408 [ERROR] InnoDB: Space id in fsp header 1416128883,but in the page header 82419585019:37:43 UTC - mysqld got signal 11 ;This could be because you hit a bug. It is also possible that this binaryor one of the libraries it was linked against is corrupt, improperly built,or misconfigured. This error can also be caused by malfunctioning hardware.We will try our best to scrape up some info that will hopefully helpdiagnose the problem, but since we have already crashed, something is definitely wrong and this may fail.key_buffer_size=536870912read_buffer_size=16777216max_used_connections=0max_threads=1024thread_count=0connection_count=0It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 84423448 K  bytes of memoryHope that‘s ok; if not, decrease some variables in the equation.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 0x40000/opt/app/mysql5/bin/mysqld(my_print_stacktrace+0x35)[0x8eebe5]/opt/app/mysql5/bin/mysqld(handle_fatal_signal+0x41b)[0x6556ab]/lib64/libpthread.so.0[0x3ff300f7e0]/opt/app/mysql5/bin/mysqld[0xb3366b]/opt/app/mysql5/bin/mysqld[0x9a240d]/opt/app/mysql5/bin/mysqld[0xa49e6b]/opt/app/mysql5/bin/mysqld[0xa89e06]/opt/app/mysql5/bin/mysqld[0xa8c0ab]/opt/app/mysql5/bin/mysqld[0xa908c7]/opt/app/mysql5/bin/mysqld[0xa95502]/opt/app/mysql5/bin/mysqld[0x9844ec]/opt/app/mysql5/bin/mysqld[0x989bab]/opt/app/mysql5/bin/mysqld[0x9fe679]/opt/app/mysql5/bin/mysqld[0x94acd7]/opt/app/mysql5/bin/mysqld(_Z24ha_initialize_handlertonP13st_plugin_int+0x48)[0x590798]/opt/app/mysql5/bin/mysqld[0x6e8716]/opt/app/mysql5/bin/mysqld(_Z11plugin_initPiPPci+0xb3e)[0x6ebf2e]/opt/app/mysql5/bin/mysqld[0x583b85]/opt/app/mysql5/bin/mysqld(_Z11mysqld_mainiPPc+0x4d8)[0x588c28]/lib64/libc.so.6(__libc_start_main+0xfd)[0x3ff2c1ed1d]/opt/app/mysql5/bin/mysqld[0x57a8c9]The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html containsinformation that should help you find out what is causing the crash.170922 03:37:43 mysqld_safe mysqld from pid file /opt/app/mysql5/var/mysql.pid ended170922 04:08:37 mysqld_safe Starting mysqld daemon with databases from /opt/app/mysql5/var2017-09-22 04:08:37 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).同樣的,使用/opt/app/mysql5/bin/mysqld_safe也是啟動不了。網上找了很多資料,有說是磁碟滿了有說是記憶體滿了,但是此伺服器的磁碟和記憶體都足夠。有的說是刪除資料目錄下面的ibdata和ib_logfile檔案,然後重新啟動就ok了,然而試了以後依然啟動不了。參考了幾個連結:分析串連:http://qkxue.net/info/155788/MySQL感覺分析的挺有道理的,不過沒有解決方案!

如果有哪位朋友遇到過並且成功解決了,請指教,不勝感激!

本文出自 “知識體系” 部落格,請務必保留此出處http://linuxg.blog.51cto.com/4410110/1967689

mysql 5.6.34 突然宕機,啟動不了,提示[ERROR] InnoDB: Space id in fsp header

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.