<div dir="ltr">HI,<div class="gmail_extra"><br>If you power off the host the VM will enter in the "unknown" state. Try specifying a hook for this state ("on" argument) </div><div class="gmail_extra"> on = UNKNOWN</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Cheers</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 30 December 2013 09:27, hansz <span dir="ltr"><<a href="mailto:hanshizhunjob@126.com" target="_blank">hanshizhunjob@126.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;font-size:14px;font-family:arial">Hi,<div>i use opennebula4.4 install on centos6.4 , and add <span style="color:rgb(255,0,0)">two hosts(esxi5.1, esxi01,esxi02)</span> on the sunstone. and create a cluster with the two hosts and one virtual networks and two datastores.(the datastores i use iscsi mounted both on esxi01 and esxi02)</div>
<div>today i have a try <span style>,i create one vm on host esxi01 . what i want is if i power the esxi01 the vm could migrate to esxi02 .</span></div><div><span style>clould i make it sucessfully?</span></div><div><span style><br>
</span></div><div><span style>i also read </span><a href="http://docs.opennebula.org/stable/advanced_administration/high_availability/ftguide.html#ftguide" style="line-height:1.7" target="_blank">http://docs.opennebula.org/stable/advanced_administration/high_availability/ftguide.html#ftguide</a></div>
<div>but i does not work ,</div><div>and the oned.conf in my opennebula 4.4 is</div><div><pre style="overflow-x:auto;overflow-y:hidden;font-family:Monaco,Menlo,Consolas,'Courier New',monospace;font-size:13px;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.428571429;color:rgb(51,51,51);word-break:break-all;background-color:rgb(235,235,237);border:1px solid rgb(204,204,204);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px">
HOST_HOOK = [
name = "error",
on = "ERROR",
<span style="color:rgb(255,0,0)">command = "ft/host_error.rb",</span>
arguments = "$HID -r n",
remote = no ]</pre><pre style="overflow-x:auto;overflow-y:hidden;font-family:Monaco,Menlo,Consolas,'Courier New',monospace;font-size:13px;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.428571429;color:rgb(51,51,51);word-break:break-all;background-color:rgb(235,235,237);border:1px solid rgb(204,204,204);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px">
<pre style="overflow-x:auto;overflow-y:hidden;font-family:Monaco,Menlo,Consolas,'Courier New',monospace;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.428571429;word-break:break-all;border:1px solid rgb(204,204,204);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px">
VM_HOOK = [
name = "on_failure_recreate",
<span style="color:rgb(255,0,0)"> on = "FAILED",</span>
<span style="color:rgb(255,0,0)"> command = "/usr/bin/env onevm delete --recreate",</span>
<span style="color:rgb(255,0,0)"> arguments = "ID" ]</span></pre></pre><pre style="overflow-x:auto;overflow-y:hidden;font-family:Monaco,Menlo,Consolas,'Courier New',monospace;font-size:13px;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.428571429;color:rgb(51,51,51);word-break:break-all;background-color:rgb(235,235,237);border:1px solid rgb(204,204,204);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px">
the red are not same with the <a href="http://docs.opennebula.org/stable/advanced_administration/high_availability/ftguide.html#ftguide" style="background-color:rgb(255,255,255);font-family:arial;font-size:14px;line-height:1.7" target="_blank">http://docs.opennebula.org/stable/advanced_administration/high_availability/ftguide.html#ftguide</a></pre>
<pre style="overflow-x:auto;overflow-y:hidden;font-family:Monaco,Menlo,Consolas,'Courier New',monospace;font-size:13px;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.428571429;color:rgb(51,51,51);word-break:break-all;background-color:rgb(235,235,237);border:1px solid rgb(204,204,204);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px">
anything wrong?</pre><pre style="overflow-x:auto;overflow-y:hidden;font-family:Monaco,Menlo,Consolas,'Courier New',monospace;font-size:13px;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.428571429;color:rgb(51,51,51);word-break:break-all;background-color:rgb(235,235,237);border:1px solid rgb(204,204,204);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px">
<br></pre></div></div></blockquote><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><span title="neteasefooter"><span></span></span><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>--<br></div>Daniel Molina<br>Project Engineer<br>OpenNebula - Flexible Enterprise Cloud Made Simple<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula</div>
</div></div>