[Pacemaker] "crm resource restart" does not work on the DC node with crmd-transtion-delay="2s"

NAKAHIRA Kazutomo nakahira.kazutomo at oss.ntt.co.jp
Tue Aug 2 05:12:12 EDT 2011


Hi, Andrew

(2011/08/01 12:13), Andrew Beekhof wrote:
> 2011/7/27 NAKAHIRA Kazutomo<nakahira.kazutomo at oss.ntt.co.jp>:
>> Hi, all
>>
>> I configured crmd-transition-delay="2s" to address the following problem.
>>
>>   http://www.gossamer-threads.com/lists/linuxha/pacemaker/68504
>>   http://developerbugs.linux-foundation.org/show_bug.cgi?id=2528
>>
>> And then, "crm resource restart" command get become less able to
>> restart any resources on the DC node.
>> # "crm resource restart" works fine on the non-DC node.
>> # Please see attached hb_report generated on the simple environment.
>>
>> How can I use "crm resource restart" command on the DC node
>> with crmd-transtion-delay="2s"?
>
> Sounds like the shell isn't waiting long enough.

I understood that it is hard to resolve this problem by the 
configuration and we need to fix crm shell. Would that be about right?

If so, I made a patch for crm shell that wait a crmd-transition-delay 
before checking DC node status.

Please see attached patch.

Best regards,

>
>>
>> I confirmed that I can avoid this problem by the following procedure
>>   1. "crm resource stop rsc-ID"
>>   2. wait crmd-transtion-delay(2) scond
>>   3. "crm resource start rsc-ID"
>> but this behavior(restart does not works on the DC node)
>> may be confuse users.
>>
>> Best regards,
>>
>> --
>> NAKAHIRA Kazutomo
>> Infrastructure Software Technology Unit
>> NTT Open Source Software Center
>>
>> _______________________________________________
>> 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
>
>


-- 
NAKAHIRA Kazutomo
Infrastructure Software Technology Unit
NTT Open Source Software Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crm-1.patch
Type: text/x-patch
Size: 2484 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110802/e2546c35/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crm-2.patch
Type: text/x-patch
Size: 1011 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110802/e2546c35/attachment-0007.bin>


More information about the Pacemaker mailing list