Thanks Phil<br><br>I readed the resource agent VirtualDomain and it's like that<br>====================================================<br>VirtualDomain_Start() {<br> if VirtualDomain_Status; then<br> ocf_log info "Virtual domain $DOMAIN_NAME already running."<br>
return $OCF_SUCCESS<br> fi<br><br> virsh $VIRSH_OPTIONS start ${DOMAIN_NAME}<br> rc=$?<br> if [ $rc -ne 0 ]; then<br> ocf_log error "Failed to start virtual domain ${DOMAIN_NAME}."<br>
return $OCF_ERR_GENERIC<br> fi<br><br> while ! VirtualDomain_Monitor; do<br> sleep 1<br> done<br> return $OCF_SUCCESS<br>}<br>============================================================<br><br>
;-) Thank you very much<br><br><div class="gmail_quote">2012/6/20 Phil Frost <span dir="ltr"><<a href="mailto:phil@macprofessionals.com" target="_blank">phil@macprofessionals.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 06/20/2012 10:11 AM, emmanuel segura wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I don't know but see the fail it's in the operation lx0_monitor_0, so i ask to someone with more experience then me, if pacemaker does a monitor operation before start?<br>
</blockquote>
<br></div>
I'm just learning Pacemaker myself, so I could be wrong on some points. I don't have any specific solutions to give, but I can share some troubleshooting techniques that might give some deeper insight into what is happening.<br>
<br>
Firstly, I'd try running "crm_simulate -LS -D pacemaker.dot", then viewing the generated pacemaker.dot with graphviz [1] (specifically "dot". It might also be helpful to pass pacemaker.dot through "tred" first, to make it more readable). This asks crm_simulate to simulate what pacemaker would like to do (-S), given the current live state (-L). Probably it will tell you it would do nothing, because it's already running in the desired (by pacemaker, anyway) state. However, I have seen instances in testing where Pacemaker will be stuck in some start -> monitor -> timeout loop that's not immediately obvious in crm_mon. This will reveal that.<br>
<br>
You can also use crm_simulate to see what Pacemaker would do if you rebooted everything. This can give you some insight because it removes the current state of all your nodes from the equation. To do this, you have to generate a CIB dump without a status section. You can do that by manually editing the output of "cibadmin -Q", but an easier way is to run "crm configure show xml". Since there's no status section, crm_simulate will assume the nodes are offline, so you also have to use the "-u" option to tell it to simulate the nodes coming online. Putting that all together, you get something like this:<br>
<br>
crm configure show xml | crm_simulate -Sp -D pacemaker.dot -u node01 -u node02 [-u node03 ...]<br>
<br>
Of course you will have to adjust the node names to suit your environment. You should see Pacemaker wanting to start all your resources. If not, there's probably something in your configuration that prevents it from doing so. Coincidentally, you will also see here the answer to your question: Pacemaker does do a monitor of a resource on all nodes before starting it. This way, it can avoid starting it if it was already running but it didn't know about it.<br>
<br>
If all that proves unfruitful, you can continue to run other "what-if" tests by dumping the current CIB with "cibadmin -Q", editing it, and passing it into crm_simulate. In this way you can make some guesses about what's wrong and test your hypothesis.<br>
<br>
[1] <a href="http://www.graphviz.org/" target="_blank">http://www.graphviz.org/</a><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
______________________________<u></u>_________________<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/<u></u>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/<u></u>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>esta es mi vida e me la vivo hasta que dios quiera<br>