2016-08-05 2 views
0

MySQLサーバに何が問題なのかわかりませんでした。エラーログは以下の通りです。私はinnodb回復を試み、ファイルを取り除いて再起動しましたが、それは助けになりませんでした。 http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.htmlPerconaサーバがPIDファイルを更新せずに終了する

InnoDB: Serious error! InnoDB is trying to free page 1344 
InnoDB: though it is already marked as free in the tablespace! 
InnoDB: The tablespace free space info is corrupt. 
InnoDB: You may need to dump your InnoDB tables and recreate the whole 
InnoDB: database! 
InnoDB: Please refer to 
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html 
InnoDB: about forcing recovery. 
160805 9:43:22 InnoDB: Assertion failure in thread 139839724754688 in file fsp0fsp.c line 3329 
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.5/en/forcing-innodb-recovery.html 
InnoDB: about forcing recovery. 
16:43:22 UTC - mysqld got signal 6 ; 
This could be because you hit a bug. It is also possible that this binary 
or 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 help 
diagnose the problem, but since we have already crashed, 
something is definitely wrong and this may fail. 
Please help us make Percona Server better by reporting any 
bugs at http://bugs.percona.com/ 

key_buffer_size=8388608 
read_buffer_size=131072 
max_used_connections=0 
max_threads=153 
thread_count=0 
connection_count=0 
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 343009 K bytes of memory 
Hope that's ok; if not, decrease some variables in the equation. 

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 0x40000 
/usr/sbin/mysqld(my_print_stacktrace+0x35)[0x7ce5a5] 
/usr/sbin/mysqld(handle_fatal_signal+0x4b4)[0x6a2f54] 
/lib64/libpthread.so.0(+0xf7e0)[0x7f2f139367e0] 
/lib64/libc.so.6(gsignal+0x35)[0x7f2f11f915e5] 
/lib64/libc.so.6(abort+0x175)[0x7f2f11f92dc5] 
/usr/sbin/mysqld[0x919d97] 
/usr/sbin/mysqld[0x91a148] 
/usr/sbin/mysqld[0x8bb858] 
/usr/sbin/mysqld[0x97b427] 
/usr/sbin/mysqld[0x97b9d8] 
/usr/sbin/mysqld[0x96f907] 
/usr/sbin/mysqld[0x88e7a7] 
/usr/sbin/mysqld[0x882d6c] 
/lib64/libpthread.so.0(+0x7aa1)[0x7f2f1392eaa1] 
/lib64/libc.so.6(clone+0x6d)[0x7f2f12047aad] 
You may download the Percona Server operations manual by visiting 
http://www.percona.com/software/percona-server/. You may find information 
in the manual which will help you identify the cause of the crash. 
160805 09:43:22 mysqld_safe mysqld from pid file /var/lib/mysql/websult.arvixevps.com.pid ended 

答えて

1
InnoDB: Error: log file ./ib_logfile0 is of different size 0 33554432 bytes 
InnoDB: than specified in the .cnf file 0 5242880 bytes! 

ログファイルのサイズが、それは期待しているものと異なる場合InnoDBはそれが好きではありません。ファイルが紛失または破損するリスクがある場合は、データ復旧に使用できない可能性があります。データへのさらなる被害を避けるのではなく、MySQLはシャットダウンします。

5MBのファイルサイズがデフォルトです。しかし、あなたが持っているログファイルのサイズは32MBです。したがって、は、を使用して、ログファイルサイズを32MBに設定する構成を持つことは明らかです。おそらく、誰かが/etc/my.cnfファイルを削除したか、それを編集したでしょう。そして、MySQLサービスを再起動

[mysqld] 
innodb_log_file_size=33554432 

を:

あなたな/etc/my.cnfを編集して設定することができます。


「あなたのデータベースが破損している可能性があるか、InnoDBはInnoDBのコピーされている可能性があります。表領域ではなく、InnoDBのログファイル」

これは非常に自明です。私はあなた(または他の誰か)がMySQLを理解することなくファイルを移動しようとしたと考えています。最近のバックアップがある場合は、ibdata1ib_logfile*を削除し、MySQLを起動してバックアップを復元します。

バックアップをお持ちでない場合は、これを解決できるMySQLコンサルタントが必要です。私はhttps://twindb.com/mysql-data-recovery/またはhttps://www.percona.com/solutions/fix/data-recoveryをお勧めします。

+0

ありがとうございます。私はmy.cnfを更新しましたが、今はエラーが異なるようです。あなたはそれを調べてください。 –

+0

質問を編集して新しいエラーを追加した後、私にアイ​​デアがあるかどうかがわかります。 –

+0

こんにちは@Bill Karwin、私はエラーログの詳細を更新しました。見てください。 –

関連する問題