<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=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></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=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Guys,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>I’m currently updating a Pacemaker+drbd+scst cluster from drbd-8.3.12 to drbd-8.3.15, and I found something odd regarding unfencing. Basic symptom is that unfencing does nothing, cluster logs report unfencing had been done, but in reality nothing has occurred.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>For instance here’s the rule I’ve got in my CIB after volume teardown :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>location drbd-fence-by-handler-ms-rdmVDR ms-rdmVDR \<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> rule $id="drbd-fence-by-handler-rule-ms-rdmVDR" $role="Master" -inf: #uname ne ipstore21<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Now, I have instrumented the </span><span lang=EN-US style='font-family:"Courier New"'>fence_peer_init()</span><span lang=EN-US> function within </span><span lang=EN-US style='font-family:"Courier New"'>crm_fence_peer.sh</span><span lang=EN-US> script as follows :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>fence_peer_init()<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>{<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> # we know which instance we are: $OCF_RESOURCE_INSTANCE.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>…<o:p></o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-family:"Courier New";color:#0070C0'>echo "fence_peer_init() :" >> /var/log/unfence.log<o:p></o:p></span></b></p><p class=MsoNormal><b><span lang=EN-US style='font-family:"Courier New";color:#0070C0'>echo "===== $id_prefix =====" >> /var/log/unfence.log<o:p></o:p></span></b></p><p class=MsoNormal><b><span lang=EN-US style='font-family:"Courier New";color:#0070C0'>echo "===== $master_id =====" >> /var/log/unfence.log<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> have_constraint=$(set +x; echo "$cib_xml" |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> sed_rsc_location_suitable_for_string_compare "$id_prefix-$master_id")<o:p></o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-family:"Courier New";color:#0070C0'>echo "===== $have_constraint =====" >> /var/log/unfence.log<o:p></o:p></span></b></p><p class=MsoNormal><b><span lang=EN-US style='font-family:"Courier New";color:#0070C0'>echo "End of fence_peer_init()" >> /var/log/unfence.log<o:p></o:p></span></b></p><p class=MsoNormal><b><span lang=EN-US style='font-family:"Courier New";color:#0070C0'>echo >> /var/log/unfence.log<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> return 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>When resync finishes, here’s what I get in my logfile :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>fence_peer_init() :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>===== drbd-fence-by-handler-rdmVDR =====<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>===== ms-rdmVDR =====<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>===== =====<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>End of fence_peer_init()<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>As a result, it searches a location rule named </span><span lang=EN-US style='font-family:"Courier New"'>drbd-fence-by-handler-rdmVDR-ms-rdmVDR</span><span lang=EN-US> for deletion that effectively doesn’t exists in the CIB and </span><span lang=EN-US style='font-family:"Courier New"'>have_constraint</span><span lang=EN-US> returns empty…<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I’ve compared to 8.3.12 version of the script which used to work, and there seems to have some changes…<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I will unfence by hand in the meantime but I think it requires some fix, right ?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Pascal.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>