<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Stonith - the kill other node. But I need another.<br>
So that a node can not become a master if it is not connected to
network.<br>
I solved my question by increasing the parameter token in
corosync.conf<br>
default token value: 3000. New value: 30000.<br>
And then the rule (location location_master_ms_drbd1 ms_drbd1 rule
$role=Master -inf: not_defined pingd or pingd lte 0) has time to
work correctly.<br>
<br>
Thanks to Adrián Gómez <a class="moz-txt-link-rfc2396E" href="mailto:a.gomez@medlabmg.com"><a.gomez@medlabmg.com></a> for his
question, which turned out to be a response to my.<br>
<br>
<br>
<div class="moz-cite-prefix">On 19.12.2017 13:00, emmanuel segura
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAE7pJ3DQCueqw1+O=1cR4DBaSO2XZmmsArtrXrxgPOLFORYs3g@mail.gmail.com">
<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"
moz-do-not-send="true">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" moz-do-not-send="true">168885811</a>: <a
href="http://pp-pacemaker1.heliosoft.ru" rel="noreferrer"
target="_blank" moz-do-not-send="true">pp-pacemaker1.heliosoft.ru</a><br>
node <a href="tel:168885812" value="+49168885812"
target="_blank" moz-do-not-send="true">168885812</a>: <a
href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer"
target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">pp-pacemaker1.heliosoft.ru</a>
<a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer"
target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">pp-pacemaker1.heliosoft.ru</a><br>
vip (ocf::heartbeat:IPaddr2): Started <a
href="http://pp-pacemaker1.heliosoft.ru" rel="noreferrer"
target="_blank" moz-do-not-send="true">pp-pacemaker1.heliosoft.ru</a><br>
vip2 (ocf::heartbeat:IPaddr2): Started <a
href="http://pp-pacemaker1.heliosoft.ru" rel="noreferrer"
target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">pp-pacemaker1.heliosoft.ru</a>
]<br>
Slaves: [ <a href="http://pp-pacemaker2.heliosoft.ru"
rel="noreferrer" target="_blank" moz-do-not-send="true">pp-pacemaker2.heliosoft.ru</a>
]<br>
Clone Set: pingerclone [pinger]<br>
Started: [ <a href="http://pp-pacemaker1.heliosoft.ru"
rel="noreferrer" target="_blank" moz-do-not-send="true">pp-pacemaker1.heliosoft.ru</a>
<a href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer"
target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">pp-pacemaker2.heliosoft.ru</a>]<br>
OFFLINE: [<a href="http://pp-pacemaker1.heliosoft.ru"
rel="noreferrer" target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">pp-pacemaker2.heliosoft.ru</a><br>
vip (ocf::heartbeat:IPaddr2): Started <a
href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer"
target="_blank" moz-do-not-send="true">pp-pacemaker2.heliosoft.ru</a><br>
vip2 (ocf::heartbeat:IPaddr2): Started <a
href="http://pp-pacemaker2.heliosoft.ru" rel="noreferrer"
target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">pp-pacemaker2.heliosoft.ru</a>
]<br>
Clone Set: pingerclone [pinger]<br>
Started: [ <a href="http://pp-pacemaker2.heliosoft.ru"
rel="noreferrer" target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">pp-pacemaker2.heliosoft.ru</a><br>
OFFLINE: [<a href="http://pp-pacemaker1.heliosoft.ru"
rel="noreferrer" target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">pp-pacemaker2.heliosoft.ru</a>
]<br>
Clone Set: pingerclone [pinger]<br>
Started: [ <a href="http://pp-pacemaker2.heliosoft.ru"
rel="noreferrer" target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">Users@clusterlabs.org</a><br>
<a
href="http://lists.clusterlabs.org/mailman/listinfo/users"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.clusterlabs.org/m<wbr>ailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.clusterlabs.org</a><br>
Getting started: <a
href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.clusterlabs.org/doc<wbr>/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org"
rel="noreferrer" target="_blank" moz-do-not-send="true">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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list: <a class="moz-txt-link-abbreviated" href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a>
<a class="moz-txt-link-freetext" href="http://lists.clusterlabs.org/mailman/listinfo/users">http://lists.clusterlabs.org/mailman/listinfo/users</a>
Project Home: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org">http://www.clusterlabs.org</a>
Getting started: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a class="moz-txt-link-freetext" href="http://bugs.clusterlabs.org">http://bugs.clusterlabs.org</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<span style="font-family:Arial; font-size:15px; color:1e9cd7;">Павел
Прокопов</span><br>
<span style="font-family:Arial; font-size:11px;">Старший системный
администратор<br>
Отдел системного администрирования</span>
<p style="font-family:Arial; font-size:11px; color:#666;
margin:10px 0 10px;">
<img src="cid:part37.050DF8A2.F6BBF98B@experium.ru"><br>
Адрес: 109004, Москва,<br>
Большой факельный переулок, д. 3, стр. 2,<br>
3 этаж<br>
Тел.: +7 (495) 783-66-03, доб. 1143<br>
Факс: +7 (495) 789-89-58<br>
Почта: <a href="mailto:prokopov@experium.ru"><span
style="color:#1e9cd7;">prokopov@experium.ru</span></a><br>
Сайт: <a href="http://www.experium.ru"><span
style="color:#1e9cd7;">www.experium.ru</span></a>
</p>
</div>
</body>
</html>