![]() ![]() |
Jun 22 2007, 08:07 AM
Post
#1
|
|
|
Newbie Group: Members Posts: 9 Joined: 20-May 06 Member No.: 44,745 |
I have a perl script that goes out and gets data from a real estate database with photos and puts the data into a mysql database each night. The script works fine. The problem is the directory is maxing out. No more files can be downloaded into the directory once the number of files hits 9740. I am running a Redhat ES4 box with Plesk 7.5 Reloaded. Any help or suggestions would be greatly appreciated.
|
|
|
|
Jun 22 2007, 09:41 AM
Post
#2
|
|
|
Computer Chip ![]() Group: Admin Posts: 731 Joined: 19-November 03 From: Dallas, Texas Member No.: 38,683 |
Unfortunately, this sounds like you've hit the file system limit, best thing that I could tell you is create separate directories inside the main one, that separate them into categories, or alphabetical.
-------------------- James Erickson
Red Hat Certified Datacenter Specialist Senior Unix Systems Engineer The Planet Internet Services https://orbit.theplanet.com |
|
|
|
Jun 22 2007, 01:13 PM
Post
#3
|
|
|
Celery ![]() Group: The Planet Staff Posts: 45 Joined: 19-January 06 From: Houston, TX Member No.: 19,464 |
I would just like to note that I have put over 250K empty files into a single directory before and not had any problems. One of the biggest problems with filesystems is choosing your blocksize to properly compliment your usages types. Do you go with larger blocks and fewer inodes, or many inodes with lots of little blocks.
You may want to check and see if you are out of inodes by using df -i. what kind of errors are you recieving when it stops putting files into the directory? Is it a pause/hang or is it an exact error? -------------------- |
|
|
|
Jun 22 2007, 10:14 PM
Post
#4
|
|
|
Newbie Group: Members Posts: 9 Joined: 20-May 06 Member No.: 44,745 |
I would just like to note that I have put over 250K empty files into a single directory before and not had any problems. One of the biggest problems with filesystems is choosing your blocksize to properly compliment your usages types. Do you go with larger blocks and fewer inodes, or many inodes with lots of little blocks. You may want to check and see if you are out of inodes by using df -i. what kind of errors are you recieving when it stops putting files into the directory? Is it a pause/hang or is it an exact error? I have over 8 million free inodes. I'm currently using 12% of the available inodes. There is not solid error that I know of. Would I check a perl log or something similar for this error. All of the records make it successfully into the database but the images stop at the 9740 mark everytime. I can store them anywhere and that is where they stop. |
|
|
|
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
| Lo-Fi Version | Time is now: 31st July 2010 - 07:47 AM |





Jun 22 2007, 08:07 AM




