[Pacemaker] Problem with failover/failback under Ubuntu
Sven Wick
sven.wick at gmx.de
Wed Jul 14 12:25:53 UTC 2010
Just for completion my current working config.
I am not too happy about it, because it looks a little bit messy
but it works for me. I can reset, reboot, etc... and all services
recover in correct order:
node monitoring-node-01
node monitoring-node-02
primitive apache lsb:apache2
primitive drbd-opennms-config ocf:linbit:drbd \
params drbd_resource="config" \
op monitor interval="40s" role="Master" timeout="30s" \
op monitor interval="41s" role="Slave" timeout="30s"
primitive drbd-opennms-data ocf:linbit:drbd \
params drbd_resource="data" \
op monitor interval="40s" role="Master" timeout="30s" \
op monitor interval="41s" role="Slave" timeout="30s"
primitive drbd-opennms-db ocf:linbit:drbd \
params drbd_resource="db" \
op monitor interval="40s" role="Master" timeout="30s" \
op monitor interval="41s" role="Slave" timeout="30s"
primitive fs-opennms-config ocf:heartbeat:Filesystem \
params device="/dev/drbd/by-res/config" directory="/etc/opennms"
fstype="xfs"
primitive fs-opennms-data ocf:heartbeat:Filesystem \
params device="/dev/drbd/by-res/data" directory="/var/lib/opennms"
fstype="xfs"
primitive fs-opennms-db ocf:heartbeat:Filesystem \
params device="/dev/drbd/by-res/db" directory="/var/lib/postgresql"
fstype="xfs"
primitive opennms lsb:opennms \
op start interval="0" timeout="300s" \
op stop interval="0" timeout="300s"
primitive postgres lsb:postgresql-8.4
primitive vip ocf:heartbeat:IPaddr2 \
params ip="172.24.25.20" cidr_netmask="24" nic="bond0"
ms ms-opennms-config drbd-opennms-config \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1"
notify="true"
ms ms-opennms-data drbd-opennms-data \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1"
notify="true"
ms ms-opennms-db drbd-opennms-db \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1"
notify="true"
colocation apache-on-opennms inf: apache opennms
colocation fs-config-on-drbd inf: fs-opennms-config
ms-opennms-config:Master
colocation fs-config-on-fs-db inf: fs-opennms-config fs-opennms-db
colocation fs-data-on-drbd inf: fs-opennms-data ms-opennms-data:Master
colocation fs-data-on-fs-config inf: fs-opennms-data fs-opennms-config
colocation fs-db-on-drbd inf: fs-opennms-db ms-opennms-db:Master
colocation opennms-on-postgres inf: opennms postgres
colocation postgres-on-vip inf: postgres vip
colocation vip-on-data inf: vip fs-opennms-data
order apache-after-vip inf: vip apache
order config-after-db inf: fs-opennms-db fs-opennms-config
order data-after-config inf: fs-opennms-config fs-opennms-data
order fs-after-drbd-config inf: ms-opennms-config:promote
fs-opennms-config:start
order fs-after-drbd-data inf: ms-opennms-data:promote
fs-opennms-data:start
order fs-after-drbd-db inf: ms-opennms-db:promote fs-opennms-db:start
order opennms-after-postgres inf: postgres opennms
order postgres-after-vip inf: vip postgres
order vip-after-data inf: fs-opennms-data vip
property $id="cib-bootstrap-options" \
dc-version="1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
no-quorum-policy="ignore" \
stonith-enabled="false" \
last-lrm-refresh="1278615435"
rsc_defaults $id="rsc-options" \
resource-stickiness="100"
More information about the Pacemaker
mailing list