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-24Lines changed: 6 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ During a manual failover, the `pcs` command `move` or `crm` command `migrate` ad
66
66
-**RHEL/Ubuntu example**
67
67
68
68
```bash
69
-
sudo pcs constraint --full
69
+
sudo pcs constraint list --full
70
70
```
71
71
72
72
-**SLES example**
@@ -75,35 +75,17 @@ During a manual failover, the `pcs` command `move` or `crm` command `migrate` ad
75
75
crm config show
76
76
```
77
77
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)`
81
80
82
81
-**RHEL/Ubuntu example**
83
82
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.
0 commit comments