How to install r1soft backup agent on Centos server?

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.

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

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.

Sample output

 

Step 2.  Fill in following text into the file and save it.

[r1soft] 
name=R1Soft Repository Server 
baseurl=http://repo.r1soft.com/yum/stable/$basearch/ 
enabled=1 
gpgcheck=0

 

Step 3.  After installing the repository, use following command to install backup agent.

#yum install r1soft-cdp-enterprise-agent

Sample output

 

Step 4.  Now, you can test the connectivity with the following command

#r1soft-setup --test-connection

Sample output

 

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

Sample output

 

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-431.1.2.0.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.
Sample output

 

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)

Sample output

 

Step 8.  Once you have installed kerenl-devel package, use following command to build cdp kernel module.

#r1soft-setup --get-module

Sample output

 

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

Comments
  1. Hashmi | Reply
    • Chief Editor | Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

CommentLuv badge