Code: Alles auswählen
node node1 \
attributes standby="off"
node node2 \
attributes standby="off"
primitive KVM-CLUSTER-IP ocf:heartbeat:IPaddr2 \
params ip="176.28.26.10" nic="eth0" \
op monitor interval="10s" \
meta is-managed="true"
primitive KVM-WEBSERVER-A ocf:heartbeat:VirtualDomain \
params config="/etc/libvirt/qemu/webserver-a.xml" hypervisor="qemu:///system" \
meta allow-migrate="true" \
op start interval="0" timeout="120s" \
op stop interval="0" timeout="120s" \
op monitor interval="10" timeout="30" depth="0"
primitive KVM-WEBSERVER-B ocf:heartbeat:VirtualDomain \
params config="/etc/libvirt/qemu/webserver-b.xml" hypervisor="qemu:///system" \
meta allow-migrate="true" \
op start interval="0" timeout="120s" \
op stop interval="0" timeout="120s" \
op monitor interval="10" timeout="30" depth="0"
primitive KVM-WEBSERVER-C ocf:heartbeat:VirtualDomain \
params config="/etc/libvirt/qemu/webserver-c.xml" hypervisor="qemu:///system" \
meta allow-migrate="true" \
op start interval="0" timeout="120s" \
op stop interval="0" timeout="120s" \
op monitor interval="10" timeout="30" depth="0"
primitive LOGICAL_VOLUME_SHARE ocf:heartbeat:LVM \
params volgrpname="data" exclusive="true" \
op start interval="0" timeout="30" \
op stop interval="0" timeout="30"
primitive MOUNT-SHARE ocf:heartbeat:Filesystem \
params device="/dev/mapper/data-share" directory="/data" fstype="ext4" \
op start interval="0" timeout="60" \
op stop interval="0" timeout="120"
primitive drbd ocf:linbit:drbd \
params drbd_resource="share" \
op start interval="0" timeout="240" \
op stop interval="0" timeout="100" \
op monitor interval="59s" role="Master" timeout="30s" \
op monitor interval="60s" role="Slave" timeout="30s"
group CLUSTER KVM-CLUSTER-IP KVM-WEBSERVER-A KVM-WEBSERVER-B KVM-WEBSERVER-C \
meta target-role="Started"
group LVM LOGICAL_VOLUME_SHARE MOUNT-SHARE \
meta target-role="Started"
ms DRBD drbd \
meta master-node-max="1" clone-max="2" clone-node-max="1" globally-unique="false" notify="true" target-role="Started"
colocation CLUSTER-DEPS inf: DRBD:Master LVM CLUSTER
order APPLICATION_ON_DRBD inf: DRBD:promote LVM:start CLUSTER:start
property $id="cib-bootstrap-options" \
dc-version="1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
stonith-enabled="false" \
last-lrm-refresh="1344505986" \
no-quorum-policy="ignore"
rsc_defaults $id="rsc-options" \
resource-stickiness="100" \
migration-threshold="3"
crm_mon
Code: Alles auswählen
============
Last updated: Thu Aug 9 12:16:21 2012
Stack: openais
Current DC: node1 - partition with quorum
Version: 1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b
2 Nodes configured, 2 expected votes
3 Resources configured.
============
Online: [ node2 node1 ]
Resource Group: CLUSTER
KVM-CLUSTER-IP (ocf::heartbeat:IPaddr2): Started node2
KVM-WEBSERVER-A (ocf::heartbeat:VirtualDomain): Started node2
KVM-WEBSERVER-B (ocf::heartbeat:VirtualDomain): Started node2
KVM-WEBSERVER-C (ocf::heartbeat:VirtualDomain): Started node2
Master/Slave Set: DRBD
Masters: [ node2 ]
Slaves: [ node1 ]
Resource Group: LVM
LOGICAL_VOLUME_SHARE (ocf::heartbeat:LVM): Started node2
MOUNT-SHARE (ocf::heartbeat:Filesystem): Started node2