憧れ propeller head X:-)

浜松市のIT企業シーポイントラボで働くエンジニアのブログ! IT技術を、お客様のIT活用&仕事の効率化に生かすのがお仕事です。 趣味はバイク「ハーレー」&キャンプ、そして最近は浜名湖や遠州灘サーフで釣りも少々。

MySQL で innodb_force_recovery

今日は後回しにしていたたMySQLの復旧を行いました。以下のメッセージから調査した所 innodb_force_recovery 値を設定することで復旧ができる可能性があることを見つけたのでどのレベルで復旧できるか試してみました。
170126 17:55:26  InnoDB: Assertion failure in thread 3796 in file fut0lst.ic line 83
InnoDB: Failing assertion: addr.page == FIL_NULL || addr.boffset >= FIL_PAGE_DATA
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.
170126 17:55:26 - mysqld got exception 0xc0000005 ;
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.

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

Thread pointer: 0x37191b0
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...
003568DE    mysqld.exe!my_osmaperr()
00356C2A    mysqld.exe!my_osmaperr()
003572F3    mysqld.exe!my_osmaperr()
002E6E63    mysqld.exe!my_osmaperr()
0034F233    mysqld.exe!my_osmaperr()
002F5D15    mysqld.exe!my_osmaperr()
00426C94    mysqld.exe!my_mb_ctype_mb()
00413858    mysqld.exe!my_mb_ctype_mb()
まずは innodb_force_recovery=1 。・・・
無事復旧。
まだまだ障害レベルとしては甘かった・・・あっけなく復旧できてしまいました。レベルとしては 1 ~ 6 までの 6 段階あり、障害規模に応じてレベルを変えていく、そのかわり復旧できる部分は減っていくという感じです。無事に復旧できて良かった。

タグ :mysql

同じカテゴリー(IT雑記)の記事
壊れたUSBメモリー
壊れたUSBメモリー(2017-11-21 22:21)

NFCとpayWave
NFCとpayWave(2017-11-15 03:38)

WiFi WPA2 のぜい弱性
WiFi WPA2 のぜい弱性(2017-10-17 22:20)

同じ構成のPC
同じ構成のPC(2017-10-16 17:26)

HTCのスマホ部門
HTCのスマホ部門(2017-09-21 20:39)

プライムデー
プライムデー(2017-07-10 23:09)

最近の VNE 対応業者
最近の VNE 対応業者(2017-07-07 03:24)

Interop Tokyo 2017
Interop Tokyo 2017(2017-06-08 02:30)

スマートTV化
スマートTV化(2017-05-30 01:52)

上の画像に書かれている文字を入力して下さい
<ご注意>
書き込まれた内容は公開され、ブログの持ち主だけが削除できます。

削除
MySQL で innodb_force_recovery
    コメント(0)