<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=koi8-r">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"\@PMingLiU";
        panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Courier New CYR";
        panose-1:2 7 3 9 2 2 5 2 4 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Times New Roman","serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Hi,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>I am
using Pacemaker packages from the SuSE repository with CentOS 53 x86_64.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>I
recently compiled and rpmbuilt the newest DRBD release available and upgraded
my cluster.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>My initial
attempt was to use the original OCF script but its logic seems to be completely
off from what DRBD8.3 expects to be asked to do.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>So I
replaced the OCF script with the one provided with release 8.3 as well.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>However
then what OCF was trying to do for monitoring was for some reason telling that
my resource is not running and the crm_mon was constantly resetting going in
circles –<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>showing
the resource in Slave->Master->Slave and so on.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Notice
that this was not the actual case – using “watch cat /proc/drbd”
I could see that the resource was in stable Primary mode and I had actually mounted
the file system and running a data base type application on top of it.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Here is
my original DRBD Resource:<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'><master id="ms-drbd0"><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <meta_attributes
id="ma-ms-drbd0"><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <nvpair value="1" id="ma-ms-drbd0-1"
name="clone-max"/><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <nvpair value="1"
id="ma-ms-drbd0-2" name="clone-node-max"/><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <nvpair value="1"
id="ma-ms-drbd0-3" name="master-max"/><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <nvpair value="1"
id="ma-ms-drbd0-4" name="master-node-max"/><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <nvpair id="ma-ms-drbd0-5"
name="notify" value="true"/><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <nvpair value="false"
id="ma-ms-drbd0-6" name="globally-unique"/><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <nvpair value="stopped"
id="ma-ms-drbd0-7" name="target-role"/><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> </meta_attributes><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <primitive class="ocf"
provider="heartbeat" type="drbd" id="drbd0"><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <instance_attributes
id="ia-drbd0"><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <nvpair id="ia-drbd0-1"
name="drbd_resource" value="drbd0"/><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <nvpair
name="clone_overrides_hostname" id="ia-drbd0-2"
value="no"/><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <nvpair name="drbdconf"
id="ia-drbd0-3" value="/etc/drbd0.conf"/><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> </instance_attributes><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <operations><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <op id="op-drbd0-1"
name="monitor" interval="59s" timeout="10s"
role="Master"/><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <op id="op-drbd0-2"
name="monitor" interval="60s" timeout="10s"
role="Slave"/><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> </operations><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> </primitive><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> </master><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>In order
to “calm” crm_mon I nuked the following from the Resource:<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <operations><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <op id="op-drbd0-1"
name="monitor" interval="59s" timeout="10s"
role="Master"/><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> <op id="op-drbd0-2"
name="monitor" interval="60s" timeout="10s"
role="Slave"/><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'> </operations><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New CYR"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>I am now
concerned that the Resource is not monitored at all. </span><span
style='font-family:Wingdings'>L</span><span style='font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Also
going through the OCF drbd script I noticed:<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>“<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>drbd_status()
{<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>
role=$(drbdadm role $OCF_RESKEY_resource)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'> case
$role in<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>
Primary/*)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>
return $OCF_RUNNING<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>
;;<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>
Secondary/*)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>
return $OCF_NOT_RUNNING<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>
;;<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'> esac<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>
return $OCF_ERR_GENERIC<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>}”<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Does
this mean that Slave status is now considered “not running/stopped”
?<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>I need
to have only one side of the peer controlled in the cluster and the other in a
different cluster and the old script was allowing me to have only one clone per
site with target-role=Master||Slave<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>I guess
I might have actually missed a whole new concept about Pacemaker and DRBD peers
you are trying to push in 8.3 and Later?<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Thanks!<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>./Dimitar
Boyn<o:p></o:p></span></p>
</div>
</body>
</html>