[ClusterLabs] syntax question regarding pcs order sets

Tomas Jelinek tojeline at redhat.com
Wed Jun 10 08:27:00 EDT 2015

Dne 10.6.2015 v 00:38 Dennis Jacobfeuerborn napsal(a):
> Hi,
> I'm not sure if I understand the syntax correctly for pcs order sets:
> pcs constraint order set resource1 resource2 [resourceN]... [options]
> [set resourceX resourceY ... [options]] [setoptions [constraint_options]]
> What I'm confused by is the two lists of resources. Is this simply a way
> to define several sets in one go or would there also exist an order
> constraint between the two defined sets themselves?

Hi Dennis,
It allows you to specify more sets in one constraint. For better 
understanding how this works you can check out Pacemaker Explained: 

For example this command:
pcs constraint order set A B sequential=false set C D sequential=true 
set E F sequential=false
creates a constraint which is described in Example 6.11. and Figure 6.3. 
in Pacemaker Explained.


> I'm wondering because I'm not sure if it is possible to define a set
> where the first resource would the the master state of a drbd clone
> resource followed by several Filesystem Resources e.g.:
> drbd_clone:Master -> fs1 -> fs2 -> fs3
> Is it possible to use an order set to express this?
> Regards,
>     Dennis
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://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