the problem is that on some directories on this FS i cannot do anything (ls, cat or vi) on any file because it gets stuck. For what is worht those directories are the home dirs of some application users.
I assume it may be that the respective directories have a huge number of files, however they cannot be more than 2834.
I tried
/bin/ls -f
(to avoid coloration and default ls sorting) and still it gets stuck. How can I acess/cleanup these directories on this FS?
ls should return results, but when you have large number of files it will be slow.
3000 files is not a big number, so that should work fairly fast. I suspect a much higher number of files in specified directories.
Thanks for the reply. it was a typo, I ment 28349. That;s the number of inodes used on that FS. I tried your command and it also got stuck. But I think it was a FS problem, because I umounted it and checked it with fsck and it found some errors:
/dev/mapper/cpc_uat_app-cpc_uat: Inode 1474610, i_size is 9835956, should be 9842688. FIXED.
/dev/mapper/cpc_uat_app-cpc_uat: Inode 1474610, i_blocks is 19296, should be 19256. FIXED.
/dev/mapper/cpc_uat_app-cpc_uat: Inode 1770350, i_size is 9835956, should be 9842688. FIXED.
/dev/mapper/cpc_uat_app-cpc_uat: Inode 1770350, i_blocks is 19264, should be 19256. FIXED.
/dev/mapper/cpc_uat_app-cpc_uat: Inode 1771268, i_size is 1170832887, should be 1170841600. FIXED.
/dev/mapper/cpc_uat_app-cpc_uat: Inode 3016246, i_size is 1733108917, should be 1733115904. FIXED.
/dev/mapper/cpc_uat_app-cpc_uat: Inode 3016246, i_blocks is 3388352, should be 3388312. FIXED.
After this I mounted back the FS and everything worked.