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

Commit 401cd5f

Browse files
committed
Update numbered steps.
1 parent 110d3b3 commit 401cd5f

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

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

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -212,19 +212,21 @@ When availability group replicas are on instances of SQL Server in Linux, the cl
212212
If the availability group cluster type is `NONE`, manually failover the availability group with Transact-SQL.
213213

214214
>[!IMPORTANT]
215-
>This procedure only applies to availability groups that do not have a cluster manager. Run the following steps in order:
215+
>This procedure only applies to availability groups that do not have a cluster manager.
216216

217-
a. The following command sets the primary replica to secondary. Replace `AG1` with the name of your availability group. Run the Transact-SQL command on the instance of SQL Server that hosts the primary replica.
217+
Run the following steps in order:
218218

219-
```transact-sql
220-
ALTER AVAILABILITY GROUP [ag1] SET (ROLE = SECONDARY);
221-
```
219+
a. The following command sets the primary replica to secondary. Replace `AG1` with the name of your availability group. Run the Transact-SQL command on the instance of SQL Server that hosts the primary replica.
222220

223-
b. The following command sets a synchronous secondary replica to primary. Run the following Transact-SQL command on the target instance of SQL Server - the instance that hosts the synchronous secondary replica.
221+
```transact-sql
222+
ALTER AVAILABILITY GROUP [ag1] SET (ROLE = SECONDARY);
223+
```
224224

225-
```transact-sql
226-
ALTER AVAILABILITY GROUP [ag1] FAILOVER;
227-
```
225+
b. The following command sets a synchronous secondary replica to primary. Run the following Transact-SQL command on the target instance of SQL Server - the instance that hosts the synchronous secondary replica.
226+
227+
```transact-sql
228+
ALTER AVAILABILITY GROUP [ag1] FAILOVER;
229+
```
228230

229231
1. After failover, upgrade SQL Server on the old primary replica.
230232

0 commit comments

Comments
 (0)