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

Commit 2b32cc6

Browse files
authored
Merge pull request #6049 from SQLSourabh/patch-26
Update sql-server-linux-availability-group-failover-ha.md
2 parents f23ca42 + f4dd8af commit 2b32cc6

1 file changed

Lines changed: 6 additions & 24 deletions

File tree

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

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ During a manual failover, the `pcs` command `move` or `crm` command `migrate` ad
6666
- **RHEL/Ubuntu example**
6767

6868
```bash
69-
sudo pcs constraint --full
69+
sudo pcs constraint list --full
7070
```
7171

7272
- **SLES example**
@@ -75,35 +75,17 @@ During a manual failover, the `pcs` command `move` or `crm` command `migrate` ad
7575
crm config show
7676
```
7777

78-
Remove the location constraint so future failovers - including automatic failover - succeed.
79-
80-
To remove the constraint, run the following command:
78+
An example of the constraint which gets created becuase of a manual failover.
79+
`Enabled on: Node1 (score:INFINITY) (role: Master) (id:cli-prefer-ag_cluster-master)`
8180

8281
- **RHEL/Ubuntu example**
8382

84-
In this example `ag_cluster-master` is the name of the resource that failed over.
85-
86-
```bash
87-
sudo pcs resource clear ag_cluster-master
88-
```
89-
90-
- **SLES example**
91-
92-
In this example `ag_cluster` is the name of the resource that failed over.
93-
94-
```bash
95-
crm resource clear ag_cluster
96-
```
97-
98-
Alternatively, you can run the following command to remove the location constraint.
99-
100-
- **RHEL/Ubuntu example**
101-
102-
In the following command `cli-prefer-ag_cluster-master` is the ID of the constraint that needs to be removed. `sudo pcs constraint --full` returns this ID.
103-
83+
In the following command `cli-prefer-ag_cluster-master` is the ID of the constraint that needs to be removed. `sudo pcs constraint list --full` returns this ID.
84+
10485
```bash
10586
sudo pcs constraint remove cli-prefer-ag_cluster-master
10687
```
88+
10789
- **SLES example**
10890

10991
In the following command `cli-prefer-ms-ag_cluster` is the ID of the constraint. `crm config show` returns this ID.

0 commit comments

Comments
 (0)