[ClusterLabs] resource group vs colocation

Tomas Jelinek tojeline at redhat.com
Fri Apr 28 08:54:41 CEST 2017


Dne 27.4.2017 v 23:13 Ken Gaillot napsal(a):
> On 04/27/2017 02:02 PM, lejeczek wrote:
>> hi everyone
>>
>> I have a group and I'm trying to colocate - sounds strange - order with
>> the group is not how I want it.
>> I was hoping that with colocation set I can reorder the resources - can
>> I? Because .. something, or my is not getting there.
>> I have within a group:
>>
>> IP
>> mount
>> smb
>> IP1
>>
>> and I colocated sets:
>>
>> set IP IP1 sequential=false set mount smb
>>
>> and yet smb would not start on IP1. I see resource are still being order
>> as they list.
>>
>> Could somebody shed more light on what is wrong and group vs colocation
>> subject?
>>
>> m. thanks
>> L.
>
> A group is a shorthand for colocation and order constraints between its
> members. So, you should use either a group, or a colocation set, but not
> both with the same members.
>
> If you simply want to reorder the sequence in which the group members
> start, just recreate the group, listing them in the order you want. That

If you're using pcs, you can change the order of resources within an 
existing group with the "pcs resource group add" command and --before or 
--after options. For example
pcs resource group add your_group IP1 --after IP
changes your group like this
IP
IP1
mount
smb

> is, the first member of the group will be started first, then the second
> member, etc.
>
> If you prefer using sets, then don't group the resources -- use separate
> colocation and ordering constraints with the sets, as desired.
>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://lists.clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>



More information about the Users mailing list