Results 1 to 10 of 10
I've got a server with over 1.5 Million files in a single directory, which really is not a good idea.
My problem is that the management refuses to accept the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-16-2008 #1Linux Enthusiast
- Join Date
- Aug 2006
- Location
- Portsmouth, UK
- Posts
- 539
Too Many Files!
I've got a server with over 1.5 Million files in a single directory, which really is not a good idea.
My problem is that the management refuses to accept the fact that it's a bad idea to have that many files in one directory.
To make the problem worse, the folder in question is exported via Samba and NFS!
Has anyone come across any references/documents that I could use to slap some sense into them?
So far all concerns from Sys admins and Developers have been ignored.
Oh and to boot, the next release of the application looks set to produce 3 times as many files.RHCE #100-015-395
Please don't PM me with questions as no reply may offend, that's what the forums are for.
- 01-17-2008 #2That does Fix everything then you have no files anymoreCode:
rm -rf /

Anyhow, well first drop the Samba and the NFS so the files will not move everytime.
Then you can make some small Directorys in the big dir.
Then you move them by huge amounts.
with something like
for p in /your/dir/* ; do if [[ "$p" = "*.txt" ]];then ; mv $p txt; fi ; done
Not sure that exact will work but do something Like that.
I hope that did help you.
- 01-17-2008 #3Linux Enthusiast
- Join Date
- Aug 2006
- Location
- Portsmouth, UK
- Posts
- 539
RHCE #100-015-395
Please don't PM me with questions as no reply may offend, that's what the forums are for.
- 01-17-2008 #4
- 01-17-2008 #5Linux Enthusiast
- Join Date
- Aug 2006
- Location
- Portsmouth, UK
- Posts
- 539
The files can't be moved as the application needs to reference them.
RHCE #100-015-395
Please don't PM me with questions as no reply may offend, that's what the forums are for.
- 01-17-2008 #6
- 01-17-2008 #7Linux Enthusiast
- Join Date
- Aug 2006
- Location
- Portsmouth, UK
- Posts
- 539
Robin, thanks for trying but you've missed the point

My problem is the management refusing to accept that the volume of files being placed in a single directory is a fundamentally bad idea.
I don't need proposed solutions, from my first post:
Deadline for my next argument is in less than an hour, after which I'll be deleting this thread.My problem is that the management refuses to accept the fact that it's a bad idea to have that many files in one directory.
To make the problem worse, the folder in question is exported via Samba and NFS!
Has anyone come across any references/documents that I could use to slap some sense into them?
So far all concerns from Sys admins and Developers have been ignored.RHCE #100-015-395
Please don't PM me with questions as no reply may offend, that's what the forums are for.
- 01-17-2008 #8
Ah, well you can tell them that there is a change of dropped tcp packages that leads to dataloss and or system freezes.
its not true but they dont know that.
And if they want you to show them you can show that aswell you just make dataloss with a RST deamon
- 01-17-2008 #9Linux Enthusiast
- Join Date
- Aug 2006
- Location
- Portsmouth, UK
- Posts
- 539
I'll know tomorrow if they decide to take any action or not.
I will be letting them know however that if they decided to do nothing my position next time (yes it's already failed twice) the system fails will be:
I told you so.RHCE #100-015-395
Please don't PM me with questions as no reply may offend, that's what the forums are for.
- 01-17-2008 #10Linux Engineer
- Join Date
- Feb 2005
- Posts
- 1,044


Reply With Quote

