Question

High Disk Usage

Hi! My site is not loading anymore. I checked everything, ssl, configs, cloudflare, error and access logs, but all seems to be normal, until I login to my DO panel. I noticed a high disk usage even though the cpu usage, disk I/O, and load are all low. I didn’t add anything aside from the necessary tools that I need


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.

Hi @slarklord123,

I’m glad to hear you managed to find and resolve the source of the issues!

Bear in mind that these backups were generated somehow, I’ll suggest trying to see if they are still being generated and if yes stop them otherwise you’ll end in the same situation.

Hi @slarklord123,

If your droplet is full, like 100% full it might cause issues with other services unable to write data. Usually, this is caused by a plugin of your website/application or anything similar not being configured properly.

What I’ll suggest you do is SSH to your droplet and start digging around. When I need to check for disk usage, I check for big files first. You can do that with a find command:

find / -type f -size +100M

Wait for the command to finish, it might take a while!

Next if you don’t see anything that can be removed, would be to check folders with the biggest number of files. Let’s say sessions, your application can generate session files (like Magento does) and after that not remove them. They can be small files but if they are too many, the disk usage will still be up.

You can use the following command to find the directories with the most files inside:

find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n;

If uncertain what can be removed, I’ll suggest contacting the person that developed your website, they should know what can be removed or not.

One last thing, if all files are needed, maybe you just need to upgrade your droplet to have more DISK space.

Regards, KFSys

Hello @slarklord123

Thanks for reaching out! Kindly elaborate bit more on the errors you encounter as it helps understand the issue. Regarding disk usage, it would normally be a result of either an application/process or the kernel process running within the Droplet itself.

In most cases, you can enter the Droplet via web console or SSH to explore the CPU usage on the Droplet:

https://www.digitalocean.com/community/tutorials/how-to-monitor-cpu-use-on-digitalocean-droplets

https://www.digitalocean.com/community/tutorials/how-to-use-ps-kill-and-nice-to-manage-processes-in-linux

Feel free to provide more details here or open a support ticket with Droplet details at https://cloudsupport.digitalocean.com/s/

Hope this helps!

Cheers, Lalitha