Hi,
I've installed a Pacemaker/OpenAIS/Corosync/DRBD/MySQL Cluster on
CentOS6. (VirtualBox)
If I start both nodes at the same time, I always get a split brain
situation, If I start
on node and wait if the node is promoted to DRBD-Master everything is
working. How can I tell Pacemaker which node always become master?
[root@linsrv001 ~]# crm configure show
node linsrv001.willi-net.local
node linsrv002.willi-net.local
primitive drbd_mysql ocf:linbit:drbd \
params drbd_resource="r0" \
op monitor interval="15s"
primitive fs_mysql ocf:heartbeat:Filesystem \
params device="/dev/drbd/by-res/r0" directory="/var/lib/mysql"
fstype="xfs"
primitive ip_mysql ocf:heartbeat:IPaddr2 \
params ip="192.168.2.92" nic="eth0"
primitive mysqld lsb:mysql
group mysql fs_mysql ip_mysql mysqld
ms ms_drbd_mysql drbd_mysql \
meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" notify="true"
location cli-prefer-mysql mysql \
rule $id="cli-prefer-rule-mysql" inf: #uname eq
linsrv001.willi-net.local
colocation mysql_on_drbd inf: mysql ms_drbd_mysql:Master
order mysql_after_drbd inf: ms_drbd_mysql:promote mysql:start
property $id="cib-bootstrap-options" \
dc-version="1.1.2-f059ec7ced7a86f18e5490b67ebf4a0b963bccfe" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
no-quorum-policy="ignore" \
stonith-enabled="false"
My second question is, what happens If one node fails and I have to
setup the hole node again. If I start OpenAIS/Corosync, what happens
with the CIB?(will the cluster information configuration will be
transfered to the node?)
Regards - Willi
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems