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?