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
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.
How was this article? – Increase Mount / Namespace Limit Virtuozzo 7
You might also like
More from Linux VPS Servers
If you have installed your Discovery instance using a distribution ISO. Then it's likely your drive will be using a …
Cloud-init is a popular way to automate deployments of instances in a cloud or none cloud environment. To save having …