Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 4b75cc7

Browse files
authored
Merge pull request #23882 from MicrosoftDocs/multipleNICs
Adding clarity for setting up HA w/ multiple NICs
2 parents d230eda + 52207a3 commit 4b75cc7

5 files changed

Lines changed: 58 additions & 8 deletions
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
author: VanMSFT
3+
ms.author: vanto
4+
ms.date: 08/25/2022
5+
ms.prod: sql
6+
ms.technology: linux
7+
ms.topic: include
8+
---
9+
## Considerations for multiple Network Interfaces (NICs)
10+
11+
When setting up high availability with servers that have multiple NICs, follow these suggestions:
12+
13+
- Make sure the `hosts` file is set up so that the server IP addresses for the multiple NICs resolve to the hostname of the Linux server on each node.
14+
- When setting up the cluster using Pacemaker, using the hostname of the servers should configure Corosync to set the configuration for all of the NICs. We only want the Pacemaker/Corosync communication over a single NIC. Once the Pacemaker cluster is configured, modify the configuration in the `corosync.conf` file, and update the IP address for the dedicated NIC you want to use for the Pacemaker/Corosync communication.
15+
- The `<hostname>` given in the `corosync.conf` file should be the same as the output given when doing a reverse lookup (`ping -a <ip_address>`), and should be the short name configured on the host. Make sure the `hosts` file also represents the proper IP address to name resolution.
16+
17+
The changes to the `corosync.conf` file example are highlighted below:
18+
19+
<pre>
20+
nodelist {
21+
node {
22+
ring0_addr: <b>ip_address_of_node1_NIC1</b>
23+
name: <b>hostname_of_node1</b>
24+
nodeid: 1
25+
}
26+
node {
27+
ring0_addr: <b>ip_address_of_node2_NIC1</b>
28+
name: <b>hostname_of_node2</b>
29+
nodeid: 2
30+
}
31+
node {
32+
ring0_addr: <b>ip_address_of_node3_NIC1</b>
33+
name: <b>hostname_of_node3</b>
34+
nodeid: 3
35+
}
36+
}
37+
</pre>

docs/linux/sql-server-linux-availability-group-cluster-rhel.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.custom: seo-lt-2019
55
author: VanMSFT
66
ms.author: vanto
77
ms.reviewer: vanto
8-
ms.date: 01/23/2020
8+
ms.date: 08/25/2022
99
ms.topic: conceptual
1010
ms.prod: sql
1111
ms.technology: linux
@@ -100,7 +100,9 @@ After you register the subscription, complete the following steps to configure P
100100

101101
[!INCLUDE [RHEL-Configure-Pacemaker](includes/ss-linux-cluster-pacemaker-configure-rhel.md)]
102102

103-
After Pacemaker is configured, use `pcs` to interact with the cluster. Execute all commands on one node from the cluster.
103+
After Pacemaker is configured, use `pcs` to interact with the cluster. Execute all commands on one node from the cluster.
104+
105+
[!INCLUDE [Considerations for multiple NICs](includes/sql-server-linux-availability-group-multiple-network-interfaces.md)]
104106

105107
## Configure fencing (STONITH)
106108

docs/linux/sql-server-linux-availability-group-cluster-sles.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to create availability group clusters for SQL Server on S
55
author: VanMSFT
66
ms.author: vanto
77
ms.reviewer: vanto
8-
ms.date: 07/09/2021
8+
ms.date: 08/25/2022
99
ms.topic: conceptual
1010
ms.prod: sql
1111
ms.technology: linux
@@ -142,7 +142,7 @@ If you have a cluster running with one or more nodes, add more cluster nodes wit
142142

143143
If you have configured the existing cluster nodes with the `YaST` cluster module, make sure the following prerequisites are fulfilled before you run `ha-cluster-join`:
144144
- The root user on the existing nodes has SSH keys in place for passwordless login.
145-
- `Csync2` is configured on the existing nodes. For more information,see Configuring Csync2 with YaST.
145+
- `Csync2` is configured on the existing nodes. For more information, see Configuring Csync2 with YaST.
146146

147147
1. Log in as root to the physical or virtual machine supposed to join the cluster.
148148
2. Start the bootstrap script by executing:
@@ -178,7 +178,7 @@ If you have configured the existing cluster nodes with the `YaST` cluster module
178178
>[!NOTE]
179179
>`admin_addr` is the virtual IP cluster resource which is configured during initial one-node cluster setup.
180180
181-
After adding all nodes, check if you need to adjust the no-quorum-policy in the global cluster options. This is especially important for two-node clusters. For more information,see Section 4.1.2, Option no-quorum-policy.
181+
After adding all nodes, check if you need to adjust the no-quorum-policy in the global cluster options. This is especially important for two-node clusters. For more information, see Section 4.1.2, Option no-quorum-policy.
182182

183183
## Set cluster property cluster-recheck-interval
184184

@@ -209,6 +209,8 @@ crm configure property cluster-recheck-interval=2min
209209
210210
For more information on Pacemaker cluster properties, see [Configuring Cluster Resources](https://www.suse.com/documentation/sle_ha/book_sleha/data/sec_ha_config_crm_resources.html).
211211
212+
[!INCLUDE [Considerations for multiple NICs](includes/sql-server-linux-availability-group-multiple-network-interfaces.md)]
213+
212214
## Configure fencing (STONITH)
213215
Pacemaker cluster vendors require STONITH to be enabled and a fencing device configured for a supported cluster setup. When the cluster resource manager cannot determine the state of a node or of a resource on a node, fencing is used to bring the cluster to a known state again.
214216

docs/linux/sql-server-linux-availability-group-cluster-ubuntu.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.custom: seo-lt-2019
66
author: VanMSFT
77
ms.author: vanto
88
ms.reviewer: vanto, randolphwest
9-
ms.date: 04/12/2022
9+
ms.date: 08/25/2022
1010
ms.topic: conceptual
1111
ms.prod: sql
1212
ms.technology: linux
@@ -139,6 +139,8 @@ The error is harmless, and cluster configuration can continue.
139139

140140
If you previously configured a cluster on the same nodes, you need to use the `--force` option when running `pcs cluster setup`. This is equivalent to running `pcs cluster destroy`, and the Pacemaker service needs to be reenabled using `sudo systemctl enable pacemaker`.
141141

142+
[!INCLUDE [Considerations for multiple NICs](includes/sql-server-linux-availability-group-multiple-network-interfaces.md)]
143+
142144
## <a id="stonith"></a> Configure fencing (STONITH)
143145

144146
Pacemaker cluster vendors require STONITH to be enabled and a fencing device configured for a supported cluster setup. (STONITH stands for "shoot the other node in the head".) When the cluster resource manager can't determine the state of a node or of a resource on a node, fencing is used to bring the cluster to a known state again.

docs/linux/sql-server-linux-availability-group-configure-ha.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: VanMSFT
55
ms.custom: seo-lt-2019
66
ms.author: vanto
77
ms.reviewer: vanto
8-
ms.date: 03/01/2022
8+
ms.date: 08/24/2022
99
ms.topic: conceptual
1010
ms.prod: sql
1111
ms.technology: linux
@@ -57,6 +57,14 @@ The steps to create an AG on Linux servers for high availability are different f
5757
* [SLES](sql-server-linux-availability-group-cluster-sles.md#configure-the-cluster-resources-for-sql-server)
5858
* [Ubuntu](sql-server-linux-availability-group-cluster-ubuntu.md#create-availability-group-resource)
5959

60+
### Considerations for multiple Network Interfaces (NICs)
61+
62+
For information on setting up an availability group for servers with multiple NICs, see the relevant sections for:
63+
64+
- [RHEL](sql-server-linux-availability-group-cluster-rhel.md#considerations-for-multiple-network-interfaces-nics)
65+
- [SLES](sql-server-linux-availability-group-cluster-sles.md#considerations-for-multiple-network-interfaces-nics)
66+
- [Ubuntu](sql-server-linux-availability-group-cluster-ubuntu.md#considerations-for-multiple-network-interfaces-nics)
67+
6068
[!INCLUDE [Create Prerequisites](includes/ss-linux-cluster-availability-group-create-prereq.md)]
6169

6270
## Create the AG
@@ -225,7 +233,6 @@ If you followed the steps in this document, you have an AG that is not yet clust
225233
>[!IMPORTANT]
226234
>If the AG is a cluster resource, there is a known issue in current release where forced failover with data loss to an asynchronous replica does not work. This will be fixed in the upcoming release. Manual or automatic failover to a synchronous replica succeeds.
227235
228-
229236
## Next steps
230237

231238
[Configure Red Hat Enterprise Linux Cluster for SQL Server Availability Group Cluster Resources](sql-server-linux-availability-group-cluster-rhel.md)

0 commit comments

Comments
 (0)