Supported kernel versions
CentOS 6.10 and above (64-bit)
Supported | Not supported |
2.6.32-754.el6.x86_64 | ----- |
CentOS 7.8 (64-bit)
Supported | Not supported |
3.10.0-1127.el7.x86_64 3.10.0-1127.8.2.el7.x86_64 3.10.0-1127.10.1.el7.x86_64 3.10.0-1127.13.1.el7.x86_64 3.10.0-1127.18.2.el7.x86_64 3.10.0-1127.19.1.el7.x86_64 |
----- |
CentOS 7.9 (64-bit)
Supported | Not supported |
3.10.0-1160.2.1.el7.x86_64 3.10.0-1160.2.2.el7.x86_64 3.10.0-1160.6.1.el7.x86_64 3.10.0-1160.el7.x86_64 |
----- |
Cloud Linux 6.10 and above (64-bit)
Supported | Not supported |
2.6.32-954.3.5.lve1.4.63.el6.x86_64 | 2.6.32-673.26.1.lve1.4.24.el6.x86_64 |
Cloud Linux 7.8 and above (64-bit)
Supported | Not supported |
3.10.0-962.3.2.lve1.5.33.el7.x86_64 | 3.10.0-714.10.2.lve1.5.17.el7.x86_64 3.10.0-962.3.2.lve1.5.26.2.el7.x86_64 3.10.0-962.3.2.lve1.5.32.el7.x86_64 |
Cloud Linux 7.9 and above (64-bit)
Supported | Not supported |
3.10.0-962.3.2.lve1.5.39.el7.x86_64 | 3.10.0-714.10.2.lve1.5.17.el7.x86_64 3.10.0-962.3.2.lve1.5.26.2.el7.x86_64 3.10.0-962.3.2.lve1.5.32.el7.x86_64 |
Ubuntu 16.04.7 and above (LTS 64-bit)
How to update Linux kernel with dependencies
CentOS
- Select the $KERNEL_VERSION that needs to be updated.
- "yum install kernel-$KERNEL_VERSION"
- "yum install kernel-devel-$KERNEL_VERSION"
- Make sure that "/lib/modules/$KERNEL_VERSION" and "/usr/src/kernels/$KERNEL_VERSION" exist.
- Reboot with $KERNEL_VERSION.
CloudLinux
- Make sure repos are enabled in "/etc/yum.repos.d/cloudlinux.repo"
- Select the $KERNEL_VERSION that needs to be updated.
- "yum install kernel-$KERNEL_VERSION"
- "yum install kernel-devel-$KERNEL_VERSION"
- Make sure that "/lib/modules/$KERNEL_VERSION" and "/usr/src/kernels/$KERNEL_VERSION" exist.
- Reboot with $KERNEL_VERSION.
Troubleshooting
If yum install fails with "No package kernel-devel-<version>.x86_64 available. Error: Nothing to do", it might indicate that this kernel-devel is in the updates-testing. You need to run yum install with --enablerepo=cloudlinux-updates-testing, or enable "cloudlinux-updates-testing" in /etc/yum.repos.d/cloudlinux.repo
Ubuntu
- Select the $KERNEL_VERSION that needs to be updated.
- "apt-get install linux-image-$KERNEL_VERSION"
- "apt-get install linux-headers-$KERNEL_VERSION"
- Make sure that "/lib/modules/$KERNEL_VERSION" and "/usr/src/linux-headers-$KERNEL_VERSION" exist.
- Reboot with $KERNEL_VERSION.
How to manually install file_protector
1. Preparation
- Install Kernel source of the current kernel
- For CentOS, CloudLinux:
# yum install kernel-devel-$(uname -r)
- For Debian, Ubuntu:
# apt install linux-headers-$(uname -r)
- For CentOS, CloudLinux:
- Install 'file_protector' module source, by running the Backup Agent installer.
- Install the necessary tools: gcc, make, dkms.
2. Module building and installation
Normally, you can build and install 'file_protector' kernel module by running the "dkms" commands as follows:
# dkms build -m file_protector -v <MODULE_VERSION> \
--config <CONFIG_FILE> --arch <KERNEL_ARCH> \
--kernelsourcedir <PATH_TO_KERNEL_SOURCES>
# dkms install -m file_protector -v <MODULE_VERSION>
In these commands:
- <MODULE_VERSION> is the version of the 'file_protector' module. You can determine it by running the following command:
# ls /usr/src | grep file_protector
For example, if the name of the directory is 'file_protector-1.1-1484', the value of <MODULE_VERSION> is '1.1-1484'. - <CONFIG_FILE> is the name of your kernel configuration file. This file is usually located in the /boot directory. Specify the full file name, for example:
/boot/config-2.6.32-573.26.1.el6.x86_64.
- <KERNEL_ARCH> is the type of kernel architecture, for example, 'x86_64'. You can detect the value for <KERNEL_ARCH> by running the following commands:
- For RPM-based distributions:
# rpm -q --queryformat "%{ARCH}\n" kernel
- For distributions not based on RPM, such as Ubuntu:
# uname -m
- For RPM-based distributions:
- <PATH_TO_KERNEL_SOURCES> is the path of the kernel source, for example, '/usr/src/kernels/2.6.32-573.26.1.el6.x86_64'.
For details about using the dkms utility, refer to the dkms man page.
After installation, you can check the status of 'file_protector' by running:
# dkms status
3. Module loading
After installation, you can load the 'file_protector' module by running:
# modprobe file_protector