10

I'm running an Ubuntu 12.04.1 server in a VMware virtualized environment that has a strange issue. Twice now, at seemingly random times, the machine has suddenly been unable to write to the root partition despite plenty of space seemingly available. I'm at a loss trying to figure out what's wrong.

"df -h" shows all mounted volumes with 40% or more free space. Both times this has happened, rebooting resolved it for a few minutes, and then it was back to saying "no space left on device." Restoring it from a snapshot seems to fix it for longer, but since this has now happened again, I'm not sure what to do with it.

If it helps, the machine is a network print server running CUPS 1.5.3 and Samba 3.6.3.

Example Situation

1 Answer 1

15

Try with the df -i which will show you how much free inodes you have.

Basically sometimes you can run out of disk space to store metadata (data about data). That usually happens if you have a lot of small files.

3
  • Well, it definitely looks suspicious. i.imgur.com/wKkHJ.png What can I do about it? Sep 13, 2012 at 12:53
  • I've done some googling and tracked it down to a ton of files in my Samba spool directory. I guess I can take it from here. Thanks! Sep 13, 2012 at 13:03
  • @Moduspwnens yeah that was it, whenever you see 100% used iNodes that means you won't be able to store any new data on the hard drive, regardless of the free space.
    – golja
    Sep 14, 2012 at 3:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .