Table of Contents

  1. Clusters from Scratch
  2. Introduction
    1. The Scope of This Document
    2. What Is Pacemaker?
      1. Cluster Architecture
      2. Pacemaker Architecture
      3. Node Redundancy Designs
  3. Installation
    1. Install AlmaLinux 9
      1. Boot the Install Image
      2. Installation Options
      3. Configure Network
      4. Configure Disk
      5. Configure Time Synchronization
      6. Root Password
      7. Finish Install
    2. Configure the OS
      1. Verify Networking
      2. Login Remotely
      3. Apply Updates
      4. Use Short Node Names
    3. Repeat for Second Node
    4. Configure Communication Between Nodes
      1. Configure Host Name Resolution
      2. Configure SSH
  4. Set up a Cluster
    1. Simplify Administration With a Cluster Shell
    2. Install the Cluster Software
    3. Configure the Cluster Software
      1. Allow cluster services through firewall
      2. Enable pcs Daemon
      3. Configure Corosync
    4. Explore pcs
  5. Start and Verify Cluster
    1. Start the Cluster
    2. Verify Corosync Installation
    3. Verify Pacemaker Installation
    4. Explore the Existing Configuration
  6. Configure Fencing
    1. What is Fencing?
    2. Choose a Fence Device
    3. Configure the Cluster for Fencing
    4. Example
  7. Create an Active/Passive Cluster
    1. Add a Resource
    2. Perform a Failover
    3. Prevent Resources from Moving after Recovery
  8. Add Apache HTTP Server as a Cluster Service
    1. Install Apache
    2. Create Website Documents
    3. Enable the Apache Status URL
    4. Configure the Cluster
    5. Ensure Resources Run on the Same Host
    6. Ensure Resources Start and Stop in Order
    7. Prefer One Node Over Another
    8. Move Resources Manually
  9. Replicate Storage Using DRBD
    1. Install the DRBD Packages
    2. Allocate a Disk Volume for DRBD
    3. Configure DRBD
    4. Initialize DRBD
    5. Populate the DRBD Disk
    6. Configure the Cluster for the DRBD device
    7. Configure the Cluster for the Filesystem
    8. Test Cluster Failover
  10. Convert Storage to Active/Active
    1. Install Cluster Filesystem Software
    2. Configure the Cluster for the DLM
    3. Create and Populate GFS2 Filesystem
    4. Reconfigure the Cluster for GFS2
    5. Clone the Filesystem Resource
    6. Test Failover
  11. Configuration Recap
    1. Final Cluster Configuration
    2. Node List
    3. Cluster Options
    4. Resources
      1. Default Options
      2. Fencing
      3. Service Address
      4. DRBD - Shared Storage
      5. Cluster Filesystem
      6. Apache
  12. Sample Corosync Configuration
  13. Further Reading