Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Install and Configure a Pacemaker Cluster

Pacemaker is a high-availability Cluster Resource Manager (CRM) that runs on a group of servers in order to minimize downtime. Resources managed by Pacemaker will be moved in the event of a node failure and can be configured to run in tandem with other resources. In this lesson, you are tasked with installing and configuring a Pacemaker cluster that manages an Apache HTTP server resource as well as an IP resource.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Advanced
Last updated
Apr 06, 2025
Duration
1h 30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Install the required packages for Pacemaker and PCS on each cluster node.

    Install the pacemaker and pcs packages.

  2. Challenge

    Start and enable the pcsd service on each cluster node.

    On each node, start and enable pcsd.

  3. Challenge

    Set the password for the hacluster user on each cluster node to "pacemaker”.

    Set the password for the hacluster user to pacemaker. Do not include the quotes and ignore the bad password warning.

  4. Challenge

    On pacemaker1, use pcs to authenticate to pcsd on the cluster nodes as the hacluster user.

    Run the pcs authentication command from pacemaker1 and supply a username and password.

  5. Challenge

    Generate and synchronize the Corosync configuration to both cluster nodes for a cluster named cluster1.

    Generate and synchronize the Corosync configuration and start up the cluster.

  6. Challenge

    Set the stonith-enabled property to false.

    Set the property with the pcs property command.

  7. Challenge

    Add an IP resource named cluster_ip.

    Create an IP resource with the pcs resource command. Name the cluster_ip, with an IP address of 10.0.1.50, a netmask of 24, and a monitor interval of 30 seconds.

  8. Challenge

    Add an Apache HTTP server as a cluster resource.

    Use the pcs resource command to create the resource. The resource should be named apache, use /etc/httpd/conf/httpd.conf as the configuration file, use http://localhost/server-status as the status URL, and have a monitor interval of 1 minute.

  9. Challenge

    Set a colocation constraint so that the `apache` and `cluster_ip` resources always run on the same host.

    Use the pcs constraint command to set the colocation constraint.

  10. Challenge

    Set an order constraint so that the `cluster_ip` resource starts before the `apache` resource.

    Use the pcs constraint command to set the order constraint.

About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight