Removing cluster constraints, resource groups, and resources
Knowing how to remove the configured cluster constraints, resource groups, and resources is just as important as knowing how to configure them. Removing them is quite easy and self-explanatory.
Removing resource constraints
You can see the configured cluster resource constraints with the following command:
pcs constraint show
In the following screenshot, you can see the output of the pcs constraint show
command.
As you can see in the preceding screenshot, the possible configured location constraints are:
- Location constraints: None configured
- Ordering constraints: The cluster resource order constraint is set to start the resource called ClusterIP before the resource called WebServer
- Colocation constraints: The cluster resource colocation constraint is configured to run resources ClusterIP and WebServer together
- You can delete the cluster order constraint from the preceding example with the following command:
pcs constraint order remove...