<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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Helv;
        panose-1:2 11 6 4 2 2 2 3 2 4;}
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 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="DE-AT" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">we found a bug in the fencing script “/usr/lib/drbd/crm-fence-peer.9.sh” regarding pacemaker 2.0.2. I used DRBD-utils-9.12.0.<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">In the function “fence_peer_init” is the following command (in our version its line 203):<o:p></o:p></span></p>
<p class="MsoNormal"><i><span lang="EN-US"> : ${master_id=$(set +x; echo "$cib_xml" |<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> </span>
</i><i><span lang="SV">sed -ne '/<<span style="background:yellow;mso-highlight:yellow">master</span> /,/<\/<span style="background:yellow;mso-highlight:yellow">master</span>>/ {<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="SV">
</span></i><i><span lang="EN-US">/<<span style="background:yellow;mso-highlight:yellow">master</span> / h;<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> /<primitive/,/<\/primitive/ {<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> /<instance_attributes/,/<\/instance_attributes/ {<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> /<nvpair .*\bname="drbd_resource"/ {<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> /.*\bvalue="'"$DRBD_RESOURCE"'"/! d<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> x<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> s/^.*\bid="\([^"]*\)".*/\1/p<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> q<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> };};};}')}<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><span lang="EN-US">This “sed” command does no longer work, cause the cib.xml structure in pacemaker 2.0.2 is different. It looks like the section “<master” was renamed to “<clone”. In my case the following change did fix the issue:<o:p></o:p></span></p>
<p class="MsoNormal"><i><span lang="EN-US"> : ${master_id=$(set +x; echo "$cib_xml" |<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> sed -ne '/<<span style="background:yellow;mso-highlight:yellow">clone</span> /,/<\/<span style="background:yellow;mso-highlight:yellow">clone</span>>/ {<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> /<<span style="background:yellow;mso-highlight:yellow">clone</span> / h;<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> /<primitive/,/<\/primitive/ {<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> /<instance_attributes/,/<\/instance_attributes/ {<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> /<nvpair .*\bname="drbd_resource"/ {<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> /.*\bvalue="'"$DRBD_RESOURCE"'"/! d<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US">
</span></i><i><span lang="PT-BR">x<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="PT-BR"> s/^.*\bid="\([^"]*\)".*/\1/p<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="PT-BR"> q<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="PT-BR"> };};};}')}<o:p></o:p></span></i></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I hope this info is helpful for others running in the same issue and maybe someone can create a fix for the next release?<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"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Helv",sans-serif;color:#5F5F5F;mso-fareast-language:DE-AT">Mit freundlichen Grüßen / Best Regards<br>
<b><br>
Martin Köckinger, BSc.</b><br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Helv",sans-serif;color:#5F5F5F;mso-fareast-language:DE-AT">System Administration<br>
<b><br>
KNAPP Systemintegration GmbH</b><br>
Waltenbachstraße 9<br>
8700 Leoben, Austria <br>
Phone: +43 5 04953-6921 <br>
Mobile: +43 67689796921<br>
Fax: +43 5 04953-6500<br>
martin.koeckinger@knapp.com <br>
www.knapp.com <br>
<br>
Commercial register number: FN 138870x<br>
Commercial register court: Leoben<br>
DVR: 4017057<br>
</span><span lang="EN-US" style="font-size:8.0pt;font-family:"Helv",sans-serif;color:#D2D2D2;mso-fareast-language:DE-AT"><br>
The information in this e-mail (including any attachment) is confidential and intended to be for the use of the addressee(s) only. If you have received the e-mail by mistake, any disclosure, copy, distribution or use of the contents of the e-mail is prohibited,
and you must delete the e-mail from your system. As e-mail can be changed electronically KNAPP assumes no responsibility for any alteration to this e-mail or its attachments. KNAPP has taken every reasonable precaution to ensure that any attachment to this
e-mail has been swept for virus. However, KNAPP does not accept any liability for damage sustained as a result of such attachment being virus infected and strongly recommend that you carry out your own virus check before opening any attachment.</span><span lang="EN-US" style="mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>