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
Copy file name to clipboardExpand all lines: docs/linux/sql-server-linux-availability-group-failover-ha.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Manage availability group failover - SQL Server on Linux
3
3
description: "This article describes types of failover: automatic, planned manual failover, and forced manual failover. Automatic and planned manual preserve all your data."
4
4
author: tejasaks
5
5
ms.author: tejasaks
6
-
ms.reviewer: vanto
6
+
ms.reviewer: vanto, randolphwest
7
7
ms.date: 10/05/2021
8
8
ms.service: sql
9
9
ms.subservice: linux
@@ -17,14 +17,14 @@ Within the context of an availability group (AG), the primary role and secondary
17
17
18
18
For background information about failover, see [Failover and failover modes](../database-engine/availability-groups/windows/failover-and-failover-modes-always-on-availability-groups.md).
19
19
20
-
## <aname="failover"></a>Manual failover
20
+
## <aid="failover"></a>Manual failover
21
21
22
22
Use the cluster management tools to fail over an AG managed by an external cluster manager. For example, if a solution uses Pacemaker to manage a Linux cluster, use `pcs` to perform manual failovers on RHEL or Ubuntu. On SLES use `crm`.
23
23
24
24
> [!IMPORTANT]
25
25
> Under normal operations, do not fail over with Transact-SQL or SQL Server management tools like SSMS or PowerShell. When `CLUSTER_TYPE = EXTERNAL`, the only acceptable value for `FAILOVER_MODE` is `EXTERNAL`. With these settings, all manual or automatic failover actions are executed by the external cluster manager. For instructions to force failover with potential data loss, see [Force failover](#forceFailover).
To fail over, the secondary replica that will become the primary replica must be synchronous. If a secondary replica is asynchronous, [change the availability mode](../database-engine/availability-groups/windows/change-the-availability-mode-of-an-availability-replica-sql-server.md).
30
30
@@ -36,7 +36,7 @@ Manually fail over in two steps.
36
36
37
37
Second, [remove the location constraint](#removeLocConstraint).
38
38
39
-
#### <aname="manualMove"></a> Step 1. Manually fail over by moving availability group resource
39
+
#### <aid="manualMove"></a> Step 1. Manually fail over by moving availability group resource
40
40
41
41
To manually fail over an AG resource named *ag_cluster* to cluster node named *nodeName2*, run the appropriate command for your distribution:
42
42
@@ -56,7 +56,7 @@ To manually fail over an AG resource named *ag_cluster* to cluster node named *n
56
56
>When you use the --lifetime option, the location constraint created to move the resource is temporary in nature and is valid for 30 seconds in previous example.
57
57
>Please note that the temporary constraint is not cleared automatically and may show up in the constraint list, but as an expired constraint. Expired constraints do not affect the failover behavior of pacemaker cluster. If you do not use the --lifetime option when moving the resource, you should remove a location constraint that is automatically added as noted below.
58
58
59
-
#### <aname="removeLocConstraint"></a> Step 2. Remove the location constraint
59
+
#### <aid="removeLocConstraint"></a> Step 2. Remove the location constraint
60
60
61
61
During a manual failover, the `pcs` command `move` or `crm` command `migrate` adds a location constraint for the resource to be placed on the new target node. To see the new constraint, run the following command after manually moving the resource:
A forced failover is intended strictly for disaster recovery. In this case, you cannot fail over with cluster management tools because the primary datacenter is down. If you force failover to an unsynchronized secondary replica, some data loss is possible. Only force failover if you must restore service to the AG immediately and are willing to risk losing data.
If you need an offline installation, locate the Full-text Search package download in the [Release notes](sql-server-linux-release-notes-2017.md). Then use the same offline installation steps described in the article [Install SQL Server](sql-server-linux-setup.md#offline).
43
43
44
-
## <aname="ubuntu">Install on Ubuntu</a>
44
+
## <aid="ubuntu"></a> Install on Ubuntu
45
45
46
46
Use the following commands to install the **mssql-server-fts** on Ubuntu.
If you need an offline installation, locate the Full-text Search package download in the [Release notes](sql-server-linux-release-notes-2017.md). Then use the same offline installation steps described in the article [Install SQL Server](sql-server-linux-setup.md#offline).
61
61
62
-
## <aname="SLES">Install on SLES</a>
62
+
## <aid="SLES"></a> Install on SLES
63
63
64
64
Use the following commands to install the **mssql-server-fts** on SUSE Linux Enterprise Server.
> SQL Server Management Studio Object Explorer does not display the contents of the SQL Server Agent node unless *Agent XPs* extended stored procedures are enabled, regardless of the SQL Server Agent service state. For more information, see [Agent XPs Server Configuration Option](../database-engine/configure-windows/agent-xps-server-configuration-option.md)
55
55
56
-
## <aname="InstallAgentBelowCU4"></a>Install the SQL Server Agent
56
+
## <aid="InstallAgentBelowCU4"></a>Install the SQL Server Agent
57
57
58
58
For SQL Server 2017 CU3 and earlier, you must install the SQL Server Agent package.
59
59
@@ -65,7 +65,7 @@ Install the SQL Server Agent for your platform:
65
65
-[Ubuntu](#ubuntu)
66
66
-[SUSE Linux Enterprise Server](#SLES)
67
67
68
-
### <aname="RHEL">Install on RHEL</a>
68
+
### <aid="RHEL"></a> Install on RHEL
69
69
70
70
Use the following steps to install the **mssql-server-agent** on Red Hat Enterprise Linux.
If you need an offline installation, locate the SQL Server Agent package download in the [Release notes](sql-server-linux-release-notes-2017.md). Then use the same offline installation steps described in the article [Install SQL Server](sql-server-linux-setup.md#offline).
86
86
87
-
### <aname="ubuntu">Install on Ubuntu</a>
87
+
### <aid="ubuntu"></a> Install on Ubuntu
88
88
89
89
Use the following steps to install the **mssql-server-agent** on Ubuntu.
If you need an offline installation, locate the SQL Server Agent package download in the [Release notes](sql-server-linux-release-notes-2017.md). Then use the same offline installation steps described in the article [Install SQL Server](sql-server-linux-setup.md#offline).
106
106
107
-
### <aname="SLES">Install on SLES</a>
107
+
### <aid="SLES"></a> Install on SLES
108
108
109
109
Use the following steps to install the **mssql-server-agent** on SUSE Linux Enterprise Server.
0 commit comments