[Pacemaker] anti-placement syntax

Vadym Chepkov vchepkov at gmail.com
Sat Nov 20 09:40:31 EST 2010


Hi,

crm has a nice placement constraint syntax

location loc1 res1 inf: node1

which is a shortcut for

location loc1 res1 inf: rule #uname eq node1

Sometimes, in otherwise symmetric cluster, there are some resources that have to be running on a certain node, 
so one has to create an anti-placement constraint, to prevent it from running anywhere else:

location loc2 res2 -inf: rule #uname ne node2

It would be nice to be able to short cut it too, don't you think?

location loc2 res2 -inf: !node2

Thanks,
Vadym



More information about the Pacemaker mailing list