Skip to content

Instantly share code, notes, and snippets.

@t0d0r
Created February 18, 2013 05:37
Show Gist options
  • Save t0d0r/4975303 to your computer and use it in GitHub Desktop.
Save t0d0r/4975303 to your computer and use it in GitHub Desktop.
aes-01 corosync
configure show
node $id="93e2cf22-274b-4304-9081-413c56e87844" aes-01 \
attributes standby="off"
node $id="ab0ce93f-ba55-4ec4-b673-65178f3c77fb" aes-02 \
attributes standby="off"
primitive ClusterIP ocf:heartbeat:IPaddr2 \
params ip="94.155.49.6" cidr_netmask="32" \
op monitor interval="30s"
primitive drbd ocf:linbit:drbd \
params drbd_resource="r0" \
op monitor interval="60s"
primitive drbd_fs ocf:heartbeat:Filesystem \
params device="/dev/drbd0" directory="/replicated" fstype="ext3"
primitive mysql ocf:heartbeat:mysql \
params binary="/usr/bin/mysqld_safe" config="/etc/mysql/my.cnf" user="mysql" group="mysql" log="/var/log/mysql/mysql.log" pid="/var/run/mysqld/mysqld.pid" datadir="/var/lib/mysql" socket="/var/run/mysqld/mysqld.sock" \
op monitor interval="30s" timeout="30s" \
op start interval="0" timeout="120" \
op stop interval="0" timeout="120" \
meta target-role="Started"
ms drbd_ms drbd \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
colocation alltogether inf: mysql drbd_fs ClusterIP drbd_ms:Master
colocation fs_on_drbd inf: drbd_fs drbd_ms:Master
order fs_after_drbd inf: drbd_ms:promote drbd_fs:start
order mysql_after_fs inf: drbd_fs:start mysql:start
property $id="cib-bootstrap-options" \
dc-version="1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd" \
cluster-infrastructure="Heartbeat" \
stonith-enabled="false" \
no-quorum-policy="ignore" \
last-lrm-refresh="1332210944"
rsc_defaults $id="rsc-options" \
resource-stickiness="100"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment