df -i shows %iused at 99% ...

which means (as I understand it) the server is rapidly approaching the maximum amount of files (inodes) that can be created.
Get info shows plenty of space. This server is used just to hold
Photoshop docs, and I have been assured that the docs are NOT being opened/edited/saved on the server but are being downloaded onto the local client edited and then uploaded.
I'm skeptical... but no matter. Some where on this drive is a huge amount of little files and for the life of I can't figure out a terminal command to search / for a directory containing greater than say 10,000 files that are less than equal to 5k in size.

Posted on Sep 29, 2005 8:04 PM

Reply
1 reply

Oct 2, 2005 7:54 PM in response to Charles S.

Wow, that is a lot to go through. I can start you off at the opposite end and that is with 'du -sk * | sort -nr | head' that will show you the top 10 FILES or DIRECTORIES from the directory you are currently in (e.g. ~, /var/log/ ) so the n conversely to see the SMALLEST you would do 'du -sk * | sort -n | head'.

OK so the 'cheezy' way would be to 'du -sk / > /output.txt' then sort it then you could tail it's output... this will take A LONG TIME, and probably longer than that. I don't think there is a much better way. I mean by this that attempting a sort -nr inline might take even longer as it will attempt to put the whole du -sk into memory then use even more memory to sort it. YUCK! so I wold not try it for /.

Well give that a whirl and let us know how it went.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

df -i shows %iused at 99% ...

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.