I would like to create an HA Cluster using OpenVZ and DRBD. I found this tutorial http://www.olindata.com/blog/2013/12/building-ha-cluster-openvz-drbd-heartbeat-and-pacemaker and I got as far as Step 5. I am running CentOS 6.5 (32-bit) under WMware Workstation 10.0.3 build-1895310 which is installed on Windows 7.
Under Step 5, The next thing I should do is to configure the DRBD. I have it installed, but it's the first time I am using OpenVZ and I'm a bit unclear about how should I used DRBD with it. I have two scenarios in mind:
- I install multiple Linux templates specified under Step 3, and I add the DRBD config files on each one.
- I create another virtual machine using CentOS, I install OpenVZ on top of it and I add the DRBD config files in each "OpenVZ machine", not on the VEs.
I also found this https://openvz.org/HA_cluster_with_DRBD_and_Heartbeat and from Step "Installing OpenVZ" I understand the second scenario is the right one: Get the OpenVZ kernel and utilities and install them on both nodes.
But if the second scenarios is the right one, the DRBD is supposed to synchronize Linux templates installed on the primary node?