OpenVZ Forum


Home » General » Support » Trouble mounting more than 4093 mount points in CT (Is there a limit for number of mounts within a CT?)
Trouble mounting more than 4093 mount points in CT [message #52002] Sat, 18 April 2015 21:13 Go to next message
reallife is currently offline  reallife
Messages: 7
Registered: February 2014
Junior Member
hello

we have an openvz vps with 255 cpanel accounts. we tried enabling jailshell which creates 16 mount points for each account.

for some accounts the jailshell cannot be mounted and wc -l /proc/mounts shows 4093. this number is close to 4096 so I ended up thinking this might be related to some openvz limit for mounts.

I could also not find any limit relating to the number of mount points, however you might be able to give us an idea if it is at least virtualization related.
we currently have 2.6.32-042stab106 kernel installed.

mount debug logs show:
Mounting /var/tmp -> /home/virtfs/******/var/tmp (0x0000100a)
Result: 12

A result of "12" is ENOMEM:

Is there some limit on mount points withing a CT and if so is there a way to increase it?
Re: Trouble mounting more than 4093 mount points in CT [message #52006 is a reply to message #52002] Sun, 19 April 2015 10:23 Go to previous message
reallife is currently offline  reallife
Messages: 7
Registered: February 2014
Junior Member
the solution was to add "max_loop=256" (with quotes) to the openvz kernel in grub.conf
and add this command to /etc/rc.local in main machine as well as affected CTs:
/sbin/MAKEDEV -v /dev/loop
then reboot

hope this helps others with similar situations


Previous Topic: Incorrect disk space being reported
Next Topic: Separating /var in OpenVZ
Goto Forum:
  


Current Time: Fri Mar 29 13:19:15 GMT 2024

Total time taken to generate the page: 0.01838 seconds