4

I have a tests that I run on a device which has a 300M of ram-disk based /tmp and I get "no space left on device" even though when I run df -h I find that only 11% of the /tmp is actually used.

I am very confused, any hints on what should I look for?

Bionix1441
  • 297
  • 6
  • 14

2 Answers2

4

Two hypotheses come to mind:

  • Running out of inodes (df -i)
  • Disk quota for the user exceeded (quota -u username)
DopeGhoti
  • 73,792
  • 8
  • 97
  • 133
2

It may well be that the test tries to create a file that's bigger than the available space, and it is deleted when hitting the "not enough space" condition. Try to monitor the disk space permanently on another console while running the test:

$ while true; do df -h /tmp; sleep 0.5; done
Murphy
  • 2,609
  • 1
  • 13
  • 21