Report this

What is the reason for this report?

100% disk usage in almost every day of this week

Posted on November 8, 2019

Hello, We need some help.

Almost every day in this week we needed to shutdown our servers because of writing usage. Is there any history for us to know what is impacting the disk?



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.

Hi @acionista,

Most probably it’s something related to your application. Have you managed to find the actual source of the disk usage? I’ll recommend you to try and find out what exactly is the cause.

Here are a few tips on how to pinpoint your troubles

Linux find a biggest files in /

sudo du -ha / | sort -n -r | head -n 20

It will show you top 20 of largest files in your /. Having said that, this command is quite heavy and it might take some time to execute.

Another good command to skip the directories and just search for big files is

find / -type f -printf "%s\t%p\n" | sort -n | tail -1

Another problem might be you are running out of inodes. You can check this with the following

df -i

If you are indeed running out of inodes, most probably your application is creating too much session files or temporary files which are never removed.

Regards, KDSys

Heya,

You can check which folders are using the most space on the Droplet by using the disk utilization command, du:

  1. du -h --max-depth=1 /

Check our tutorial on How to fix disk space issues here:

https://docs.digitalocean.com/support/how-do-i-fix-disk-space-issues-on-my-droplet/

There is also an ncurses interface for du, appropriately called ncdu, that you can install:

  1. sudo apt install ncdu

This will graphically represent your disk usage:

  1. ncdu
Output--- /root ----------------------------------------------------------------------
    8.0KiB [##########] /.ssh
    4.0KiB [#####     ] /.cache
    4.0KiB [#####     ]  .bashrc
    4.0KiB [#####     ]  .profile
    4.0KiB [#####     ]  .bash_history

You can step through the filesystem by using the up and down arrows and pressing Enter on any directory entry.

Hope that this helps!

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.