"No space left on device" on mounted volume

Hi, i try to move my data to newely attached volume of 30 GB.

and fails with a following message:

cp: cannot create regular file '/mnt/volume_fra1_01/data/2_alkis/cache/15/17242/10813.pbf': No space left on device
cp: cannot create directory '/mnt/volume_fra1_01/data/tmp': No space left on device

when i check an available space there is still 20GB free on a volume

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs            97M 1020K   96M   2% /run
/dev/vda1        25G   21G  3.2G  87% /
tmpfs           485M     0  485M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/vda15      105M  5.3M  100M   5% /boot/efi
tmpfs            97M  4.0K   97M   1% /run/user/1000
/dev/sda         30G   11G   19G  36% /mnt/volume_fra1_01

is it a bug or a feature?

Show comments

Submit an answer
Answer a question...

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 @Bobby tnx for a feedback, but i already removed this volume and attached a new one with +5G above the previous one. and it just worked.

Bobby Iliev
Site Moderator
Site Moderator badge
December 15, 2022

Hi there,

It is possible that you’ve filled up your inodes rather than the disk space itself. You can check if this is the case with the following command:

df -i

This usually happens when there are a lot of small files and it is the number of files that causes the problem rather than the size.

If this is the case, use the following command to find the directory that contains most of those files:

sudo find / -type f -size +500M -exec ls -lh {} \;

Let me know how it goes!


Bobby Source