My Oracle Support Banner

CANNOT ENABLE InnoDB PAGE COMPRESSION ON LINUX (GENERIC MySQL BINARIES) (Doc ID 2176999.1)

Last updated on MARCH 12, 2018

Applies to:

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

Goal

Describe why when using MySQL generic binaries, it is not possible to enabled InnoDB Page compression, even setting the page and block size as described in the documentation ( innodb_page_size=16k and file system (ext4) block size set to 4k) and the system is part of the supported platforms.

As a symptom of this issue we can see in MySQL log the below warning

20xx-0x-22T09:05:20.556087Z 0 [Note] InnoDB: PUNCH HOLE support not available
| Warning | 138 | InnoDB: Punch hole not supported by the file system or the tablespace page size is not large enough. Compression disabled |

How to Check the block size:

sudo tune2fs -l /dev/fioa | egrep -i 'block size|features'

Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize

Block size: 4096

Solution

To view full details, sign in with your My Oracle Support account.

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


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.