Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.53 KB

File metadata and controls

31 lines (21 loc) · 1.53 KB

Important

After you manually failover a resource, you need to remove a location constraint that is automatically added during the move.

Remove the location constraint

During a manual move, the move command 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:

sudo pcs constraint --full

You need to remove the location constraint so future moves - including automatic failover - succeed.

To remove the constraint run the following command. In the following command ag_cluster-master is the name of the resource that was moved. Replace this name with the name of your resource:

sudo pcs resource clear ag_cluster-master 

Alternatively, you can run the following command to remove the location constraint. 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.

sudo pcs constraint remove cli-prefer-ag_cluster-master  

Note

Automatic failover does not add a location constraint, so no cleanup is necessary.

For more information: