[Pacemaker] Howto test/simulate the reaction of the cluster to node up and down

Andrew Beekhof andrew at beekhof.net
Thu Sep 19 11:10:37 UTC 2013


On 19/09/2013, at 5:57 PM, Andreas Mock <Andreas.Mock at web.de> wrote:

> Hi Lars, hi Andrew,
> 
> thank you for your answers.
> But I'm still stuck.
> 
> When I do have both nodes online and the resources
> are spread over these nodes and I do a
> crm_simulate -Ls -R -d node1
> I do see nicly what would happen to the cluster when the
> node goes down. Allocation scores and a transition summary
> showing the movements of the resources.
> 
> But in the case vice versa, that means the node is down
> (service pacemaker stop) and I want to simulate the "going online
> of the node" with
> crm_simulate -Ls -R -u node1
> I do see

But we do not.
You need to show us (and ideally attach the current cibadmin -Ql so we can try too). 

> the current cluster status, the scores (without node being
> online (=> -INFINITY) and no transitions.
> 
> It looks like another state transition is missing and I only
> see the result of one of one or more steps involved.
> 
> Best regards
> Andreas Mock
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Lars Marowsky-Bree [mailto:lmb at suse.com] 
> Gesendet: Donnerstag, 19. September 2013 09:20
> An: The Pacemaker cluster resource manager
> Betreff: Re: [Pacemaker] Howto test/simulate the reaction of the cluster to
> node up and down
> 
> On 2013-09-17T13:37:54, Andreas Mock <andreas.mock at web.de> wrote:
> 
>> I have the problem that after a node rejoins the cluster some
>> resources are move back to that node. 
>> Now I want to see the calculated scores to see where I do
>> have to adjust the stickyness to get the behaviour I like.
>> 
>> I'm not sure how to use crm_simulate to get these values.
>> When both nodes are online I can simulate a node down
>> by crm_simulate -Ls -d <node>.
>> But how do I simulate thr transition from a state where one
>> node is down? When I bring down a node by 'service pacemaker stop'
>> and try a crm_simulate -Ls -u <node> I don't see resource transitions.
> 
> crm cib cibstatus
> crm(live)cib cibstatus# node hex-1 online
> crm(live)cib cibstatus# simulate nograph scores
> 
> For more details, see "help simulate"
> 
> 
> Regards,
>    Lars
> 
> -- 
> Architect Storage/HA
> SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer,
> HRB 21284 (AG Nürnberg)
> "Experience is the name everyone gives to their mistakes." -- Oscar Wilde
> 
> 
> _______________________________________________
> 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://bugs.clusterlabs.org
> 
> 
> _______________________________________________
> 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://bugs.clusterlabs.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130919/f0a47f71/attachment-0004.sig>


More information about the Pacemaker mailing list