When using R1Soft CDP (Continuous Data Protection), you might encounter a module error that prevents backups from running. This issue often arises due to missing or mismatched kernel headers and development packages.
Common Error Output
When you run:
serverbackup-setup --get-module
You may see an error like:
Building header archive. Failed to get a suitable module for this system: Failed to connect to a remote server. get module failed. Failing back to old get-module.
This indicates that the backup agent cannot build or retrieve a kernel module for your server’s current kernel.
Steps to Resolve the Module Error:
- Check Module Build Status using the following command:
serverbackup-setup --get-module
- If the module builds successfully, restart the CDP Agent, and you are done.
- If the module fails to build, proceed with the steps below.
- Manually Install Kernel Headers and Development Tools:
To manually build the kernel module, you must install the correct headers and development files for your running kernel.- Identify Your Kernel Version
uname -r
- Find and Download the Required RPMs
Visit: http://rpm.pbone.net
Search for:
- kernel-headers
- kernel-devel, matching your current kernel version.
- Download the RPMs
Copy the download link for each required package and run:wget <copied-link>
- Install the Packages after downloading:
rpm -ivh kernel-headers-*.rpm rpm -ivh kernel-devel-*.rpm
Note: Replace *.rpm with the actual file name of the downloaded package.
- Identify Your Kernel Version
- Restart the CDP Agent
Once the headers and development tools are installed:service cdp-agent restart
- Check if the Module Was Built using the below command:
lsmod | grep hcp
If output is shown, the module was successfully built.
- Reboot the Server (if needed)
If the module still isn’t loaded after restarting the agent, reboot the server:reboot
Final Notes
- Always ensure your system’s kernel and development packages are compatible.
- You can also configure your server to keep older kernel-devel versions if you’re frequently updating the kernel.
If you continue to face issues, contact our technical experts for advanced troubleshooting.
Want to create offsite backups with R1Soft? Learn How to create a backup using R1Soft’s CDP agent on an offsite server