Replication using DRBD

In this recipe, we are going to cover block level replication using DRBD for Postgresql.

Getting ready

A working Linux machine is required for this setup. This setup requires network interfaces and the cLusterIP. These steps are carried out in a CentOS version 6 machine. Having covered the PostgreSQL setup in previous chapters, it is assumed that the necessary packages and prerequisites are already installed.

We will be using the following setup in our hierarchy:

  • Node1.author.org uses the LAN IP address 10.0.0.181 and uses 172.16.0.1 for crossover
  • Node2.author.org uses the LAN IP address 10.0.0.182 and uses the IP address 172.16.0.2 for crossover
  • dbip.author.org uses the cluster IP address 10.0.0.180

How to do it...

The following ...

Get PostgreSQL High Performance Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.