{"id":3338,"date":"2017-03-04T15:21:42","date_gmt":"2017-03-04T15:21:42","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=3338"},"modified":"2017-03-04T15:21:42","modified_gmt":"2017-03-04T15:21:42","slug":"installing-r1soft-linux-agent-centos","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2017\/03\/04\/installing-r1soft-linux-agent-centos\/","title":{"rendered":"Installing the R1Soft Linux Agent on CentOS"},"content":{"rendered":"<p><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2017\/03\/r1soft-powered-by-continuum.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3345\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2017\/03\/r1soft-powered-by-continuum-300x101.png\" alt=\"\" width=\"300\" height=\"101\" srcset=\"https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2017\/03\/r1soft-powered-by-continuum-300x101.png 300w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2017\/03\/r1soft-powered-by-continuum-768x259.png 768w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2017\/03\/r1soft-powered-by-continuum.png 900w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The first step required for installing the agent is to configure the YUM repository. Modify the repository as follows:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\necho -e &quot;&#x5B;r1soft]\\nname=R1Soft Repository Server\\nbaseurl=http:\/\/repo.r1soft.com\/yum\/stable\/\\$basearch\/\\nenabled=1\\ngpgcheck=0&quot; &amp;gt; \/etc\/yum.repos.d\/r1soft.repo\nyum install serverbackup-agent\n\n<\/pre>\n<p>Or&#8230;<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># nano \/etc\/yum.repos.d\/r1soft.repo\n<\/pre>\n<p>Add&#8230;<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">&#x5B;r1soft]\nname=R1soft Repository Server\nbaseurl=http:\/\/repo.r1soft.com\/yum\/stable\/$basearch\/\nenabled=1\ngpgcheck=0\n\n<\/pre>\n<p>Save the files and then run &#8216;yum install serverbackup-agent&#8217;:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># yum install serverbackup-agent\n<\/pre>\n<p><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2017\/03\/r1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3343\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2017\/03\/r1.png\" alt=\"\" width=\"875\" height=\"564\" srcset=\"https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2017\/03\/r1.png 875w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2017\/03\/r1-300x193.png 300w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2017\/03\/r1-768x495.png 768w\" sizes=\"auto, (max-width: 875px) 100vw, 875px\" \/><\/a><\/p>\n<p>Next, restart the agent:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># \/etc\/init.d\/cdp-agent restart\n\/etc\/init.d\/cdp-agent restart: cdp not running, trying to start\n\/etc\/init.d\/cdp-agent restart: cdp started\n\n<\/pre>\n<p>Next, we need to get the Server Backup Manager Server key from the Manager server:<br \/>\nNOTE: If the server manager is running on a different port than port 80, you will need to include the port in the URL. This server manager is on http port 26080. You can replace the port with port 80 if needed:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># serverbackup-setup --get-key http:\/\/192.168.1.103:26080\nKey &#039;192.168.1.103&#039; successfully installed\n\nIf you get a connection errr - check your firewall:<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># systemctl status firewalld\n\u25cf firewalld.service - firewalld - dynamic firewall daemon\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/firewalld.service; enabled; vendor preset: enabled)\n   Active: active (running) since Tue 2017-02-28 17:56:33 CST; 3 days ago\n     Docs: man:firewalld(1)\n Main PID: 665 (firewalld)\n   CGroup: \/system.slice\/firewalld.service\n           \u2514\u2500665 \/usr\/bin\/python -Es \/usr\/sbin\/firewalld --nofork --nopid\n\nWarning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.\n\n<\/pre>\n<p>Add the port on the linux agent server to allow connection from the R1Soft server manager:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># firewall-cmd --permanent --zone=public --add-port=1167\/tcp --permanent\nsuccess\n<\/pre>\n<p>Reload the firewall:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># firewall-cmd --reload\nsuccess\n<\/pre>\n<p>You can now safely add this target server to the Manager Server (<a href=\"https:\/\/qbytes.cloud\/installing-r1soft-linux-manager-server-centos\/\">See Installing R1Soft Linux Manager Server on CentOS<\/a>)<\/p>\n<h3>**** If the agent is installed on CentOS 7, or if you have installed kernel-devel \/ kernel-headers and &#8216;r1soft-setup &#8211;get-module&#8217; is still failing, check http:\/\/repo.r1soft.com\/modules\/ for the associated kernel and driver.<\/h3>\n<p>You can download the appropriate module to \/lib\/modules\/r1soft\/ run insmod $module to insert the module and \/etc\/init.d\/cdp-agent restart to load hcpdriver.<br \/>\nOnce CDP-agent is restarted, you can verify that the module is loaded via lsmod | grep hcp.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# cd  \/lib\/modules\/r1soft\/\n# wget http:\/\/repo.r1soft.com\/modules\/Centos_7_x64\/hcpdriver-cki-3.10.0-693.11.6.el7.x86_64.ko\n# insmod  hcpdriver-cki-3.10.0-693.11.6.el7.x86_64.ko\n# \/etc\/init.d\/cdp-agent restart\n# lsmod | grep hcp\n# hcpdriver              81014  4\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The first step required for installing the agent is to configure the YUM repository. Modify the repository as follows: echo -e &quot;&#x5B;r1soft]\\nname=R1Soft Repository Server\\nbaseurl=http:\/\/repo.r1soft.com\/yum\/stable\/\\$basearch\/\\nenabled=1\\ngpgcheck=0&quot; &amp;gt; \/etc\/yum.repos.d\/r1soft.repo yum install serverbackup-agent Or&#8230; # nano \/etc\/yum.repos.d\/r1soft.repo Add&#8230; &#x5B;r1soft] name=R1soft Repository Server baseurl=http:\/\/repo.r1soft.com\/yum\/stable\/$basearch\/ enabled=1 gpgcheck=0 Save the files and then run &#8216;yum install serverbackup-agent&#8217;: # yum install serverbackup-agent Next, &#8230; <a title=\"Installing the R1Soft Linux Agent on CentOS\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2017\/03\/04\/installing-r1soft-linux-agent-centos\/\" aria-label=\"Read more about Installing the R1Soft Linux Agent on CentOS\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[93],"tags":[],"class_list":["post-3338","post","type-post","status-publish","format-standard","hentry","category-r1soft"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=3338"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3338\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=3338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=3338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=3338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}