In earlier post, we discussed methods for installing backup manager on centos server. In this article we will discuss installation of r1soft backup agent on centos server. A backup agent is necessary to copy data from the server to the backup manager server where it stores the data and later it can be used to restore in event of hardware failure or data loss by any other means.
Before we start make sure you have a ssh client putty installed on your computer. If you do not have one, you can download it from following website.
Before we start installation of the agent, we need to configure R1Soft yum repository in the server. An explaination about yum repository is out of the scope of this article so it’s not explained here.
Step 1. Navigate to the directory /etc/yum.repos.d and open a new file r1soft.repo using editor of your choice e.g. vi, nano, pico.
Step 2. Fill in following text into the file and save it.
name=R1Soft Repository Server
Step 3. After installing the repository, use following command to install backup agent.
#yum install r1soft-cdp-enterprise-agent
Step 4. Now, you can test the connectivity with the following command
Step 5. In order build the kernel module online, we need to install kernel sources. Hence install kernel-devel package using following command.
#yum install kernel-devel
Step 6. In our case, the kernel devel package we have installed is newer than the running kernel. My running kernel is 2.6.32-422.214.171.124.1.el6.x86_64 while yum installed kernel-devel-2.6.32-642.11.1.el6.x86_64 package which is newer. In such scenario, when you attempt to build kernel module, you get following error.
Step 7. To resolve it, you need to remove recently installed kernel-devel package and install new one matching to your kernel version. We need to make changes in CentOS-Vault.repo so that yum can install packages matching to our running kernel.
yum install kernel-devel-$(uname -r)
Step 8. Once you have installed kerenl-devel package, use following command to build cdp kernel module.
Step 9. If the kernel module is compiled successfully, you will see a message something like below which means its been compiled successfully.
Kernel module is now installed. Use '/etc/init.d/cdp-agent restart' to load the new driver