O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CentOS High Availability

Book Description

Leverage the power of high availability clusters on CentOS Linux, the enterprise-class, open source operating system

In Detail

The high performance and stability of CentOS Linux are the key factors that make CentOS Linux the right Linux distribution to build high availability solutions on. This book introduces you to high availability before briefly walking you through the cluster stack and its layers. The book is then divided into two parts, part A and part B, based on CentOS versions 6 and 7 respectively. Each part begins with the installation and configuration of the Corosync cluster messaging software with CMAN or with the Pacemaker cluster resource management software.

You will also be introduced to cluster service configuration and cluster service management before you configure fencing or STONITH on CentOS 6 and CentOS 7. By the end of this book, you will have the skills required to independently design, implement, and maintain a CentOS high availability multinode cluster environment.

What You Will Learn

  • Prepare the CentOS 6 and CentOS 7 operating systems for cluster software installation
  • Install, configure, and test cluster stacks on CentOS 6 (Corosync, CMAN, and RGManager) and CentOS 7 (Corosync and Pacemaker)
  • Configure failover domains, cluster resources, cluster services, and cluster resource groups
  • Start, stop, add, and remove cluster nodes from a cluster on CentOS 6 and CentOS 7
  • Place a cluster on standby mode to perform maintenance work on the cluster node
  • Configure fencing on CentOS 6 and STONITH on CentOS 7
  • Successfully test cluster failovers

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. CentOS High Availability
    1. Table of Contents
    2. CentOS High Availability
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers, and more
        1. Why subscribe?
        2. Free access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Getting Started with High Availability
      1. What is high availability?
      2. System design
      3. Computer clusters
      4. High-availability solutions
      5. Summary
    9. 2. Meet the Cluster Stack on CentOS
      1. Cluster stack software
      2. The cluster communication layer
        1. The cluster messaging and membership service
        2. Quorum
      3. The cluster resource management layer
      4. A theoretical cluster service example
      5. Cluster stack on CentOS Linux
      6. Preparing for cluster stack software installation
      7. Summary
    10. 3. Cluster Stack Software on CentOS 6
      1. Cluster infrastructure
      2. Cluster operating system preparation
      3. Installing and configuring Corosync
      4. Installing and configuring CMAN
        1. Installing and configuring RGManager
      5. Summary
    11. 4. Resource Manager on CentOS 6
      1. Working with RGManager
      2. Configuring failover domains
      3. Adding cluster resources and services
        1. Resources
        2. Services
      4. Managing cluster services
      5. Removing cluster resources and services
      6. Summary
    12. 5. Playing with Cluster Nodes on CentOS 6
      1. Adding a new cluster node
      2. Removing a cluster node
      3. Summary
    13. 6. Fencing on CentOS 6
      1. Fencing
      2. Fencing configuration
        1. APC switch fencing
      3. IPMI management board fencing
      4. HP iLO management board fencing
      5. Fencing test
        1. Fence master node
        2. Fence check
        3. Fence node
      6. Summary
    14. 7. Testing Failover on CentOS 6
      1. Hardware failure
      2. Network failure
      3. Summary
    15. 8. Two-node Cluster Considerations on CentOS 6
      1. Quorum in a two-node cluster
      2. Two-node cluster configuration
      3. Quorum disk
      4. Summary
    16. 9. Cluster Stack Software on CentOS 7
      1. Cluster infrastructure
        1. Cluster operating system preparation
        2. Network configuration
        3. NTP configuration
        4. DNS configuration
      2. Installing and configuring Corosync
        1. Installing and configuring Pacemaker
      3. Summary
    17. 10. Resource Manager on CentOS 7
      1. Working with pcs
      2. Adding cluster resources, constraints, and resource groups
        1. Configuring resources
        2. Configuring resource constraints
        3. Configuring resource groups
      3. Managing resources
        1. Moving resources around
        2. Stopping resources
        3. Starting resources
        4. Banning resources
        5. Clearing resource constraints
      4. Removing cluster constraints, resource groups, and resources
        1. Removing resource constraints
        2. Removing resource groups
        3. Removing resources
      5. Summary
    18. 11. Playing with Cluster Nodes on CentOS 7
      1. Adding a new cluster node
      2. Cluster node standby mode
      3. Removing a cluster node
      4. Summary
    19. 12. STONITH on CentOS 7
      1. Fencing
      2. Configuring fence devices
        1. APC switch fencing
      3. IPMI management board fencing
      4. HP iLO management board fencing
      5. Fence test
      6. Summary
    20. 13. Testing Failover on CentOS 7
      1. Hardware failure
      2. Network failure
      3. Summary
    21. 14. Two-node Cluster Considerations on CentOS 7
      1. Quorum in a two-node cluster
      2. Two-node cluster configuration
      3. Summary
    22. Index