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

Andreas Mock andreas.mock at web.de
Thu Sep 19 03:57:40 EDT 2013


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 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





More information about the Pacemaker mailing list