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

Introduction

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 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.