Sorry, I forgot to mentions it, Yes I have this configuration two failover domain, first with host-1 on top, and other with host-2 on top.<div><br></div><div>My question is, how you guys are configuring your guests resources to failover from on hosts to another, remembering that I have same machines on two kvm hosts, i.e. kvm001 has guest001 on, and kvmsrv002 has guest001 ( It must be powered on just in fail of guest0001 on kvm001)</div>
<div><br></div><div>I hope being clear enough.</div><div><br></div><div>Thank you so much.<br clear="all"> <br>- -<br>iarlyy selbir<br><br><div>:wq!</div><br>
<br><br><div class="gmail_quote">On Fri, Jan 14, 2011 at 3:18 PM, Thomas Sjolshagen <span dir="ltr">&lt;<a href="mailto:thomas@sjolshagen.net">thomas@sjolshagen.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><p>On Fri, 14 Jan 2011 14:19:52 -0300, iarly selbir &lt;<a href="mailto:iarlyy@gmail.com" target="_blank">iarlyy@gmail.com</a>&gt; wrote:</p>
</div><blockquote type="cite" style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px;width:100%"><div class="im">
<div>Hi there,</div>
<div></div>
<div>Hi I&#39;m joining today an would like to share my knowledge with virtualization and get more = )</div>
<div></div>
<div></div>
</div><div class="im"><div>when KVM-HOST-001 fail, the KVM-HOST-002 take over all machines from other host, I&#39;m sharing a storage volume between two nodes (gfs2), so all hosts can see the guest images, but how to configure the clusters resources to migrate the guests? this is my question and any suggestions will be appreciated.</div>

<div></div>
</div></blockquote>
<div>Assuming you&#39;re using libvirt to manage the VM&#39;s (guests), I&#39;d configure them as &lt;vm&gt; resources in rgmanager and make them members of a failover group with the highest (shows up as the lowest priority number in the example) priority to the KVM-HOST-* you want the guest to start on (if it&#39;s available).</div>

<div></div>
<div>A couple of (example) &lt;vm&gt; resource I have configured in my 2-node GFS2 based KVM cluster (some of the info in the vm resource tag is actually not necessary, but I was both experimenting and playing it safe when I set this up)</div>

<div></div>
<div>&lt;rm&gt;</div>
<div>       &lt;failoverdomains&gt;</div>
<div>               &lt;failoverdomain name=&quot;prefer-virt0&quot; restricted=&quot;0&quot; ordered=&quot;1&quot;&gt;</div>
<div>                       &lt;failoverdomainnode name=&quot;virt0-backup&quot; priority=&quot;10&quot; /&gt;                                </div>
<div>                       &lt;failoverdomainnode name=&quot;virt1-backup&quot; priority=&quot;20&quot; /&gt;</div>
<div>               &lt;/failoverdomain&gt;</div>
<div>               &lt;failoverdomain name=&quot;prefer-virt1&quot; restricted=&quot;0&quot; ordered=&quot;1&quot;&gt;                                </div>
<div>                       &lt;failoverdomainnode name=&quot;virt1-backup&quot; priority=&quot;10&quot; /&gt;</div>
<div>                       &lt;failoverdomainnode name=&quot;virt0-backup&quot; priority=&quot;20&quot; /&gt;</div>
<div>               &lt;/failoverdomain&gt;</div>
<div>      &lt;/failoverdomains&gt;</div>
<div>      &lt;!-- VM resources --&gt;</div>
<div>      &lt;vm name=&quot;imap1&quot; autostart=&quot;1&quot; recovery=&quot;restart&quot; migrate=&quot;live&quot; domain=&quot;prefer-virt0&quot; use_virsh=&quot;1&quot; hypervisor=&quot;qemu&quot; /&gt;</div>
<div>      &lt;vm name=&quot;imap2&quot; autostart=&quot;1&quot; recovery=&quot;restart&quot; migrate=&quot;live&quot; domain=&quot;prefer-virt1&quot; use_virsh=&quot;1&quot; hypervisor=&quot;qemu&quot; /&gt;</div>
<div>&lt;/rm&gt;</div>
<div></div>
<div>Hope this helps to illustrate.</div>
<div></div>
<div>// Thomas</div></blockquote></div><br></div>