ClusterLabs/pcs

Does pcs has command to modify resource's position which is inside a resource group?

Closed this issue · 2 comments

It seems like there is no way else to modify a resource's position except specific it when add it into a group(use --after/--before)

Is it design this way or I just miss it?

Hi @F16shen,

It's the same command as for adding a resource to a group:

# pcs resource group add gr d1 d2 d3
# pcs resource group list
gr: d1 d2 d3
# pcs resource group add gr d3 --before d2
# pcs resource group list
gr: d1 d3 d2

It's also mentioned in help / man page:

By adding resources to a group they are already in and specifying --after or --before you can move the resources in the group.