OpenVZ file system (simfs) has a limit of files per folder. We reached that limit and we are in trouble...
Which is the best approach to this problem?
Thank's in advance!
OpenVZ file system (simfs) has a limit of files per folder. We reached that limit and we are in trouble...
Which is the best approach to this problem?
Thank's in advance!
Put your files in sub folders.
How many files per directory do you have when you reach the limit?
I would first check that there are no fail counts in /proc/bc/resources. Maybe one of the following are set too low in the config file:
Getting a real fs inside a container with bind mounts
If you are really hitting the max number of files per directory and and you can't move your files to sub directories, then you can pretty easily get a real filesystem (ext3, xfs, ...) inside the container.
http://wiki.openvz.org/Bind_mounts
Delegating a block device
You can also delegate a whole block device to a container and mount a real filesystem from that block device during boot by placing an entry into /etc/fstab inside the container. See the vzctl(8) --devices b argument. Also check /proc/filesystems inside your container to see what filesystems are available.