Error: No space left on device - Ubuntu


My droplet didn’t have no more space so I have decided to add a volume to it. Since the volume was added the website is down and I keep getting an error saying no space left on device. How to fix this error ?

Show comments

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.

Hello, all

Have you resized the disk after the droplet was upgraded from the control panel?

I will recommend you to double-check the link which Sri provided:

For ext3/4 filesystems, use resize2fs to resize the filesystem.

  1. resize2fs /dev/vda1

For XFS, use xfs_growfs to resize the filesystem.

  1. xfs_growfs /dev/vda1

Regards, Alex

Hi @aimericmoser,

You can resize your Droplet. Resizing a server, also known as vertical scaling, increases the amount of resources a server has. Increasing its memory and CPU improves its performance, and increasing the size of its disk increases the amount of data you can store. The resize however will increase all of your rescourses such as Disk, CPU and RAM.

You can read more about it here:

If you want to extend only your storage, there is another way. You can use Block Storages. Block storage volumes are network-based block devices that provide additional data storage for Droplets. You can move them between Droplets and resize them at any time.

You can read more about hem here:

Hi @aimericmoser,

I’m glad you were able to resolve the issue. Can you share what files were taking so much space? Usually, there are 3 possibilities, Log files, sessions, emails, or pictures. Which was in your case?

In any case, what I do usually is start looking at the folder and how big they are from /. If I see something that’s not normal I cd into them and repeat the procedure.

Regards, KDSys