Skip to content

Commit f5dd16b

Browse files
Updated pacemaker instructions
1 parent 83bd551 commit f5dd16b

1 file changed

Lines changed: 76 additions & 10 deletions

File tree

docs/linux/sql-server-linux-deploy-pacemaker-cluster.md

Lines changed: 76 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ Use the following syntax to install the packages that make up the high availabil
5252
sudo subscription-manager list --available
5353
```
5454

55+
For RHEL 10, the list command is as follows
56+
```bash
57+
sudo subscription-manager repos --list
58+
```
59+
60+
From the list of available pools, note the pool ID for the high availability subscription.
61+
5562
1. Run the following command to associate RHEL high availability with the subscription.
5663

5764
```bash
@@ -62,9 +69,22 @@ Use the following syntax to install the packages that make up the high availabil
6269

6370
1. Enable the repository to use the high availability add-on.
6471

72+
RHEL 7
6573
```bash
6674
sudo subscription-manager repos --enable=rhel-ha-for-rhel-7-server-rpms
6775
```
76+
RHEL 8
77+
```bash
78+
sudo subscription-manager repos --enable=rhel-8-for-x86_64-highavailability-rpms
79+
```
80+
RHEL 9
81+
```bash
82+
sudo subscription-manager repos --enable=rhel-9-for-x86_64-highavailability-rpms
83+
```
84+
RHEL 10
85+
```bash
86+
sudo subscription-manager repos --enable=rhel-10-for-x86_64-highavailability-rpms
87+
```
6888

6989
1. Install Pacemaker.
7090

@@ -81,10 +101,18 @@ Install the High Availability pattern in YaST, or install it as part of the main
81101
82102
### [Ubuntu](#tab/ubuntu)
83103

104+
Ubuntu 20.04
105+
84106
```bash
85107
sudo apt-get install pacemaker pcs fence-agents resource-agents
86108
```
87109

110+
Ubuntu 22.04 and later versions
111+
112+
```bash
113+
sudo apt-get install pacemaker pcs fence-agents resource-agents-base resource-agents-common resource-agents-extra
114+
```
115+
88116
---
89117

90118
## Prepare the nodes for Pacemaker (RHEL and Ubuntu only)
@@ -136,19 +164,26 @@ This section describes how to create and configure the cluster for each Linux di
136164

137165
1. Authorize the nodes:
138166

167+
RHEL 7
139168
```bash
140-
sudo pcs cluster auth <Node1 Node2 ... NodeN> -u hacluster
169+
sudo pcs cluster auth <Node1 Node2 ... NodeN> -u hacluster -p <password for hacluster>
170+
sudo pcs cluster setup --name <PMClusterName> <node1> <node2> <node3>
171+
sudo pcs cluster start --all
172+
sudo pcs cluster enable --all
141173
```
142174

143175
In this example, *NodeX* is the name of the node.
144176

145-
1. Create the cluster:
146-
147-
```bash
148-
sudo pcs cluster setup --name <PMClusterName Nodelist> --start --all --enable
177+
RHEL 8 and later versions
178+
For RHEL 8 and later versions, you need to authenticate the nodes separately. Manually enter in the username and password for hacluster when prompted.
179+
```bash
180+
sudo pcs host auth <node1> <node2> <node3>
181+
sudo pcs cluster setup <PMClusterName> <node1> <node2> <node3>
182+
sudo pcs cluster start --all
183+
sudo pcs cluster enable --all
149184
```
150185

151-
In this example, `PMClusterName` is the name you assign to the Pacemaker cluster, and `Nodelist` is the list of node names separated by a space.
186+
In this example, `PMClusterName` is the name you assign to the Pacemaker cluster.
152187

153188
### [SUSE Linux Enterprise Server (SLES)](#tab/sles)
154189

@@ -218,13 +253,44 @@ Configuring Ubuntu is similar to RHEL. However, there's one major difference: in
218253

219254
1. Create the cluster. In this example, `PMClusterName` is the name you assign to the Pacemaker cluster, and `Nodelist` is the list of node names separated by a space.
220255

256+
Ubuntu 20.04
257+
221258
```bash
222259
sudo pcs cluster setup --name <PMClusterName Nodelist> --start --all --enable
223260
```
224261

262+
Ubuntu 22.04 and later versions
263+
264+
1. Authorize the nodes:
265+
```bash
266+
sudo pcs cluster auth <Node1 Node2 ... NodeN> -u hacluster
267+
```
268+
In this example, NodeX is the name of the node.
269+
270+
2. Create the cluster:
271+
```bash
272+
sudo pcs cluster setup <PMClusterName Nodelist>
273+
```
274+
In this example, PMClusterName is the name you assign to the Pacemaker cluster, and Nodelist is the list of node names separated by a space.
275+
276+
3. Start cluster on all nodes
277+
```bash
278+
sudo pcs cluster setup <PMClusterName Nodelist>
279+
```
280+
281+
4. Enable cluster to start on boot
282+
```bash
283+
sudo pcs cluster enable --all
284+
```
285+
286+
5. Verify cluster status
287+
```bash
288+
sudo pcs status
289+
```
290+
225291
---
226292

227-
## Install the SQL Server HA and SQL Server Agent packages
293+
## Install the SQL Server HA
228294

229295
Use the following commands to install the SQL Server HA package and [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] Agent, if they aren't installed already. If you install the HA package after installing [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)], you must restart [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] for the change to take effect. These instructions assume that the repositories for the Microsoft packages are already set up, since [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] should be installed at this point.
230296

@@ -235,21 +301,21 @@ Use the following commands to install the SQL Server HA package and [!INCLUDE [s
235301
### [Red Hat Enterprise Linux (RHEL)](#tab/rhel)
236302

237303
```bash
238-
sudo yum install mssql-server-ha mssql-server-agent
304+
sudo yum install mssql-server-ha
239305
sudo systemctl restart mssql-server
240306
```
241307

242308
### [SUSE Linux Enterprise Server (SLES)](#tab/sles)
243309

244310
```bash
245-
sudo zypper install mssql-server-ha mssql-server-agent
311+
sudo zypper install mssql-server-ha
246312
sudo systemctl restart mssql-server
247313
```
248314

249315
### [Ubuntu](#tab/ubuntu)
250316

251317
```bash
252-
sudo apt-get install mssql-server-ha mssql-server-agent
318+
sudo apt-get install mssql-server-ha
253319
sudo systemctl restart mssql-server
254320
```
255321

0 commit comments

Comments
 (0)