Skip to content

Latest commit

 

History

History
72 lines (54 loc) · 2.35 KB

File metadata and controls

72 lines (54 loc) · 2.35 KB
author rwestMSFT
ms.author randolphwest
ms.date 10/20/2025
ms.service sql
ms.subservice linux
ms.topic include
ms.custom
linux-related-content
  1. On all cluster nodes, open the Pacemaker firewall ports. To open these ports with firewalld, run the following command:

    sudo firewall-cmd --permanent --add-service=high-availability
    sudo firewall-cmd --reload

    If the firewall doesn't have a built-in high-availability configuration, open the following ports for Pacemaker.

    • TCP: Ports 2224, 3121, 21064
    • UDP: Port 5405
  2. Install Pacemaker packages on all nodes.

    sudo yum install pacemaker pcs fence-agents-all resource-agents
  3. Set the password for the default user that is created when installing Pacemaker and Corosync packages. Use the same password on all nodes.

    sudo passwd hacluster
  4. To allow nodes to rejoin the cluster after the restart, enable and start pcsd service and Pacemaker. Run the following command on all nodes.

    sudo systemctl enable pcsd
    sudo systemctl start pcsd
    sudo systemctl enable pacemaker
  5. Create the Cluster. To create the cluster, run the following command on a single node:

    RHEL 7

    sudo pcs cluster auth <node1> <node2> <node3> -u hacluster -p <password for hacluster>
    sudo pcs cluster setup --name <clusterName> <node1> <node2> <node3>
    sudo pcs cluster start --all
    sudo pcs cluster enable --all

    RHEL 8 and later versions

    For RHEL 8 and later versions, you need to authenticate the nodes separately. Manually enter in the username and password for hacluster when prompted.

    sudo pcs host auth <node1> <node2> <node3>
    sudo pcs cluster setup <clusterName> <node1> <node2> <node3>
    sudo pcs cluster start --all
    sudo pcs cluster enable --all

    [!NOTE]
    If you previously configured a cluster on the same nodes, you need to use --force option when running pcs cluster setup. This option is equivalent to running pcs cluster destroy. To re-enable Pacemaker, run sudo systemctl enable pacemaker.

  6. Install [!INCLUDE ssnoversion-md] resource agent for [!INCLUDE ssnoversion-md]. Run the following commands on all nodes.

    sudo yum install mssql-server-ha