HOW TO FIX the CDP backup agent from the following error "Could not find a suitable hcpdriver module for your system
Possible errors from the CDP agent
1) After running the command r1soft-setup --get-module or serverbackup-setup --get-module
You may get the following error
Failed to find headers at `/lib/modules/3.10.0-693.11.6.el7.x86_64/build`.
Get module failed.
Falling back to old get-module ...
1.1) You need to check if you have the necessary tools to build the module
# yum install kernel-headers-$(uname -r)
# yum install kernel-devel-$(uname -r)
Once you install the these tools please run the command again r1soft-setup --get-module or serverbackup-setup --get-module
1.2) If the building of module failed again. Run the following command
# yum update r1soft-getmodule.x86_64
Then try again
# serverbackup-setup --get-module
NOTE: This is deprecated r1soft-setup --get-module so try to run serverbackup-setup --get-module
2) You cannot build the module directly on the Linux system
2.1) Verify your kernel version by running
# uname -r
2.1.1 )Download the module directly from the R1doft website http://r1soft.mirror.iweb.ca/repo.r1soft.com/modules/
Example my Kernel is 3.10.0-693.11.6.el7.x86_64 and I download the module
2.2.2) Go to the directory
# cd /lib/modules/r1soft
2.1.3) Download the module
2.1.4) restart the CDP-agent
# /etc/init.d/cdp-agent restart # RedHat 6
# systemctil restart sbm-agent.service Redhat 7
2.1.5) Under the directory /lib/modules/r1soft you should see a link created
Example:
lrwxrwxrwx 1 root root 63 Feb 24 18:19 hcpdriver.o -> /lib/modules/r1soft/hcpdriver-cki-3.10.0-693.11.6.el7.x86_64.ko