Centos 6 64bit - Install DRBD

Introduction

DRBD is not in the base packages for Centos 6 which leaves you with two options:

  • Install from source.
  • Install from an imported rpm.
In this tutorial we are going to show you how to do it the second way.

First prepare your server by making sure the time is kept in-sync correctly

yum install ntp
chkconfig ntpd on
service ntpd start
rpm -Uvh http://elrepo.org/elrepo-release-6-4.el6.elrepo.noarch.rpm
vi /etc/yum.repos.d/elrepo.repo
Edit /etc/yum.repos.d/elrepo.repo ( change line #8 to ‘enable=0′ to disable the repo
If you want to set up DRBD for Centos 6.3 OpenVZ I suggest you use this specific older 8.3.13 lib rather than 8.4 (you will need to enable yum lock to prevent automatically updating to 8.3.15):
yum --enablerepo=elrepo install drbd83-utils-8.3.13 kmod-drbd83-8.3.13
However if you just want the latest and greatest:
yum --enablerepo=elrepo install drbd84-utils kmod-drbd84

REFERENCES

No comments:

Post a Comment