Author Topic: InnoDB: Dumping buffer pool(s) not yet started Can't init tc log  (Read 3787 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
InnoDB: Dumping buffer pool(s) not yet started Can't init tc log
« on: พฤษภาคม 29, 2017, 09:50:08 PM »
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: The InnoDB memory heap is disabled
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Compressed tables use zlib 1.2.7
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Using Linux native AIO
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Using SSE crc32 instructions
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Initializing buffer pool, size = 2.0G
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Completed initialization of buffer pool
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Highest supported file format is Barracuda.
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: 128 rollback segment(s) are active.
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Waiting for purge to start
2016-09-30 22:32:46 139758293125248 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.31-77.0 started; log sequence number 1600799
2016-09-30 22:32:46 139754263774976 [Note] InnoDB: Dumping buffer pool(s) not yet started
2016-09-30 22:32:46 139758293125248 [Note] Plugin 'FEEDBACK' is disabled.
2016-09-30 22:32:46 139758293125248 [ERROR] Can't init tc log
2016-09-30 22:32:46 139758293125248 [ERROR] Aborting

วันก่อนเจอปัญหาเรื่อง start mysqld ไม่ขึ้น หลังจาก trace error log ดูพบว่าไฟล์ tc.log เกิดเสียหายครับ
ซึ่งไฟล์นี้มันจะเก็บ Log ในกรณีที่เราไม่ได้ใช้งานตัว binary log ครับ
ปกติจะถูกตั้งไว้ที่ 24K แต่ไฟล์ดันเสีย

The name of the memory-mapped transaction coordinator log file (for XA transactions that affect multiple storage engines when the binary log is disabled). The default name is tc.log. The file is created under the data directory if not given as a full path name. This option is unused.

วิธีแก้ไขก็คือทำการ rm rc.log ออกแล้วสั่ง restart mysqld อีกรอบก็จะ start ขึ้นได้ครับผม : )

cd /var/lib/mysql
mv tc.log tc.log_ori
/etc/init.d/mysqld restart

เรียบร้อยครับผม

##reference
https://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_log-tc