Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Lookup] Error writing file '/tmp', (Errcode: 28 - No space left on device) #540
Logblock dev 223.
Checking disk space with 'df -h', I have 176GB available on my main drive, 16GB available for 'tmpfs', 1.8GB out of 2GB available for '/temp', and 1.9GB out of 2GB available for '/var/temp', on my dedicated node. How is there 'No space left on device' ? My logblock database for mysql is 2.4GB large.
The exact error is it can't write to /tmp because there's no space wherever /tmp is mounted. In some Linux distributions, /tmp is mounted as a tmpfs (ramdisk), so even if your disk has plenty of space you can get a "no space" error if you try to write too much there.
From the stack trace it looks as though this happened during a lookup (or lookup-and-rollback) - if the lookup was either returning a lot of data, or possibly even just sifting through a lot of data, large temp files could be created.
Possible solutions are make MySQL use a different temp directory, or to not use tmpfs for /tmp