How To Install pacemaker on Ubuntu 20.04

In this tutorial we learn how to install pacemaker on Ubuntu 20.04. pacemaker is cluster resource manager cluster resource manager cluster resource manager

Introduction

In this tutorial we learn how to install pacemaker on Ubuntu 20.04.

What is pacemaker

pacemaker is:

At its core, Pacemaker is a distributed finite state machine capable of co-ordinating the startup and recovery of inter-related services across a set of machines.

Pacemaker understands many different resource types (OCF, SYSV, systemd) and can accurately model the relationships between them (colocation, ordering).

It can even use technology such as Docker to automatically isolate the resources managed by the cluster.

This package contains the Pacemaker daemons directly interacting with the cluster stack.

Package: pacemaker Architecture: amd64 Version: 2.0.3-3ubuntu4.1 Priority: optional Section: admin Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian HA Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 1100 Pre-Depends: init-system-helpers (>= 1.54~) Depends: corosync (>= 1.99), crmsh, dbus, lsb-base (>= 3.0-6), pacemaker-common, pacemaker-resource-agents, python3:any, libc6 (>= 2.17), libcfg7 (>= 2.99.5), libcib27 (>= 1.1.17~rc1), libcmap4 (>= 1.99.9), libcorosync-common4 (>= 1.99.9), libcrmcluster29 (>= 2.0.1~rc4), libcrmcommon34 (>= 2.0.3), libcrmservice28 (>= 1.1.18~rc3), libglib2.0-0 (>= 2.39.4), libgnutls30 (>= 3.6.12), liblrmd28 (>= 1.1.19), libpacemaker1 (>= 2.0.3), libpam0g (>= 0.99.7.1), libpe-rules26 (>= 2.0.3), libpe-status28 (>= 2.0.3), libqb0 (>= 0.17.1), libstonithd26 (>= 2.0.3) Recommends: pacemaker-cli-utils Suggests: cluster-glue, pcs, fence-agents Breaks: pacemaker-cli-utils (« 1.1.14-2~), pacemaker-remote Replaces: pacemaker-cli-utils (« 1.1.14-2~), pacemaker-remote (« 1.1.14-2~) Filename: pool/main/p/pacemaker/pacemaker_2.0.3-3ubuntu4.1_amd64.deb Size: 305536 MD5sum: 1a368f903d15d79d1279e3ad05fa31b0 SHA1: ca523150e512c39b5d9c40d772ac2dba60aff61a SHA256: 4b7fa07dff736bf18f957b9789ac89263de131b29002a5566cf26afe115aec20 SHA512: b6ca43ae67ad50b39e795c975f2def36ffdf544125d78c4b86dd4382a4d74adbc7563d2693f0279ef710440b8250f1f3b201d95e30b2b17f03ff35f388bf27af Homepage: https://www.clusterlabs.org/ Description-en: cluster resource manager At its core, Pacemaker is a distributed finite state machine capable of co-ordinating the startup and recovery of inter-related services across a set of machines.

Pacemaker understands many different resource types (OCF, SYSV, systemd) and can accurately model the relationships between them (colocation, ordering).

It can even use technology such as Docker to automatically isolate the resources managed by the cluster.

This package contains the Pacemaker daemons directly interacting with the cluster stack.

Package: pacemaker Architecture: amd64 Version: 2.0.3-3ubuntu3 Priority: optional Section: admin Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian HA Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 1100 Pre-Depends: init-system-helpers (>= 1.54~) Depends: corosync (>= 1.99), crmsh, dbus, lsb-base (>= 3.0-6), pacemaker-common, pacemaker-resource-agents, python3:any, libc6 (>= 2.17), libcfg7 (>= 2.99.5), libcib27 (>= 1.1.17~rc1), libcmap4 (>= 1.99.9), libcorosync-common4 (>= 1.99.9), libcrmcluster29 (>= 2.0.1~rc4), libcrmcommon34 (>= 2.0.3), libcrmservice28 (>= 1.1.18~rc3), libglib2.0-0 (>= 2.39.4), libgnutls30 (>= 3.6.12), liblrmd28 (>= 1.1.19), libpacemaker1 (>= 2.0.3), libpam0g (>= 0.99.7.1), libpe-rules26 (>= 2.0.3), libpe-status28 (>= 2.0.3), libqb0 (>= 0.17.1), libstonithd26 (>= 2.0.3) Recommends: pacemaker-cli-utils Suggests: cluster-glue, pcs, fence-agents Breaks: pacemaker-cli-utils (« 1.1.14-2~), pacemaker-remote Replaces: pacemaker-cli-utils (« 1.1.14-2~), pacemaker-remote (« 1.1.14-2~) Filename: pool/main/p/pacemaker/pacemaker_2.0.3-3ubuntu3_amd64.deb Size: 305264 MD5sum: 0ac5c226f92fa15896ef539ee8a6e9aa SHA1: 3c4a1d5e4c4ab2becfe5791814182e73b88ea607 SHA256: 9b303bb1c8059984a635a5cdc737f7a93272a3ad30a4eff5ab153b98a391ef43 Homepage: https://www.clusterlabs.org/ Description-en: cluster resource manager At its core, Pacemaker is a distributed finite state machine capable of co-ordinating the startup and recovery of inter-related services across a set of machines.

Pacemaker understands many different resource types (OCF, SYSV, systemd) and can accurately model the relationships between them (colocation, ordering).

It can even use technology such as Docker to automatically isolate the resources managed by the cluster.

This package contains the Pacemaker daemons directly interacting with the cluster stack.

There are three methods to install pacemaker on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install pacemaker Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install pacemaker using apt-get by running the following command:

sudo apt-get -y install pacemaker

Install pacemaker Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install pacemaker using apt by running the following command:

sudo apt -y install pacemaker

Install pacemaker Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install pacemaker using aptitude by running the following command:

sudo aptitude -y install pacemaker

How To Uninstall pacemaker on Ubuntu 20.04

To uninstall only the pacemaker package we can use the following command:

sudo apt-get remove pacemaker

Uninstall pacemaker And Its Dependencies

To uninstall pacemaker and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove pacemaker

Remove pacemaker Configurations and Data

To remove pacemaker configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge pacemaker

Remove pacemaker configuration, data, and all of its dependencies

We can use the following command to remove pacemaker configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge pacemaker

References

Summary

In this tutorial we learn how to install pacemaker package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.