<div dir="ltr"><div><div><div><div>Hello,<br><br></div>I have configured a two node Active/Pasive (host1, host2) cluster on fedora 20 with pacemaker, corosync, drbd . <br><br></div><div>Every time i unplug a network cable form the master host at that point drbd goes in split brain state. After i reconnect brbd says StandAlone on one host and WFConnection on the other host.<br></div><div><br></div><div>I can't fix this issue. Even though i declared automatic split-brain policies in drbd configuration file my DRBD never recoveres after a network failure.<br></div><div><br>My resource configuration is as fallows:<br><br>Resources:<br> Resource: ClusterIP (class=ocf provider=heartbeat type=IPaddr2)<br> Attributes: ip=192.168.100.94 cidr_netmask=32<br> Operations: monitor interval=30s (ClusterIP-monitor-interval-30s)<br> Resource: WebSite (class=ocf provider=heartbeat type=apache)<br> Attributes: configfile=/etc/httpd/conf/httpd.conf statusurl=<a href="http://localhost/server-status">http://localhost/server-status</a><br> Operations: monitor interval=1min (WebSite-monitor-interval-1min)<br> Master: WebDataClone<br> Meta Attrs: master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 notify=true<br> Resource: WebData (class=ocf provider=linbit type=drbd)<br> Attributes: drbd_resource=www<br> Operations: monitor interval=60s (WebData-monitor-interval-60s)<br> Resource: WebFS (class=ocf provider=heartbeat type=Filesystem)<br> Attributes: device=/dev/drbd/by-res/www directory=/var/www/html fstype=ext4<br> Master: SQLDataClone<br> Meta Attrs: master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 notify=true<br> Resource: SQLData (class=ocf provider=linbit type=drbd)<br> Attributes: drbd_resource=sql<br> Operations: monitor interval=60s (SQLData-monitor-interval-60s)<br> Resource: SQLFS (class=ocf provider=heartbeat type=Filesystem)<br> Attributes: device=/dev/drbd4 directory=/var/lib/mysql/data fstype=ext4<br> Resource: appServer (class=ocf provider=heartbeat type=anything)<br> Attributes: binfile=/home/myApp/myAppV2_17 workdir=/home/myApp/ logfile=/home/myApp/logFile.log errlogfile=/home/myApp/errlogFile.log cmdline_options=/home/myApp/config.cfg<br> Operations: monitor interval=120s (appServer-monitor-interval-120s)<br> Resource: MySQL (class=ocf provider=heartbeat type=mysql)<br> Attributes: binary=/usr/sbin/mysqld config=/var/lib/mysql/my.cnf datadir=/var/lib/mysql/data pid=/var/run/mysqld/mysqld.pid socket=/var/lib/mysql/mysql.sock<br> Operations: monitor interval=60s (MySQL-monitor-interval-60s)<br><br>I have two drbd partitions configured for mysql data files and one for apache files. <br><br></div>Drbd configuration is as fallows:<br><br><span style="font-family:verdana,sans-serif"><font>global {<br> usage-count yes;<br>}<br>common {<br> protocol C;<br>}<br>resource sql {<br> meta-disk internal;<br> device /dev/drbd4;<br> <br> syncer {<br> verify-alg sha1;<br> }<br><br> net {<br> allow-two-primaries;<br></font></span><pre class=""><span style="font-family:verdana,sans-serif"><font> after-sb-0pri discard-zero-changes;
after-sb-1pri discard-secondary;</font></span></pre><span style="font-family:verdana,sans-serif"><font> after-sb-2pri disconnect;<br> }<br> on host1 {<br> disk /dev/SQL/TestSQL;<br> address <a href="http://192.168.100.92:7789">192.168.100.92:7789</a>;<br> }<br> on host2 {<br> disk /dev/SQL/TestSQL;<br> address <a href="http://192.168.100.93:7789">192.168.100.93:7789</a>;<br> }<br>}<br>resource www {<br> meta-disk internal;<br> device /dev/drbd3;<br> syncer {<br> verify-alg sha1;<br> }<br> <br> net {<br> allow-two-primaries;<br></font></span><pre class=""><span style="font-family:verdana,sans-serif"><font> after-sb-0pri discard-zero-changes;
after-sb-1pri discard-secondary;</font></span></pre><span style="font-family:verdana,sans-serif"><font> after-sb-2pri disconnect;<br> }<br> on host1 {<br> disk /dev/WEB/TestWEB;<br> address <a href="http://192.168.100.92:7799">192.168.100.92:7799</a>;<br> }<br> on host2 {<br> disk /dev/WEB/TestWEB;<br> address <a href="http://192.168.100.93:7799">192.168.100.93:7799</a>;<br> }<br>}</font></span><br><br></div>Thank you,<br></div>Violeta<br></div>