Server frequently encounters "InnoDB: Tablespace size stored in header is NNN pages, but the sum of data file sizes is only NNN pages" issue after unclean shutdown / crash with difference of 64 pages (Doc ID 2095703.1)

Last updated on MARCH 16, 2017

Applies to:

MySQL Server - Version 4.0 and later
Information in this document applies to any platform.

Symptoms

You encounter the following InnoDB error frequently after server crashes/restarts, and are probably using the XFS filesystem or something other than ext3 / ext4.  The difference in size is 64 (1MB total, with 16KB pages).

This message can be caused by other issues, including corruption or misconfiguration, for the general case please see the following document:

Error: tablespace size stored in header is ... (Doc ID 1582825.1)

Changes

This issue is most likely to occur if you are frequently adding data causing your data files to automatically expand.  This gives a higher chance that the server crashes during such an expansion.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms