LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to overcome 32,000 subdirectory limit in Ubuntu Server 11.04 Natty (https://www.linuxquestions.org/questions/linux-server-73/how-to-overcome-32-000-subdirectory-limit-in-ubuntu-server-11-04-natty-4175433515/)

kevin.watson 10-22-2012 10:52 AM

How to overcome 32,000 subdirectory limit in Ubuntu Server 11.04 Natty
 
I have a server (Ubuntu 11.04 Natty with reiserFS) that holds and serves product images, that's it's only job. There are several applications that are pulling images from this server.

Images are automatically put into directories according to their unique identifier during a nightly batch job. Unfortunately, I now have too many product ID's (over 32,000). Other applications rely on the directory structure staying intact as it is now. I cannot update the file system because it is a Mediatemple (ve) server and I don't have access to control the hardware.

I need to find a solution that allows me to get over the 32,000 subdirectory limit and haven't been successful thus far.

I can modify the directory structure in which the images are loaded to further subdivide and avoid the issue, but as I mentioned, I still need to maintain my directory structure for the production_images folder.

Here is a solution I thought about but not sure how to implement:

Have all images loaded and subdivided in a folder called MB_Sync and them have a symlinked folder called production_images. Any directories added to MB_Sync would be linked in production_images. It would be based on the following structure:

MB_Sync
Category
Product ID
Language
image.jpg
production_images (symlinked folder)
Product ID
Language
image.jpg
How can I create the symlink to pull from the category folders in MB_Sync and just give me the Product ID directory in production_images?

druuna 10-22-2012 10:57 AM

Cross-posting is against the LQ rules. Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place.

Continue in the other/original thread: https://www.linuxquestions.org/quest...ty-4175433514/

Reported for closure.

kevin.watson 10-22-2012 11:00 AM

Sorry about that...I'm a newb

colucix 10-22-2012 12:26 PM

As druuna said. Kevin, if you post a thread in a forum and then you want it to be moved to a more suitable forum for better exposure, just report your own post (see the report button in the lower-right corner of your post) and ask a moderator to move it. Anyway, welcome to LinuxQuestions! :)


All times are GMT -5. The time now is 02:22 AM.