Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disk space used but never freed from MySQL #160

Merged
merged 1 commit into from
Aug 30, 2016
Merged

Conversation

EvanK
Copy link
Contributor

@EvanK EvanK commented Aug 30, 2016

Evidently a known issue for MySQL 5.5 and below, innodb uses a single file for assorted tables' storage, and consumes but never releases disk space. This results in giant ib* files:

deploy@production:~$ sudo ls -alh /var/lib/mysql/
total 1.6G
drwx------  6 mysql mysql 4.0K Jun 10 16:49 .
drwxr-xr-x 41 root  root  4.0K Feb 23  2016 ..
-rw-r--r--  1 root  root     0 Aug 13  2015 debian-5.5.flag
-rw-rw----  1 mysql mysql 1.6G Aug 29 12:50 ibdata1
-rw-rw----  1 mysql mysql 5.0M Aug 29 12:50 ib_logfile0
-rw-rw----  1 mysql mysql 5.0M Aug 29 12:44 ib_logfile1
drwx------  2 mysql root  4.0K Aug 13  2015 mysql
-rw-rw----  1 root  root     6 Aug 13  2015 mysql_upgrade_info
drwx------  2 mysql mysql 4.0K Aug 26 15:21 wordpress
drwx------  2 mysql mysql 4.0K Aug 13  2015 performance_schema
drwx------  2 mysql root  4.0K Aug 13  2015 test

@EvanK EvanK added the bug label Aug 30, 2016
@EvanK EvanK merged commit 0b550f9 into master Aug 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant