<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 14 (filtered medium)"><style><!--
/* Font Definitions */
@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:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
{mso-style-priority:1;
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
p.Code, li.Code, div.Code
{mso-style-name:Code;
margin:0cm;
margin-bottom:.0001pt;
font-size:9.0pt;
font-family:"Courier New";
mso-fareast-language:EN-US;}
span.EmailStyle19
{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:72.0pt 72.0pt 72.0pt 72.0pt;}
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=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello all.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Between SLE 11 HAE and SLE 11 SP1 HAE (pacemaker 1.0.3 – pacemaker 1.1.2) the following bit has changed in the IPaddr2 RA:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>Old:<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>local iface=`$IP2UTIL -o -f inet addr show | grep "\ $BASEIP/" \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'> | cut -d ' ' -f2 | grep -v '^ipsec[0-9][0-9]*$'`<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>New:<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>local iface=`$IP2UTIL -o -f inet addr show | grep "\ $BASEIP/$NETMASK" \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'> | cut -d ' ' -f2 | grep -v '^ipsec[0-9][0-9]*$'`<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I notice the addition of the $NETMASK variable. I’m not sure why it’s been added but it’s broken how we do load balancing.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>We configure a virtual IP on the non-arping lo interface of both servers and then configure the IPaddr2 resource with lvs_support=true. This RA will remove the duplicate IP from the lo interface when it becomes active. Grouping the VIP with ldirectord/LVS we can have the load-balancer and VIP on one node, balancing traffic to the other node with failover where both resources failover together.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>To do this we need to configure the VIP on lo as a 32 bit netmask but the VIP on the eth0 interface needs to have a 24 bit netmask. This has worked fine up until now and we base all of our clusters on this method. Now what happens is that the find_interface() routine in IPaddr2 doesn’t remove the IP from lo when starting the VIP resource as it can’t find it due to the netmask not matching.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Obviously I can edit the RA myself but I wanted to check the reason for this. Apologies if it’s in changelogs somewhere (please direct me to these if so).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks<o:p></o:p></p><p class=MsoNormal>Darren Mansell<o:p></o:p></p></div></body></html>