Month: June 2014

  • Centos High Availability Cluster with OpenVZ, DRBD and Heartbeat – Part 2

    DRBD installation with OpenVZ, plese follow the link below. Centos High Availability Cluster with OpenVZ, DRBD and Heartbeat – Part 1 1.  Download repository. rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 2. Install HeartBeat yum install heartbeat 3. Create the Heartbeat configuration file ha.cf and copy it to /etc/ha.d/ha.cf on both nodes. # vi /etc/ha.d/ha.cf debugfile logfile /var/log/ha-log logfacility…

  • Centos High Availability Cluster with OpenVZ, DRBD and Heartbeat – Part 1

    Install OpenVZ in both machines, follow the link below How to install OpenVZ in Centos 6.5 DRBD installation. 1. BOTH MACHINES: Install this repository “elrepo-release-6-6.el6.elrepo.noarch.rpm”. rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm 2. BOTH MACHINES: Install DRBD. yum install drbd83-utils-8.3.13 kmod-drbd83-8.3.13 -y 3. BOTH MACHINES: Insert drbd module manually or reboot both machines. /sbin/modprobe drbd 4. BOTH MACHINES: Create…

  • How to install OpenVZ in Centos 6.5

    Install first a fresh OS Centos 6.5 with the partitions below. In this example we will use 1 TB of hardisk. / – 20000mb /swap – 5000mb /vz – All the available space.   Below is the steps on how to install OpenVZ in Centos 6.5 1. Edit the config file below and change SELINUX=enforcing…