4.2. Installing the High Availability packages and agents for Azure


On each of the nodes, you need to install the High Availability packages and agents to be able to configure a Red Hat High Availability cluster on Azure.

While the primary aim to create a fault-tolerant, highly available system, the installation of these specific packages enables:

  • Automatic failover capabilities - If one node fails, services automatically move to healthy nodes
  • Resource management - The cluster can manage and monitor services, databases, applications, and so on.
  • Service continuity - Minimize downtime by ensuring services remain available even during hardware or software failures
  • Azure-specific integration - The fence-agents-azure-arm package provides Azure-specific fencing capabilities, allowing the cluster to safely isolate failed nodes by stopping VMs or managing network access in the Azure environment

Procedure

  1. To get the public IP address for an Azure VM, open the VM properties in the Azure Portal or enter:

    $ az vm list -g <resource_group> -d --output table

    Example:

    $ az vm list -g azrhelclirsgrp -d --output table
    
    Name    ResourceGroup           PowerState      PublicIps        Location
    ------  ----------------------  --------------  -------------    --------------
    node01  azrhelclirsgrp          VM running      192.98.152.251    southcentralus
  2. Register the VM with Red Hat:

    $ sudo -i
    # subscription-manager register
  3. Disable all repositories:

    # subscription-manager repos --disable= *
  4. Enable the RHEL Server HA repositories:

    # subscription-manager repos --enable=rhel-10-for-x86_64-highavailability-rpms
  5. Update all packages:

    # dnf update -y
  6. Install the Red Hat HA Add-On packages, along with the Azure fencing agent:

    # dnf install pcs pacemaker fence-agents-azure-arm
  7. The pcs and pacemaker installation created the hacluster user in the last step. Now, create a password for the hacluster and use it for all cluster nodes:

    # passwd hacluster
  8. Add the high availability service to the RHEL Firewall if your system has firewalld.service:

    # firewall-cmd --permanent --add-service=high-availability
    # firewall-cmd --reload
  9. Start the pcs service and enable it to start on boot.

    # systemctl start pcsd.service
    # systemctl enable pcsd.service
    
    Created symlink from /etc/systemd/system/multi-user.target.wants/pcsd.service to /usr/lib/systemd/system/pcsd.service.

Verification

  • Ensure the pcs service is running.

    # systemctl status pcsd.service
    ...
    Active: active (running) since Fri 2018-02-23 11:00:58 EST; 1min 23s ago
    ...
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部