Question

Volume showing less space than available

This volume is supposed to have 5 Gigabytes of space, as shown on the control panel; however, I am getting no more space errors:

These seem alright:

sudo lsblk:

NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT     
loop0     7:0    0 89.4M  1 loop /snap/core/6818
loop1     7:1    0 88.4M  1 loop /snap/core/6964
loop2     7:2    0 54.2M  1 loop /snap/lxd/10756
sda       8:0    0    5G  0 disk /alloy         
sdb       8:16   0    5G  0 disk /sinnoh        
sdc       8:32   0    5G  0 disk /redstone      
vda     252:0    0   25G  0 disk                
├─vda1  252:1    0 24.9G  0 part /              
├─vda14 252:14   0    4M  0 part                
└─vda15 252:15   0  106M  0 part /boot/efi      
vdb     252:16   0  434K  1 disk                

sudo fdisk -l /dev/sda:

Disk /dev/sda: 5 GiB, 5368709120 bytes, 10485760 sectors
Disk model: Volume
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

sudo df -hia /alloy/:

Filesystem     Inodes IUsed IFree IUse% Mounted on
/dev/sda          16K   401   16K    3% /alloy

These do not:

git pull: No space left on device hg commit: No space left on device

sudo df -ha /alloy/:

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda        380M  345M     0 100% /alloy

So I’m not exactly sure what’s going on here.


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello!

You can check for any files that are currently open. Use the following command:

lsof | grep deleted

If you see any files that are currently open, check the process/service related to them. Usually the web server (apache/httpd or nginx) or mysql might need a restart to release and update the disk space usage.

Hope this helps.

You can always contact their support team about that.

The thing is lsblk will list you the size of the partition where df will list you the size of the filesystem.

Did you recently tried to upgrade the disk size of the partition?

Alex

I’m sure you’ve already checked the alloy directory and if there are any files within the directory itself. Keep in mind that there might be some hidden files.

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

Will print out a list of directories and the number of files they contain with the largest at the bottom. With that information, you should be able to work out what is going on.

Another thing you can do is to perform a file system check.

Alex