By acionista
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!
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:
- 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:
- sudo apt install ncdu
This will graphically represent your disk usage:
- 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!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.