[Pacemaker] resource order question

Andreas Kurz andreas.kurz at linbit.com
Fri Apr 29 11:24:55 UTC 2011


On 2011-04-29 09:23, Andrew Beekhof wrote:
> On Fri, Apr 29, 2011 at 9:16 AM,  <u.schmeling at online.de> wrote:
>>
>> Hi all,
>>
>> Using the MailTo resource I want to generate a more specific message, like this: Having 2 resources running on a node like MailTo and Dummy (besides some other resources) . Adding a order rule like "order Dummy-before-Notify inf: Dummy MailTo". So if the Dummy resource is started it will write a specific message to a file and MailTo will pickup the message. Now my question: Having this order, on a stop event which resource will be stopped first?
> 
> Notify I'm afraid.

try unsymmetric order constraints:

order start-Dummy-before-Notify inf: Dummy:start MailTo:start
symmetrical=false

order stop-Dummy-before-Notify inf: Dummy:stop MailTo:stop symmetrical=false

Regards,
Andreas

> 
>> If also Dummy would be stopped first, it would be possible to place a specific down messag into the stop procedure of Dummy and picking it up again with MailTo
>>
>> regards Uwe
>>
>>
>> _______________________________________________
>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>> Project Home: http://www.clusterlabs.org
>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>>
>>
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 294 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110429/49cff5bf/attachment-0004.sig>


More information about the Pacemaker mailing list