Clusters from Scratch¶
Step-by-Step Instructions for Building Your First High-Availability Cluster
Abstract¶
This document provides a step-by-step guide to building a simple high-availability cluster using Pacemaker.
The example cluster will use:
- AlmaLinux 9 as the host operating system
- Corosync to provide messaging and membership services
- Pacemaker 2 as the cluster resource manager
- DRBD as a cost-effective alternative to shared storage
- GFS2 as the cluster filesystem (in active/active mode)
Given the graphical nature of the install process, a number of screenshots are included. However, the guide is primarily composed of commands, the reasons for executing them, and their expected outputs.
Table of Contents¶
- 1. Introduction
- 2. Installation
- 3. Set up a Cluster
- 4. Start and Verify Cluster
- 5. Configure Fencing
- 6. Create an Active/Passive Cluster
- 7. Add Apache HTTP Server as a Cluster Service
- 8. Replicate Storage Using DRBD
- 9. Convert Storage to Active/Active
- 10. Configuration Recap
- 11. Sample Corosync Configuration
- 12. Further Reading