<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: trebuchet ms,sans-serif; font-size: 10pt; color: #000000'>Maybe try with verbose flag.&nbsp; Maybe try with error for the exit code?&nbsp; Or try $stop and $error to see if it will show anything - I would expect something like a node fence from that.<br><br>crm_simulate with -LS for me causes seg fault so I can't test :-(<br><br><div><span name="x"></span>

<style>/* Style Definitions */p.MsoNormal, p.MsoAutoSig, li.MsoNormal, div.MsoNormal        {margin:0cm; margin-bottom:.0001pt;}@page WordSection1        {size:612.0pt 792.0pt;        margin:72.0pt 72.0pt 72.0pt 72.0pt;        mso-header-margin:36.0pt;        mso-footer-margin:36.0pt;        mso-paper-source:0;}div.WordSection1        {page:WordSection1;}</style>



<div class="WordSection1">

<p class="MsoNormal"><font size="2">Jake</font></p>

</div>



<span name="x"></span><br></div><hr id="zwchr"><div style="color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Cal Heldenbrand" &lt;cal@fbsdata.com&gt;<br><b>To: </b>"Jake Smith" &lt;jsmith@argotec.com&gt;, "The Pacemaker cluster resource manager" &lt;pacemaker@oss.clusterlabs.org&gt;<br><b>Sent: </b>Tuesday, October 23, 2012 2:01:59 PM<br><b>Subject: </b>Re: [Pacemaker] crm_simulate a resource failure<br><br>Thanks Jake, that at gives a little better description of the parameters, but I still just can't seem to get anything to trigger with the various syntaxes I'm trying.&nbsp; See below, I'm using single quotes so the $ symbol isn't parsed by bash.&nbsp; I've tried using my clone name, different return values, different task names, without the $ symbols... nothing seems to trigger anything in the Transition stuff.&nbsp; And I don't get any error messages at all.<br>

<br>Any other ideas for me?<br><br>Thanks!<br><br>---------------------------------------------------------------------------------<br><span style="font-family: courier new,monospace;">[root@m3 /]# crm_simulate -LS --op-fail='$memcached:0_$monitor_$1@$<a href="http://m1.fbsdata.com" target="_blank">m1.fbsdata.com</a>=$not_running'</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Current cluster status:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Online: [ <a href="http://m1.fbsdata.com" target="_blank">m1.fbsdata.com</a> <a href="http://m2.fbsdata.com" target="_blank">m2.fbsdata.com</a> <a href="http://m3.fbsdata.com" target="_blank">m3.fbsdata.com</a> ]</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;Clone Set: memcached_clone [memcached]</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp; Started: [ <a href="http://m1.fbsdata.com" target="_blank">m1.fbsdata.com</a> <a href="http://m2.fbsdata.com" target="_blank">m2.fbsdata.com</a> <a href="http://m3.fbsdata.com" target="_blank">m3.fbsdata.com</a> ]</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">&nbsp;cluster-ip-m1&nbsp; (ocf::heartbeat:IPaddr2):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Started <a href="http://m1.fbsdata.com" target="_blank">m1.fbsdata.com</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;cluster-ip-m2&nbsp; (ocf::heartbeat:IPaddr2):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Started <a href="http://m2.fbsdata.com" target="_blank">m2.fbsdata.com</a></span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">&nbsp;cluster-ip-m3&nbsp; (ocf::heartbeat:IPaddr2):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Started <a href="http://m3.fbsdata.com" target="_blank">m3.fbsdata.com</a></span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Transition Summary:</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Executing cluster transition:</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Revised cluster status:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Online: [ <a href="http://m1.fbsdata.com" target="_blank">m1.fbsdata.com</a> <a href="http://m2.fbsdata.com" target="_blank">m2.fbsdata.com</a> <a href="http://m3.fbsdata.com" target="_blank">m3.fbsdata.com</a> ]</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;Clone Set: memcached_clone [memcached]</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp; Started: [ <a href="http://m1.fbsdata.com" target="_blank">m1.fbsdata.com</a> <a href="http://m2.fbsdata.com" target="_blank">m2.fbsdata.com</a> <a href="http://m3.fbsdata.com" target="_blank">m3.fbsdata.com</a> ]</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">&nbsp;cluster-ip-m1&nbsp; (ocf::heartbeat:IPaddr2):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Started <a href="http://m1.fbsdata.com" target="_blank">m1.fbsdata.com</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;cluster-ip-m2&nbsp; (ocf::heartbeat:IPaddr2):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Started <a href="http://m2.fbsdata.com" target="_blank">m2.fbsdata.com</a></span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">&nbsp;cluster-ip-m3&nbsp; (ocf::heartbeat:IPaddr2):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Started <a href="http://m3.fbsdata.com" target="_blank">m3.fbsdata.com</a></span><br style="font-family: courier new,monospace;">---------------------------------------------------------------------------------<br>

<br><div class="gmail_quote">On Tue, Oct 23, 2012 at 12:27 PM, Jake Smith <span dir="ltr">&lt;<a href="mailto:jsmith@argotec.com" target="_blank">jsmith@argotec.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
----- Original Message -----<br>
<br>
&gt; From: "Cal Heldenbrand" &lt;<a href="mailto:cal@fbsdata.com" target="_blank">cal@fbsdata.com</a>&gt;<br>
&gt; To: <a href="mailto:pacemaker@oss.clusterlabs.org" target="_blank">pacemaker@oss.clusterlabs.org</a><br>
&gt; Sent: Tuesday, October 23, 2012 11:50:11 AM<br>
&gt; Subject: [Pacemaker] crm_simulate a resource failure<br>
<div><div class="h5"><br>
&gt; Hi everyone,<br>
<br>
&gt; I'm not able to find documentation or examples on this. If I have a<br>
&gt; cloned primitive set across a cluster, how can I simulate a failure<br>
&gt; of a resource on an individual node? I mainly want to see the scores<br>
&gt; on why a particular action is taken so I can adjust my configs.<br>
<br>
&gt; I think the --op-fail parameter is what I need, but I just don't get<br>
&gt; the syntax of the value in the man page.<br>
<br>
</div></div>I usually use the crm shell so I'm not positive but I think these are the parts you need...<br>
<br>
$rsc_$task_$interval@$node=$rc<br>
<br>
$rsc = resource to test, in your case I believe you want to specify the primitive instance of the clone i.e. p_resource:0<br>
$task = monitor or migrate or stop or whatever operation you want to take<br>
$interval = the interval of a monitor task<br>
$node = the node<br>
$rc = the exit code you want to fail with i.e. error, not_running<br>
<br>
So (I think) something like:<br>
--op-fail=$p_of_clone_resource:0_$monitor_$10@$node1=$not_running<br>
<br>
You *should* be able to experiment till you get it just right since its simulate.. :-)<br>
<br>
HTH<br>
<br>
Jake<br>
<br>
&gt; Thank you!<br>
<br>
&gt; --Cal<br>
<br>
&gt; _______________________________________________<br>
&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt; Getting started:<br>
&gt; <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt; Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div><br>
</div><br></div></body></html>