[Pacemaker] KVM VM's on internal DRBD volumes

Pieter Baele pieter.baele at gmail.com
Tue Jun 21 13:22:14 UTC 2011


On Sat, Jun 18, 2011 at 11:42, Pawel Warowny <warp at master.pl> wrote:
> Dnia Fri, 17 Jun 2011 15:58:03 +0200
> Pieter Baele <pieter.baele at gmail.com> napisał(a):
>
> Hi
>
>> Maybe I've to tweak some parameters/ordering/colocation/.... ? Or do I
>> really need shared storage? Or....
>
> Maybe, but we have no idea if you don't show us your configuration :)
>

Hi, below part of the configuration + tidy (a lot is configured using DRBD MC)
Thx!

-----

node lx01.example.org \
        attributes standby="off"
node lx02.example.org \
        attributes standby="off"

primitive fence_lx01 stonith:fence_ipmilan
primitive fence_lx02 stonith:fence_ipmilan
+ location directives

primitive p_libvirtd lsb:libvirtd \
        op monitor interval="30"

primitive clustermon

primitive res_VirtualDomain_p_virtdom_node01 ocf:heartbeat:VirtualDomain \
        params config="/etc/libvirt/qemu/node01.xml" migrate_use_fqdn="false" \
        operations $id="res_VirtualDomain_p_virtdom_node01-operations" \
        op start interval="0" timeout="90" \
        op stop interval="0" timeout="90" \
        op monitor interval="10" timeout="30" start-delay="0" \
        op migrate_from interval="0" timeout="60" \
        op migrate_to interval="0" timeout="120" \
        meta target-role="started"

primitive res_drbd_node01 ocf:linbit:drbd \
        params drbd_resource="node01" \
        operations $id="res_drbd_node01-operations" \
        op start interval="0" timeout="240" \
        op promote interval="0" timeout="90" \
        op demote interval="0" timeout="90" \
        op stop interval="0" timeout="100" \
        op monitor interval="10" timeout="20" start-delay="0" \
        op notify interval="0" timeout="90" \
        meta target-role="started"

group g_daemons p_libvirtd

ms ms_drbd_1_2 res_drbd_node01 \
        meta clone-max="2" notify="true"

clone cl_daemons g_daemons

colocation col_res_VirtualDomain_p_virtdom_node01_ms_drbd_1_2 inf:
res_VirtualDomain_p_virtdom_node01 ms_drbd_1_2:Master
order ord_ms_drbd_1_2_res_VirtualDomain_p_virtdom_node01 inf:
ms_drbd_1_2:promote res_VirtualDomain_p_virtdom_node01:start

property $id="cib-bootstrap-options" \
        expected-quorum-votes="2" \
        dc-version="1.1.5-5.el6-01e86afaaa6d4a8c4836f68df80ababd6ca3902f" \
        no-quorum-policy="ignore" \
        cluster-infrastructure="openais" \
        last-lrm-refresh="1308316528"
rsc_defaults $id="rsc-options" \
        resource-stickiness="200"




More information about the Pacemaker mailing list