<div dir="ltr">because you don't have fencing configured<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-05 9:28 GMT+01:00 Anne Nicolas <span dir="ltr"><<a href="mailto:ennael1@gmail.com" target="_blank">ennael1@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I'm having trouble setting a very simple cluster with 2 nodes. After all<br>
reboot I'm getting split brain that I have to solve by hand then.<br>
Looking for a solution for that one...<br>
<br>
Both nodes have 4 network interfaces. We use 3 of them: one for an IP<br>
cluster, one for a bridge for a vm and the last one for the private<br>
network of the cluster<br>
<br>
I'm using<br>
drbd : 8.3.9<br>
drbd-utils: 8.3.9<br>
<br>
DRBD configuration:<br>
============<br>
$ cat global_common.conf<br>
global {<br>
usage-count no;<br>
disable-ip-verification;<br>
}<br>
common { syncer { rate 500M; } }<br>
<br>
cat server.res<br>
resource server {<br>
protocol C;<br>
net {<br>
cram-hmac-alg sha1;<br>
shared-secret "eafcupps";<br>
}<br>
on dzacupsvr {<br>
device /dev/drbd0;<br>
disk /dev/vg0/server;<br>
address <a href="http://172.16.1.1:7788" target="_blank">172.16.1.1:7788</a>;<br>
flexible-meta-disk internal;<br>
}<br>
on dzacupsvr2 {<br>
device /dev/drbd0;<br>
disk /dev/vg0/server;<br>
address <a href="http://172.16.1.2:7788" target="_blank">172.16.1.2:7788</a>;<br>
flexible-meta-disk internal;<br>
}<br>
}<br>
<br>
Pacemaker configuration<br>
===============<br>
node $id="<a href="tel:16847020" value="+4916847020">16847020</a>" dzacupsvr<br>
node $id="33624236" dzacupsvr2<br>
primitive apache ocf:heartbeat:apache \<br>
params configfile="/etc/httpd/conf/httpd.conf" \<br>
op start interval="0" timeout="40s" \<br>
op stop interval="0" timeout="60s"<br>
primitive clusterip ocf:heartbeat:IPaddr2 \<br>
params ip="192.168.1.5" cidr_netmask="24" nic="eth0"<br>
primitive drbdserv ocf:linbit:drbd \<br>
params drbd_resource="server" \<br>
op monitor interval="60s"<br>
primitive fsserv ocf:heartbeat:Filesystem \<br>
params device="/dev/drbd/by-res/server" directory="/EdgeServer"<br>
fstype="ext4"<br>
primitive libvirt-guests lsb:libvirt-guests<br>
primitive libvirtd lsb:libvirtd<br>
primitive mysql ocf:heartbeat:mysql \<br>
params binary="/usr/bin/mysqld_safe" config="/etc/my.cnf"<br>
datadir="/EdgeServer/mysql" \<br>
op start interval="0" timeout="40s" \<br>
op stop interval="0" timeout="60s" \<br>
meta target-role="Started"<br>
primitive named lsb:named<br>
primitive samba lsb:smb<br>
group services fsserv clusterip libvirtd samba apache mysql<br>
ms drbdservClone drbdserv \<br>
meta master-max="1" master-node-max="1" clone-max="2"<br>
clone-node-max="1" notify="true"<br>
colocation fs_on_drbd inf: fsserv drbdservClone:Master<br>
order fsserv-after-drbdserv inf: drbdservClone:promote fsserv:start<br>
property $id="cib-bootstrap-options" \<br>
dc-version="1.1.7-2.mga1-ee0730e13d124c3d58f00016c3376a1de5323cff" \<br>
cluster-infrastructure="corosync" \<br>
stonith-enabled="false" \<br>
no-quorum-policy="ignore"<br>
<br>
and here are the logs<br>
<a href="http://pastebin.com/DcV2WM3M" target="_blank">http://pastebin.com/DcV2WM3M</a><br>
<br>
After looking for more information, I've added fences in drbd configuration<br>
<br>
handlers {<br>
fence-peer "/usr/lib/drbd/crm-fence-peer.sh";<br>
after-resync-target "/usr/lib/drbd/crm-unfence-peer.sh";<br>
}<br>
but still without any success...<br>
<br>
Any help appreciated<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Anne<br>
<br>
<br>
--<br>
Anne<br>
<a href="http://mageia.org" target="_blank">http://mageia.org</a><br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>esta es mi vida e me la vivo hasta que dios quiera
</div>