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?
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'
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With