I have a Ubuntu 18.04 droplet running some docker containers. I added a single volume, and after “some amount of time” (as yet unknown) I get “No space left on device” trying to write to it.
if I cd to the mount point and do a ‘touch’ I get the same message. rebooting the droplet makes it work again.
fstab is: /dev/disk/by-id/scsi-0DO_Volume_dockervol2 /mnt/dockervol2 ext4 defaults,nofail,discard 0 0
anyone come across something similar?
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.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hi @neil2609d7b023c26027079ecc,
It does seems like you don’t have enough space on your Volume. You can check that by typing:
The output would look something like this:
In my case I am using 20G out of 25GB available for my root partition. Basically, the
df
command reports the file system disk space usage.Depending on the size of your disk, the command might take a while to complete. You can then go ahead and delete any of the large files that you do not need.
du
command which estimates the file space usage:For example:
Then we can
cd
into the largest folder and run the command again:We would need to do that a few more times until we get to the folder that is using those 5GB.
Note: if you have a database service like MySQL, make sure Not to delete any files manually from the MySQL folder. This would cause issues with your database.
If you are unable to clear any disk space I would recommend upgrading your Droplet.
Lastly, I believe in your case it can be due to high inode usage so do not forget to check the
df -i
command.