Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No space left on device [closed]

I am getting the error "No space left on device" when i tried to scp some files to a centos machine,

tried to check:

[root@...]# df -h Filesystem            Size  Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol01 18G   18G     0 100% / 

And when I do

du -sh / -> it gives only 5G

[... ~]$ df -i / Filesystem            Inodes   IUsed   IFree IUse% Mounted on /dev/mapper/VolGroup00-LogVol01                      4685824  209516 4476308    5% / 

seems like file system is full. How can i find which one is taking these much size?

like image 514
Futuregeek Avatar asked Jul 10 '14 08:07

Futuregeek


People also ask

How do I fix Oserror Errno 28 No space left on device?

Your local folder does not have enough space available for the operation. In your environment, update the 'TEMP', 'TMPDIR' or 'TMP' environment variable to a location with additional free space. Validate the updated location: Windows - command-prompt 'set'

What does no space left on device mean on safari?

When there's no more space left on your Mac, macOS notifies you that “Your disk is almost full.” Begin by checking the storage capacity in the Apple menu > Storage > About This Mac. The quickest way to free up space is to clear cache files.

What happens when inode is full?

In short, the inode is the number of files present in the server. If the inode limit is reached, the user can't add any new file to the server.


1 Answers

Such difference between the output of du -sh and df -h may happen if some large file has been deleted, but is still opened by some process. Check with the command lsof | grep deleted to see which processes have opened descriptors to deleted files. You can restart the process and the space will be freed.

like image 98
VolenD Avatar answered Sep 23 '22 14:09

VolenD