Question

No space left on device - I can't start apache, mysql or install anything.

How to fix this problem?

If I use

df -i

I receive:

Filesystem                 Inodes   IUsed  IFree IUse% Mounted on
udev                       218483     402 218081    1% /dev
tmpfs                      220126     340 219786    1% /run
/dev/disk/by-label/DOROOT 2621440 2621440      0  100% /
none                       220126       1 220125    1% /sys/fs/cgroup
none                       220126       1 220125    1% /run/lock
none                       220126       1 220125    1% /run/shm
none                       220126       1 220125    1% /run/user

If I use

df -h

Seems to be good

Filesystem                 Size  Used Avail Use% Mounted on
udev                      1005M  4.0K 1005M   1% /dev
tmpfs                      202M  340K  202M   1% /run
/dev/disk/by-label/DOROOT   40G   20G   18G  53% /
none                       4.0K     0  4.0K   0% /sys/fs/cgroup
none                       5.0M     0  5.0M   0% /run/lock
none                      1008M     0 1008M   0% /run/shm
none                       100M     0  100M   0% /run/user

How to solve “IUse - 100%” ? Thank you!


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

df -i checks for inode usage. Inodes only represent sort of structures or objects which are written on your device, basically a metadata or pointers. Being full on Inodes usually means that you have too many files (in terms of amount, not size) written on your disk.

Perhaps you’re using some application which writes too many small log files or stores the sessions data for each visitor and doesn’t clean-up.

More on this issue and how to solve it/find the files can be found here - http://unix.stackexchange.com/questions/117093/find-where-inodes-are-being-used

Occasionally, a file will be deleted, but a process is still using it. Linux won’t release the storage associated with the file while the process is still running. You just need to find the process and restart it.

Try to locate the process.

sudo lsof / | grep deleted

The problematic process should be listed, then just restart it.

sudo systemctl restart service_name

If this doesn’t help, then I’ll recommend trying to reboot the droplet and see what happens.