Hi,

On Wed, Feb 13, 2013 at 02:48:57AM +0000, Paul Archer wrote:
> Background:
> I have four nodes, two of which are running apache with a virtual IP, and two 
> of which are running KVM VMs via libvirt (and backed by gluster, which is not 
> managed by pacemaker).
> All four nodes are in the same cluster (for quorum). The apache and virtualIP 
> piece works fine. But I am having trouble with the VM piece.
> I can manually migrate a VM from one host to another using libvirt. But I 
> can't get a VM to failover via HA. Even bringing a node down entirely just 
> results in the VM going offline.
> 
> Here's my config (the vmhost1 & vmhost2 nodes are for theVMs, of course):
> 
> node vgs1.austin9.topgolf.com \
>         attributes standby="off"
> node vgs2.austin9.topgolf.com \
>         attributes standby="off"
> node vmhost1.austin9.topgolf.com
> node vmhost2.austin9.topgolf.com
> primitive dns1.austin9 ocf:heartbeat:VirtualDomain \
>         params config="/etc/libvirt/qemu/dns1.xml" 
> hypervisor="qemu:///system" migration_transport="ssh" \
>         meta allow-migrate="true" is-managed="true" target-role="started" \
>         op start interval="0" timeout="120s" \
>         op stop interval="0" timeout="120s" \
>         op monitor interval="10" timeout="30" depth="0" \
>         op migrate_from interval="0" timeout="90" \
>         op migrate_to interval="0" timeout="180"
> primitive vgs1-stonith-ipmi stonith:external/ipmi \
>         params hostname="vgs1.austin9.topgolf.com" ipaddr="10.9.1.91" 
> userid="root" passwd="calvin" interface="lan"
> primitive vgs2-stonith-ipmi stonith:external/ipmi \
>         params hostname="vgs2.austin9.topgolf.com" ipaddr="10.9.1.92" 
> userid="root" passwd="calvin" interface="lan"
> primitive vgsIP ocf:heartbeat:IPaddr2 \
>         params ip="10.9.1.10" cidr_netmask="32" \
>         op monitor interval="20s" \
>         meta target-role="Started"
> primitive vgsWebServer ocf:heartbeat:apache \
>         params configfile="/etc/apache2/apache2.conf" \
>         op monitor interval="40s" timeout="30s" \
>         meta target-role="started"
> primitive vmhost1-stonith-ipmi stonith:external/ipmi \
>         params hostname="vmhost1.austin9.topgolf.com" ipaddr="10.9.1.93" 
> userid="root" passwd="calvin" interface="lan"
> primitive vmhost2-stonith-ipmi stonith:external/ipmi \
>         params hostname="vmhost2.austin9.topgolf.com" ipaddr="10.9.1.94" 
> userid="root" passwd="calvin" interface="lan"
> location cli-prefer-dns1.austin9 dns1.austin9 \
>         rule $id="cli-prefer-rule-dns1.austin9" inf: #uname eq 
> vmhost1.austin9.topgolf.com and date lt "2013-04-13 01:50:32Z"
> location prefer-dns1.austin9-vmhost1 dns1.austin9 +inf: 
> vmhost1.austin9.topgolf.com
> location prefer-dns1.austin9-vmhost2 dns1.austin9 +inf: 
> vmhost2.austin9.topgolf.com
> location prefer-vgs1-for-vgsWebServer vgsWebServer 50: 
> vgs1.austin9.topgolf.com
> location prefer-vgs2-for-vgsWebServer vgsWebServer 50: 
> vgs2.austin9.topgolf.com
> location reject-stonith-vgs1-on-vgs1 vgs1-stonith-ipmi -50: 
> vgs1.austin9.topgolf.com
> location reject-stonith-vgs2-on-vgs2 vgs2-stonith-ipmi -50: 
> vgs2.austin9.topgolf.com
> location reject-stonith-vmhost1-on-vmhost1 vmhost1-stonith-ipmi -50: 
> vmhost1.austin9.topgolf.com
> location reject-stonith-vmhost2-on-vmhost2 vmhost2-stonith-ipmi -50: 
> vmhost2.austin9.topgolf.com
> location reject-vgs1-for-dns1.austin9 dns1.austin9 -50: 
> vgs1.austin9.topgolf.com
> location reject-vgs2-for-dns1.austin9 dns1.austin9 -50: 
> vgs2.austin9.topgolf.com
> location reject-webserver-vmhost1 vgsWebServer -inf: 
> vmhost1.austin9.topgolf.com
> location reject-webserver-vmhost2 vgsWebServer -inf: 
> vmhost2.austin9.topgolf.com
> colocation vgsWebServer-on-vgsIP inf: vgsWebServer vgsIP
> order vgsWebServer-after-vgsIP inf: vgsIP vgsWebServer
> property $id="cib-bootstrap-options" \
>         dc-version="1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" \
>         cluster-infrastructure="openais" \
>         expected-quorum-votes="4" \
>         stonith-enabled="true" \
>         last-lrm-refresh="1360706584"

Hard to say without logs. BTW, this is an asymmetric cluster,
the configuration would probably look better if also configured
as such.

Thanks,

Dejan

> 
> Any suggestions?
> 
> pma
> 
> 
> 
> 
> 
> Paul Archer, Linux System Administrator
> [email protected]
> 972-646-0137 cell
> 1717 McKinney Ave, Suite 800
> Dallas, TX 75201
> www.topgolf.com<http://www.topgolf.com/>
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to