Issue
On a CloudLinux OS 8 server, the LVE module fails to load with the following error:
modprobe: ERROR: could not insert 'kmodlve': Invalid argumentThe following messages may also appear in /var/log/messages:
kernel: kmodlve: cgroups v2 not supported
pam_lve: Unable to initialize LVE 2As a result, LVE initialization may fail on the server.
Environment
- CloudLinux OS 8
kmod-lve- LVE kernel module
- TuneD profiles
- Server running with cgroups v2
Solution
Switch the server to the CloudLinux cgroups v1 TuneD profile and reboot the server.
- Check the available CloudLinux TuneD profiles:
tuned-adm list | grep cloudlinux- Apply the
cloudlinux-default-cgv1profile:
tuned-adm profile cloudlinux-default-cgv1- Reboot the server:
reboot- After the reboot, verify that the LVE module loads correctly:
modprobe kmodlveYou can also check the LVE service status and recent kernel messages:
systemctl status lve
journalctl -k | grep -i kmodlve
If the cloudlinux-default-cgv1 profile is missing
If the following error appears:
Requested profile 'cloudlinux-default-cgv1' doesn't existor TuneD cannot be reached:
Cannot talk to TuneD daemon via DBus. Is TuneD daemon running?1. Check that TuneD is installed and running:
systemctl status tuned2. If the service is not running, start and enable it:
systemctl enable --now tuned3. Then install or reinstall the CloudLinux TuneD profiles package:
yum install tuned-profiles-cloudlinux --enablerepo=cloudlinux-updates-testing4. After that, check the available profiles again:
tuned-adm list | grep cloudlinux5. Then apply the cgroups v1 profile and reboot the server:
tuned-adm profile cloudlinux-default-cgv1
rebootCause
The issue may occur when the server is configured to use cgroups v2 while the installed kmod-lve version or current environment does not support the active cgroups v2 configuration.
CloudLinux provides dedicated TuneD profiles for cgroups v1 and cgroups v2. For most servers, the recommended profile is cloudlinux-default-cgv1. Cgroups v2 profiles are supported starting from kmod-lve 2.1-58 on CloudLinux OS 8, 9, 10, and Ubuntu 22.
We created an internal task CLKRN-2076 for further improvement.
Comments
0 comments
Please sign in to leave a comment.