Setup and configure drbd on ubuntu 16.04

STEP 1 — prepare. On both hosts.

See hostname’s on hosts

and paste it to configs and hosts.
Edit hosts

Setup drbb via apt

Create vggroup and storage with lvm.

STEP 2 — Configure nodes. On both nodes add config.

Load the kernel module on each system.

STEP 3 — init nodes. On both nodes add config.

Start drdb on both nodes

Next. Make host itc-life main. Go to host itc-life and execute

Go to host human-K73SM and wait for progress is done.

STEP 4 — format and mount.


Setup master role to server

Setup slave role to server

Pacemaker — configure HA

We will use Pacemaker as our Cluster Resource Manager and support can be gained for this from Linbit as with DRBD. When installing Pacemaker we will also install Corosync that is used to sync the Pacemaker cluster details. On both nodes we must first ensure that the DRBD service is not enabled on either node.
sudo systemctl disable drbd
We should also ensure that the directory is not mounted and the drbd device is not in use on either node:
sudo umount /var/www/htmlsudo drbdadm down r0
Then we can install Pacemaker on both nodes:

sudo apt-get install -y pacemaker


Use your IP Addresses and make sure it is the Network address used for the bindnetaddr:
We can then restart corosync and start pacemaker on both nodes:

Use the command crm status to see the cluster come online.

Configure cluster in crm configure in interactive


Добавить комментарий

Войти с помощью: 

Ваш e-mail не будет опубликован. Обязательные поля помечены *


Этот сайт использует Akismet для борьбы со спамом. Узнайте как обрабатываются ваши данные комментариев.