I have a disk that has too many small files:
df:
/dev/mapper/mpathc 6056822144 6056822144 0 100% /file3
df -i:
/dev/mapper/mpathc 384589824 12160314 372429510 4% /file3
I need to move small files on same disk like this:
mv /file3/bla/bla/23423/bla/file1.txt /file3/newpath/
But getting error like this:
mv: writing ... No space left on device
Moved some files to other disk (300GB), but df command cannot update. I must have 300GB free disk space, but I can't use.
I tried lsof
command, nothing run on this disk. I tried umount and mount again, there is no change.
What can I do for use this disk spaces?
Thank you
du -m /file3 | sort -n
will find the largest files on your drive.touch
a file? If you can, I think your problem is that you are moving files to a directory that needs to extend, and there is no place to extend. If you cannot, then did you get a read-only error? What file-system is this? If ext2/3/4 what does# dumpe2fs -h /dev/sda2 | grep '^Reserved block count'
say? Is it mounted off a SAN, and if so off what make of SAN disk? Do I understand correctly that you have moved files away to another disk, that those files are no longer there, but that "df used" does not diminish?