Chapter 7. High Availability with Block Level Replication

In this chapter, we will cover:

  • Introduction
  • Installing DRBD on two Linux servers
  • Manually moving services within a DRBD Cluster
  • Using heartbeat for automatic failover


Block level replication allows you to keep a highly-available database by replicating data at the hard drive (block) level between two machines. In other words, in two machines, every time a write is made by the kernel on the main server, it is sent to server 2 so as to be written to its disk.

The leading open source software for block level replication is DRBD. DRBD stands for Distributed Replicated Block Device and describes itself as a "software-based, shared-nothing, replicated storage solution mirroring the content ...

Get High Availability MySQL Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.