This write-up details the process of removing constraints.
Remove Constraints
1 – List the currently configured constraints using the pcs constraint list --full
command.
1 2 |
pcs constraint list --full |
Example Output
1 2 3 4 5 6 7 |
Location Constraints: Resource: test_sg Disabled on: server01-cpn (score:-INFINITY) (role: Started) (id:cli-ban-test_sg-on-server01-cpn) Ordering Constraints: Colocation Constraints: Ticket Constraints: |
2 – Note the id
string and use that to remove the constraints use the pcs constraint remove id
command.
1 2 |
pcs constraint remove cli-ban-test_sg-on-server01-cpn |
3 – Verify the constraints have been removed using the pcs constraint list --full
command.
1 2 |
pcs constraint list --full |
Example Output
1 2 3 4 5 |
Location Constraints: Ordering Constraints: Colocation Constraints: Ticket Constraints: |