<div dir="ltr">because you don&#39;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">&lt;<a href="mailto:ennael1@gmail.com" target="_blank">ennael1@gmail.com</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I&#39;m having trouble setting a very simple cluster with 2 nodes. After all<br>
reboot I&#39;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&#39;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 &quot;eafcupps&quot;;<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=&quot;<a href="tel:16847020" value="+4916847020">16847020</a>&quot; dzacupsvr<br>
node $id=&quot;33624236&quot; dzacupsvr2<br>
primitive apache ocf:heartbeat:apache \<br>
        params configfile=&quot;/etc/httpd/conf/httpd.conf&quot; \<br>
        op start interval=&quot;0&quot; timeout=&quot;40s&quot; \<br>
        op stop interval=&quot;0&quot; timeout=&quot;60s&quot;<br>
primitive clusterip ocf:heartbeat:IPaddr2 \<br>
        params ip=&quot;192.168.1.5&quot; cidr_netmask=&quot;24&quot; nic=&quot;eth0&quot;<br>
primitive drbdserv ocf:linbit:drbd \<br>
        params drbd_resource=&quot;server&quot; \<br>
        op monitor interval=&quot;60s&quot;<br>
primitive fsserv ocf:heartbeat:Filesystem \<br>
        params device=&quot;/dev/drbd/by-res/server&quot; directory=&quot;/EdgeServer&quot;<br>
fstype=&quot;ext4&quot;<br>
primitive libvirt-guests lsb:libvirt-guests<br>
primitive libvirtd lsb:libvirtd<br>
primitive mysql ocf:heartbeat:mysql \<br>
        params binary=&quot;/usr/bin/mysqld_safe&quot; config=&quot;/etc/my.cnf&quot;<br>
datadir=&quot;/EdgeServer/mysql&quot; \<br>
        op start interval=&quot;0&quot; timeout=&quot;40s&quot; \<br>
        op stop interval=&quot;0&quot; timeout=&quot;60s&quot; \<br>
        meta target-role=&quot;Started&quot;<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=&quot;1&quot; master-node-max=&quot;1&quot; clone-max=&quot;2&quot;<br>
clone-node-max=&quot;1&quot; notify=&quot;true&quot;<br>
colocation fs_on_drbd inf: fsserv drbdservClone:Master<br>
order fsserv-after-drbdserv inf: drbdservClone:promote fsserv:start<br>
property $id=&quot;cib-bootstrap-options&quot; \<br>
        dc-version=&quot;1.1.7-2.mga1-ee0730e13d124c3d58f00016c3376a1de5323cff&quot; \<br>
        cluster-infrastructure=&quot;corosync&quot; \<br>
        stonith-enabled=&quot;false&quot; \<br>
        no-quorum-policy=&quot;ignore&quot;<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&#39;ve added fences in drbd configuration<br>
<br>
handlers {<br>
    fence-peer &quot;/usr/lib/drbd/crm-fence-peer.sh&quot;;<br>
    after-resync-target &quot;/usr/lib/drbd/crm-unfence-peer.sh&quot;;<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>