Report this

What is the reason for this report?

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

Posted on May 11, 2016

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!



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!

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.

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.

Hello there,

Since the inode limit is reached you can check if there are any session or cache files saved on the / partition and clear them out or just the ones that are older in date.

You can check this question that was previously asked in our community. Bobby’s answer is top notch

https://www.digitalocean.com/community/questions/28-no-space-left-on-device-error

Regards

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.