Increase Mount / Namespace Limit Virtuozzo 7
On a Virtuozzo 7 hostnode containers are mounted using ploop and sometimes the default mount namespace might be too low. This can cause issues inside containers like services not being able to start. An example of this would be a cPanel VPS server running PHP in a persistent CGI mode.
If the server administrator has enabled the EXPERIMENTAL: Jail Apache Virtual Hosts using mod_ruid2 and cPanel® jailshell option in the tweak settings page of cPanel to help protect against symlink conditions this will create 14 bind mounts per user. On large servers, this will mean your Mount / Namespace limit will be reached and services will fail to start like MySQL.
Check The Current Mount / Namespace Limit
You can check the current limit by issuing the below command on the hostnode
sysctl fs.ve-mount-nr
This will return a value like;
fs.ve-mount-nr = 4096
The default value is 4096 and should you need to increase the limit it’s advised you increase this by 5000 each time. To increase the value issue the below command then reboot the hostnode
sysctl -w fs.ve-mount-nr=10000
echo 'fs.ve-mount-nr = 10000' >> /etc/sysctl.d/10-ve-mount-limit.conf
You can then check the mount/namespace limit again and the value would have increased. Repeat the process until the limit is right for your environment.
Additional Links
https://blog.f2h.cloud/create-sudo-user/
How was this article? – Increase Mount / Namespace Limit Virtuozzo 7
You might also like
More from Linux VPS Servers
How To Install phpIPAM Ubuntu and Debian Servers
phpIPAM is a great tool for managing IP address space. It's a free bit of software that will manage IPv4 …
How to configure additional IPs in a Debian 11 VPS
On Debian 11 instances, we removed the /etc/network/interfaces file and now configure interfaces using Cloud-init on boot. Discovery will send …