Scenario
The disk is empty and the file will not be created
df shows an empty filesystem, yet no new file can be created: "No space left on device". Work out why and make writing possible again.
The queue service cannot write a single new file. The log repeats one line: "No space left on device". The on-call engineer looked at the disk, saw it was empty, and stopped there.
The symptom
There are a full 64 MB free on /tmp, and even an empty file will not be created.
$ df -h /tmp
Filesystem Size Used Avail Use% Mounted on
tmpfs 64M 8.0K 64M 1% /tmp
$ touch /tmp/hello
touch: cannot touch '/tmp/hello': No space left on deviceThe error message is not lying. The "space" it means is simply not the space df -h reports.
What you have to end up with
Three conditions. A file can be created on /tmp again. There are at least five hundred free inodes there, so the headroom l
Free with account
Finish this lesson with a free account
This lesson is free once you sign in. Create an account to keep reading and open the lab.
Already have an account? Sign in