On 01/14/2011 08:34 PM, iarly selbir wrote: > 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. > > 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)
Using hearbeat/light cluster mgmt ala Linux HA package might be a good option for you. > > I hope being clear enough. > > Thank you so much. > > - - > iarlyy selbir > > :wq! > > > > On Fri, Jan 14, 2011 at 3:18 PM, Thomas Sjolshagen > <[email protected] <mailto:[email protected]>> wrote: > > On Fri, 14 Jan 2011 14:19:52 -0300, iarly selbir <[email protected] > <mailto:[email protected]>> wrote: > >> Hi there, >> Hi I'm joining today an would like to share my knowledge with >> virtualization and get more = ) >> when KVM-HOST-001 fail, the KVM-HOST-002 take over all machines >> from other host, I'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. > Assuming you're using libvirt to manage the VM's (guests), I'd > configure them as <vm> 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's available). > A couple of (example) <vm> 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) > <rm> > <failoverdomains> > <failoverdomain name="prefer-virt0" restricted="0" ordered="1"> > <failoverdomainnode name="virt0-backup" priority="10" /> > <failoverdomainnode name="virt1-backup" priority="20" /> > </failoverdomain> > <failoverdomain name="prefer-virt1" restricted="0" ordered="1"> > <failoverdomainnode name="virt1-backup" priority="10" /> > <failoverdomainnode name="virt0-backup" priority="20" /> > </failoverdomain> > </failoverdomains> > <!-- VM resources --> > <vm name="imap1" autostart="1" recovery="restart" migrate="live" > domain="prefer-virt0" use_virsh="1" hypervisor="qemu" /> > <vm name="imap2" autostart="1" recovery="restart" migrate="live" > domain="prefer-virt1" use_virsh="1" hypervisor="qemu" /> > </rm> > Hope this helps to illustrate. > // Thomas > > > > > _______________________________________________ > virt mailing list > [email protected] > https://admin.fedoraproject.org/mailman/listinfo/virt _______________________________________________ virt mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/virt
