Quantcast
Channel: MySQL Forums - NDB clusters
Viewing all articles
Browse latest Browse all 1560

MySQL DRBD cluster (no replies)

$
0
0
Hi everyone,
I built a cluster following this guide: http://www.mysql.com/why-mysql/white-papers/mysql-high-availability-drbd-configuration-deployment-guide/

The environment is:
Ubuntu server 14.04
DRBD 8.4.3
corosync 2.3.3
Pacemaker 1.1.10
MySQL-server 5.5

Whenever MySQL fails, I want the cluster to switch from master to slave.
Actually master switches only the first time and causes p_mysql_monitor failure.

I post crm configuration:

crm configure show:
node $id="1" mysqlc3
node $id="2" mysqlc4
primitive p_drbd_mysql ocf:linbit:drbd \
params drbd_resource="clusterdb_res" \
op monitor interval="15s"
primitive p_fs_mysql ocf:heartbeat:Filesystem \
params device="/dev/drbd0" directory="/var/lib/mysql_drbd" fstype="ext4"
primitive p_ip_mysql ocf:heartbeat:IPaddr2 \
params ip="***" cidr_netmask="24" nic="eth0"
primitive p_mysql ocf:heartbeat:mysql \
params binary="/usr/sbin/mysqld" config="/var/lib/mysql_drbd/my.cnf" datadir="/var/lib/mysql_drbd/data" pid="/var/lib/mysql/mysql.pid" socket="/var/lib/mysql/mysql.sock" additional_parameters="--bind-address=***" \
op start timeout="120s" interval="0" \
op stop timeout="120s" interval="0" \
op monitor interval="20s" timeout="30s" \
meta target-role="Started" migration-threshold="1"
primitive p_ping ocf:pacemaker:ping \
params name="ping" multiplier="1000" host_list="***" \
op monitor interval="15s" timeout="60s" start
group g_mysql p_fs_mysql p_ip_mysql p_mysql
ms ms_drbd_mysql p_drbd_mysql \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
clone cl_ping p_ping \
meta interleave="true"
location l_drbd_master_on_ping ms_drbd_mysql \
rule $id="l_drbd_master_on_ping-rule" $role="Master" -inf: not_defined ping or ping number:lte 0
colocation c_mysql_on_drbd inf: g_mysql ms_drbd_mysql:Master
order o_drbd_before_mysql inf: ms_drbd_mysql:promote g_mysql:start
property $id="cib-bootstrap-options" \
dc-version="1.1.10-42f2063" \
cluster-infrastructure="corosync" \
no-quorum-policy="ignore" \
stonith-enabled="false" \
last-lrm-refresh="1401200503"
rsc_defaults $id="rsc-options" \
resource-stickiness="100"

crm_mon -1:
Stack: corosync
Current DC: mysqlc3 (1) - partition with quorum
Version: 1.1.10-42f2063
2 Nodes configured
7 Resources configured


Online: [ mysqlc3 mysqlc4 ]

Master/Slave Set: ms_drbd_mysql [p_drbd_mysql]
Masters: [ mysqlc4 ]
Slaves: [ mysqlc3 ]
Resource Group: g_mysql
p_fs_mysql (ocf::heartbeat:Filesystem): Started mysqlc4
p_ip_mysql (ocf::heartbeat:IPaddr2): Started mysqlc4
p_mysql (ocf::heartbeat:mysql): Started mysqlc4
Clone Set: cl_ping [p_ping]
Started: [ mysqlc3 mysqlc4 ]

Failed actions:
p_mysql_monitor_20000 (node=mysqlc3, call=66, rc=7, status=complete, last-rc -change=Tue May 27 16:46:03 2014
, queued=0ms, exec=0ms
): not running

Thanks,
Veronica

Viewing all articles
Browse latest Browse all 1560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>