Recently, we experimented with active/passive clustering of MySQL via Corosync and Pacemaker. While many choose to use DRBD, our requirement was to simply have storage fail over to the other node. In the real world, this would likely be a SAN. For our POC, we chose to use NFS.
This document will provide a high level overview of a redundant and highly-available clustering solution for MySQL in an active/passive clustering configuration. While there are many ways to make MySQL highly available each has its strengths and weaknesses. These will be explained herein.
Components of the Solution
This solution requires only freely available Open Source
components. Each is depicted in the diagram below:
Two server nodes (virtual servers or physical servers)
Virtual IP (VIP)
Shared Storage such as a SAN with filesystem which can be
mounted on either node
…