Skip to content
ImagineWorld

High Availability Concepts in SUSE

node_idnode-book_suse-certified-administrator_chapter-12-high-availability-concepts-in-suse
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num12
chapter_titleHigh Availability Concepts in SUSE
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Chapter 12 — High Availability Concepts in SUSE

Section titled “Chapter 12 — High Availability Concepts in SUSE”

High availability (HA) systems are designed to keep services running even when components fail. In modern enterprise environments, availability is critical. Systems must survive failures in hardware, software, networking, power, or human mistakes without causing service outages.

SUSE provides a robust high availability solution using:

  • SUSE Linux Enterprise High Availability Extension (SLE-HA)
  • Pacemaker cluster resource management
  • Corosync cluster communication framework
  • Resource Agents to control services and operations

This chapter explains HA concepts, cluster behavior, configuration basics, and how Pacemaker ensures continuous uptime.

High availability ensures:

  • Services stay running
  • Failures are automatically detected
  • Workloads automatically migrate to healthy systems

Availability is measured as uptime percentage:

AvailabilityDowntime per Year
99 percent~3.65 days
99.9 percent~8.76 hours
99.99 percent~52 minutes
99.999 percent (five nines)~5 minutes

Enterprises often aim for four or five nines, especially in:

  • Banking
  • Manufacturing control systems
  • Healthcare
  • Logistics platforms
  • Cloud hosting

A cluster is a group of servers working together to provide a single combined service.

TermMeaning
NodeA server participating in a cluster
QuorumMajority agreement among nodes on cluster state
ResourceA service or application managed by the cluster
FailoverAutomatic relocation of a resource from one node to another
STONITH / FencingAutomatic isolation of a malfunctioning node to prevent corruption

If two systems try to control the same data at once, data corruption can occur. STONITH ensures only one node controls the resource at a time.

SUSE HA uses two core components:

ComponentResponsibility
CorosyncHandles messaging and membership information (who is alive)
PacemakerDecides where resources run and performs failover

Cluster lifecycle:

  1. Corosync determines node membership.
  2. Pacemaker monitors resources on each node.
  3. If a resource or node fails, Pacemaker moves the resource.

Pacemaker controls cluster resources, such as:

  • IP addresses
  • Filesystem mounts
  • Database services
  • Web servers
  • Custom scripts
Terminal window
sudo crm status
Terminal window
sudo crm_resource --list
Terminal window
sudo crm resource start <resource_name>
sudo crm resource stop <resource_name>

These commands are essential in real cluster maintenance.

Resource Agents are scripts that tell Pacemaker:

  • How to start the service
  • How to stop it
  • How to confirm it is working

Common resource agent classes:

TypeUsage
ocfStandard open cluster framework scripts
systemdManages any systemd service as a cluster resource
lsbLegacy service scripts

Example:

ocf:heartbeat:IPaddr2

Manages a floating IP address that moves between cluster nodes.

A common beginner HA setup includes:

  • Two nodes
  • A shared IP resource
  • Apache web service managed by Pacemaker

If Node 1 fails:

  • Pacemaker detects service failure
  • Cluster assigns floating IP to Node 2
  • Apache service starts on Node 2
  • End users experience no interruption

This illustrates service continuity without manual intervention.

Hands-On Mental Model Exercise (No Cluster Required Yet)

Section titled “Hands-On Mental Model Exercise (No Cluster Required Yet)”

Imagine:

  • Two servers: node1 and node2
  • One floating IP address: 192.168.10.50
  • Apache running as cluster-controlled resource

If node1 goes offline:

  • Floating IP shifts to node2
  • Apache runs automatically
  • Clients continue using same IP

This is the core value proposition of HA.

A logistics company relied on a database service for warehouse tracking. When the primary server hardware failed, the system went offline, halting warehouse operations.

After implementing SUSE HA:

  • Failover took less than 10 seconds
  • No data loss occurred
  • Operations remained uninterrupted

Lesson: High availability is not about avoiding failures, but planning for them.

Remember the cluster rule:

C P R F

Corosync manages communication Pacemaker manages resources Resources represent services Fencing protects data

If you remember CPRF, you understand SUSE HA’s heartbeat.

Write down answers to these:

  1. Identify three services in your environment that would benefit from high availability.
  2. Describe what happens when a cluster node crashes unexpectedly.
  3. Explain why fencing/STONITH prevents data corruption.

This prepares your decision-making mindset for production scenarios.

  1. What is the main purpose of clustering in enterprise environments?
  2. How does Pacemaker decide where to run resources?
  3. Why is quorum required for safe cluster operation?
  4. Why is STONITH mandatory in HA clusters?

Your answers reflect operational maturity.

In this chapter, you learned:

  • The importance of high availability and uptime targets
  • How SUSE HA clusters function using Pacemaker and Corosync
  • How resources are controlled through resource agents
  • The importance of fencing to prevent corruption
  • A practical mental model for automatic service failover

You now understand the foundational behavior of SUSE high availability systems.