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

Lars Marowsky-Bree lmb at suse.com
Thu Sep 19 07:20:22 UTC 2013


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





More information about the Pacemaker mailing list