<div dir="ltr">You need to configure the stonith and drbd stonith handler<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-12-19 8:19 GMT+01:00 Прокопов Павел <span dir="ltr"><<a href="mailto:prokopov@experium.ru" target="_blank">prokopov@experium.ru</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<br>
pacemaker pingd with ms drbd = double masters short time when disconnected networks.<br>
<br>
My crm config:<br>
<br>
node <a href="tel:168885811" value="+49168885811" target="_blank">168885811</a>: <a href="http://pp-pacemaker1.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker1.heliosoft.ru</a><br>
node <a href="tel:168885812" value="+49168885812" target="_blank">168885812</a>: <a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker2.heliosoft.ru</a><br>
primitive drbd1 ocf:linbit:drbd \<br>
params drbd_resource=drbd1 \<br>
op monitor interval=60s \<br>
op start interval=15 timeout=240s \<br>
op stop interval=15 timeout=240s \<br>
op monitor role=Master interval=30s \<br>
op monitor role=Slave interval=60s<br>
primitive fs_drbd1 Filesystem \<br>
params device="/dev/drbd1" directory="/mnt/drbd1" fstype=ext4 options=noatime<br>
primitive pinger ocf:pacemaker:ping \<br>
params host_list=10.16.4.1 multiplier=100 \<br>
op monitor interval=15s \<br>
op start interval=0 timeout=5s \<br>
op stop interval=0<br>
primitive vip IPaddr2 \<br>
params ip=10.16.5.227 nic=eth0 \<br>
op monitor interval=10s<br>
primitive vip2 IPaddr2 \<br>
params ip=10.16.254.50 nic=eth1 \<br>
op monitor interval=10s<br>
group group_master fs_drbd1 vip vip2<br>
ms ms_drbd1 drbd1 \<br>
meta master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 notify=true<br>
clone pingerclone pinger \<br>
meta globally-unique=false<br>
colocation colocation_master inf: ms_drbd1:Master group_master<br>
location location_master_ms_drbd1 ms_drbd1 \<br>
rule $role=Master -inf: not_defined pingd or pingd lte 0<br>
order main_order Mandatory: pingerclone:start ms_drbd1:promote group_master:start<br>
property cib-bootstrap-options: \<br>
stonith-enabled=false \<br>
no-quorum-policy=ignore \<br>
default-resource-stickiness=50<wbr>0 \<br>
cluster-name=pp1<br>
<br>
root@pp-pacemaker2:~# crm_mon -1<br>
Stack: corosync<br>
Current DC: <a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker2.heliosoft.ru</a> (version 1.1.16-94ff4df) - partition with quorum<br>
Last updated: Fri Dec 15 13:48:10 2017<br>
Last change: Fri Dec 15 13:46:38 2017 by root via cibadmin on <a href="http://pp-pacemaker1.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker1.heliosoft.ru</a><br>
<br>
2 nodes configured<br>
7 resources configured<br>
<br>
Online: [ <a href="http://pp-pacemaker1.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker1.heliosoft.ru</a> <a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker2.heliosoft.ru</a> ]<br>
<br>
Active resources:<br>
<br>
Resource Group: group_master<br>
fs_drbd1 (ocf::heartbeat:Filesystem): <wbr> Started <a href="http://pp-pacemaker1.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker1.heliosoft.ru</a><br>
vip (ocf::heartbeat:IPaddr2): Started <a href="http://pp-pacemaker1.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker1.heliosoft.ru</a><br>
vip2 (ocf::heartbeat:IPaddr2): Started <a href="http://pp-pacemaker1.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker1.heliosoft.ru</a><br>
Master/Slave Set: ms_drbd1 [drbd1]<br>
Masters: [ <a href="http://pp-pacemaker1.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker1.heliosoft.ru</a> ]<br>
Slaves: [ <a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker2.heliosoft.ru</a> ]<br>
Clone Set: pingerclone [pinger]<br>
Started: [ <a href="http://pp-pacemaker1.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker1.heliosoft.ru</a> <a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker2.heliosoft.ru</a> ]<br>
#end crm_mon<br>
<br>
When I disconnect pp-pacemaker2 from all networks, I have:<br>
root@pp-pacemaker2:~# crm_mon -1<br>
Stack: corosync<br>
Current DC: <a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker2.heliosoft.ru</a> (version 1.1.16-94ff4df) - partition with quorum<br>
Last updated: Fri Dec 15 13:53:15 2017<br>
Last change: Fri Dec 15 13:53:00 2017 by root via cibadmin on <a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker2.heliosoft.ru</a><br>
<br>
2 nodes configured<br>
7 resources configured<br>
<br>
Online: [ <a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker2.heliosoft.ru</a>]<br>
OFFLINE: [<a href="http://pp-pacemaker1.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker1.heliosoft.ru</a> ]<br>
<br>
Active resources:<br>
<br>
Resource Group: group_master<br>
fs_drbd1 (ocf::heartbeat:Filesystem): <wbr> Started <a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker2.heliosoft.ru</a><br>
vip (ocf::heartbeat:IPaddr2): Started <a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker2.heliosoft.ru</a><br>
vip2 (ocf::heartbeat:IPaddr2): Started <a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker2.heliosoft.ru</a><br>
Master/Slave Set: ms_drbd1 [drbd1]<br>
Masters: [ <a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker2.heliosoft.ru</a> ]<br>
Clone Set: pingerclone [pinger]<br>
Started: [ <a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker2.heliosoft.ru</a> ]<br>
#end crm_mon<br>
<br>
Wait 5 seconds.<br>
<br>
root@pp-pacemaker2:~# crm_mon -1<br>
Stack: corosync<br>
Current DC: <a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker2.heliosoft.ru</a> (version 1.1.16-94ff4df) - partition with quorum<br>
Last updated: Fri Dec 15 13:48:10 2017<br>
Last change: Fri Dec 15 13:46:38 2017 by root via cibadmin on <a href="http://pp-pacemaker1.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker1.heliosoft.ru</a><br>
<br>
2 nodes configured<br>
7 resources configured<br>
<br>
Online: [ <a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker2.heliosoft.ru</a><br>
OFFLINE: [<a href="http://pp-pacemaker1.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker1.heliosoft.ru</a> ]<br>
<br>
Active resources:<br>
<br>
Master/Slave Set: ms_drbd1 [drbd1]<br>
Slaves: [ <a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker2.heliosoft.ru</a> ]<br>
Clone Set: pingerclone [pinger]<br>
Started: [ <a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer" target="_blank">pp-pacemaker2.heliosoft.ru</a> ]<br>
#end crm_mon<br>
<br>
Why pp-pacemaker2 first become a master? It breaks drdb.<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
<a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/m<wbr>ailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc<wbr>/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"> .~.<br> /V\<br> // \\<br>/( )\<br>^`~'^</div>
</div>