The hastexo group is to thank for this answer! (www.hastexo.com) 

For anyone who has a colocation problem like I did hopefully this will help! 

Pacemaker 1.1.6 fixes incorrect functionality with colocation constraints. When 
you create a colocation with resources that have different roles it 
automatically creates a resource set with like roles. This then makes the 
resources in the set apply rules as a group instead of how a basic colocation 
would. This makes the p_lsb and p_fs end up colocation in reverse (p_fs on 
p_lsb) which is why I had what seemed to be a backward result of my stop 
command. So other than breaking out the resources into two separate colo 
statements you can also change the order of the colo to create the resource set 
in the correct order: 

colocation c_lsb_arpwatch_on_fs_arpwatch_on_drbd_arpwatch_master inf: 
p_fs_arpwatch p_lsb_arpwatch ms_drbd_arpwatch:Master 

p_fs and p_lsb become a resource set ("group" if you will) inside of the colo 
statement so they start: 
p_fs then p_lsb and colocate: 
p_lsb on p_fs. 

Jake 

----- Original Message -----

> From: "Jake Smith" <[email protected]>
> To: [email protected]
> Sent: Wednesday, November 2, 2011 11:45:27 AM
> Subject: Re: [Ubuntu-ha] Issue after upgrading to the new packages
> with ordering contraints

> Whoops - I was mistaken (I assumed! - changed both ordering and
> colocations and didn't try each independently first!)...

> It is the colocation constraint that is the problem not the ordering.
> Here is those statements:

> colocation c_lsb_arpwatch_on_fs_arpwatch_on_drbd_arpwatch_master inf:
> p_lsb_arpwatch p_fs_arpwatch ms_drbd_arpwatch:Master
> Stop stops both lsb and fs

> colocation c_fs_arpwatch_on_drbd_arpwatch_master inf: p_fs_arpwatch
> ms_drbd_arpwatch:Master
> colocation c_lsb_arpwatch_on_fs_arpwatch inf: p_lsb_arpwatch
> p_fs_arpwatch
> Stop stops only lsb.

> Same questions though... something wrong with my statement logic or a
> bug?

> Jake

> ----- Original Message -----

> > From: "Jake Smith" <[email protected]>
> 
> > To: [email protected]
> 
> > Sent: Wednesday, November 2, 2011 11:27:55 AM
> 
> > Subject: [Ubuntu-ha] Issue after upgrading to the new packages with
> > ordering contraints
> 

> > After upgrading to the latest Ubuntu-HA packages a script I had
> > stopped working correctly. I tracked down the issue and fixed it
> > but
> > now I'm not sure whether it's a bug or I don't know how to properly
> > write ordering constraints.
> 

> > If I should be posting this to the Pacemaker list instead please
> > let
> > me know!
> 

> > I have a script that stops an LSB resource, manipulates some of
> > it's
> > files, then restarts the resource. When it executes the stop it not
> > only stopped the LSB resource but also the underlying file system
> > resource (but not the DRBD resource under that). Prior to updating
> > it only stopped the LSB resource. I modified my ordering
> > constraints
> > around the LSB and now it works as expected. Here is the before and
> > after:
> 

> > Command in script: crm resource stop p_lsb_arpwatch
> 

> > Before:
> 
> > order o_drbd_arpwatch_master_before_fs_arpwatch_before_lsb_arpwatch
> > inf: ms_drbd_arpwatch:promote p_fs_arpwatch:start
> > p_lsb_arpwatch:start
> 
> > Command results in p_lsb_arpwatch and p_fs_arpwatch stopping
> 

> > After:
> 
> > order o_drbd_arpwatch_master_before_fs_arpwatch inf:
> > ms_drbd_arpwatch:promote p_fs_arpwatch:start
> 
> > order o_fs_arpwatch_before_lsb_arpwatch inf: p_fs_arpwatch:start
> > p_lsb_arpwatch:start
> 
> > Command results in only p_lsb_arpwatch stopping
> 

> > Is this a bug or do I not understand multi-resource ordering
> > constraints properly?
> 

> > Thanks!
> 

> > Jake Smith
> 
> > Network Admin
> 
> > Argotec, Inc.
> 
> > _______________________________________________
> 
> > Mailing list: https://launchpad.net/~ubuntu-ha
> 
> > Post to : [email protected]
> 
> > Unsubscribe : https://launchpad.net/~ubuntu-ha
> 
> > More help : https://help.launchpad.net/ListHelp
> 

> _______________________________________________
> Mailing list: https://launchpad.net/~ubuntu-ha
> Post to : [email protected]
> Unsubscribe : https://launchpad.net/~ubuntu-ha
> More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-ha
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-ha
More help   : https://help.launchpad.net/ListHelp

Reply via email to