You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This article explains how to create a two-node shared disk failover cluster instance (FCI) for SQL Server. The article includes instructions and script examples for Red Hat Enterprise Linux (RHEL) or Suse Linux Enterprise Server (SLES). Ubuntu distributions are similar to RHEL so the script examples will normally also work on Ubuntu.
17
+
A SQL Server two-node shared disk failover cluster instance provides server-level redundancy for high availability. In this tutorial, you learn how to create a two-node failover cluster instance of SQL Server on Linux. The specific steps that you will complete include:
18
+
19
+
> [!div class="checklist"]
20
+
> * Set up and configure Linux
21
+
> * Install and configure SQL Server
22
+
> * Configure the hosts file
23
+
> * Configure shared storage and move the database files
24
+
> * Install and configure Pacemaker on each cluster node
25
+
> * Configure the failover cluster instance
26
+
27
+
This article explains how to create a two-node shared disk failover cluster instance (FCI) for SQL Server. The article includes instructions and script examples for Red Hat Enterprise Linux (RHEL). Ubuntu distributions are similar to RHEL so the script examples will normally also work on Ubuntu.
18
28
19
29
For conceptual information, see [SQL Server Failover Cluster Instance (FCI) on Linux](sql-server-linux-shared-disk-cluster-concepts.md).
20
30
21
31
## Prerequisites
22
32
23
33
To complete the end-to-end scenario below you need two machines to deploy the two nodes cluster and another server for storage. Below steps outline how these servers will be configured.
24
34
25
-
## Setup and configure Linux
35
+
## Set up and configure Linux
26
36
27
37
The first step is to configure the operating system on the cluster nodes. On each node in the cluster, configure a linux distribution. Use the same distribution and version on both nodes. Use either one or the other of the following distributions:
28
38
29
39
* RHEL with a valid subscription for the HA add-on
30
-
* SLES with SUSE Linux Enterprise High Availability Extension 12 SP2.
31
40
32
41
## Install and configure SQL Server
33
42
34
-
1. Install and setup SQL Server on both nodes. For detailed instructions see [Install SQL Server on Linux](sql-server-linux-setup.md).
43
+
1. Install and set up SQL Server on both nodes. For detailed instructions see [Install SQL Server on Linux](sql-server-linux-setup.md).
35
44
1. Designate one node as primary and the other as secondary, for purposes of configuration. Use these terms for the following this guide.
36
45
1. On the secondary node, stop and disable SQL Server.
37
46
The following example stops and disables SQL Server:
@@ -41,7 +50,7 @@ The first step is to configure the operating system on the cluster nodes. On eac
41
50
```
42
51
43
52
> [!NOTE]
44
-
> At setup time, a Server Master Key is generated for the SQL Server instance and placed at `var/opt/mssql/secrets/machine-key`. On Linux, SQL Server always runs as a local account called mssql. Because it’s a local account, its identity isn’t shared across nodes. Therefore, you need to copy the encryption key from primary node to each secondary node so each local mssql account can access it to decrypt the Server Master Key.
53
+
> At set up time, a Server Master Key is generated for the SQL Server instance and placed at `var/opt/mssql/secrets/machine-key`. On Linux, SQL Server always runs as a local account called mssql. Because it’s a local account, its identity isn’t shared across nodes. Therefore, you need to copy the encryption key from primary node to each secondary node so each local mssql account can access it to decrypt the Server Master Key.
45
54
46
55
1. On the primary node, create a SQL server login for Pacemaker and grant the login permission to run `sp_server_diagnostics`. Pacemaker will use this account to verify which node is running SQL Server.
47
56
@@ -144,8 +153,7 @@ You need to provide storage that both nodes can access. You can use iSCSI, NFS,
The FCI will be created in a resource group. This is a little bit easier since the resource group alleviates the need forconstraints. However, add the resources into the resource groupin the order they should start. The order they should start is:
151
159
@@ -262,9 +270,20 @@ This example will create an FCI in the group NewLinFCIGrp. The name of the resou
262
270
|**Red Hat Enterprise Linux with HA add-on**|[Configure](sql-server-linux-shared-disk-cluster-red-hat-7-configure.md)<br/>[Operate](sql-server-linux-shared-disk-cluster-red-hat-7-operate.md)
263
271
|**SUSE Linux Enterprise Server with HA add-on**|[Configure](sql-server-linux-shared-disk-cluster-sles-configure.md)
264
272
-->
273
+
## Summary
274
+
275
+
In this tutorial you completed the following tasks.
276
+
277
+
> [!div class="checklist"]
278
+
>* Set up and configure Linux
279
+
>* Install and configure SQL Server
280
+
>* Configure the hosts file
281
+
>* Configure shared storage and move the database files
282
+
>* Install and configure Pacemaker on each cluster node
283
+
>* Configure the failover cluster instance
265
284
266
-
## Next Steps
285
+
## Next steps
267
286
268
287
- [Operate failover cluster instance - SQL Server on Linux](sql-server-linux-shared-disk-cluster-operate.md)
0 commit comments