Re: nopreempt not working
benjamin fernandis <[email protected]> Tue, 14 May 2013 13:18:23 +0530
| Newsgroups | gmane.linux.keepalived.announce |
|---|---|
| Message-ID | <CAARrgqwVTLL64Gx8YpvNY3tdaxNeNw1VgbpimM=HBtbv7ub1BQ@mail.gmail.com> |
--===============1477575729164720855== Content-Type: multipart/alternative; boundary=20cf30781070954eb304dca8dbbd --20cf30781070954eb304dca8dbbd Content-Type: text/plain; charset=UTF-8 As per my understanding , if we need to use nopreempt that bothh machine have state BACKUP statement. if i set both machine same priority, then both machine having virtual IP. i need that IP at a time on single machine. Thanks On Tue, May 14, 2013 at 12:23 PM, <[email protected]> wrote: > Hi,**** > > ** ** > > i have no clue but why do you have "state BACKUP" configured on both > machines ?**** > > ** ** > > regards,**** > > ** ** > > ---**** > > ** ** > > Jan**** > > ** ** > > *Von:* benjamin fernandis [mailto:[email protected]] > *Gesendet:* Montag, 13. Mai 2013 19:11 > *An:* [email protected] > *Betreff:* [Keepalived-announce] nopreempt not working**** > > ** ** > > I want to use nopreempt option with keepalived vrrp setting to run backup > node as master when master goes down and again reback into network.**** > > I setup nopreempt option in both servers and set state as backup in both > servers but it is not working as per behavior, when master comes back, it > takes ownership.**** > > Please guide to resolve it**** > > Master Machine: **** > > ! Configuration File for keepalived**** > > vrrp_instance VI_1 {**** > > state BACKUP**** > > nopreempt**** > > interface eth0**** > > virtual_router_id 1**** > > priority 250**** > > advert_int 1**** > > virtual_ipaddress {**** > > 192.168.1.2/24**** > > } **** > > }**** > > ** ** > > Backup Machine :**** > > ! Configuration File for keepalived**** > > vrrp_instance VI_1 {**** > > state BACKUP**** > > nopreempt**** > > interface eth0**** > > virtual_router_id 1**** > > priority 200**** > > advert_int 1**** > > virtual_ipaddress {**** > > 192.168.1.2/24**** > > }**** > > }**** > > Regards, Ben**** > > ** ** > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Keepalived-announce mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/keepalived-announce > > --20cf30781070954eb304dca8dbbd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div>As per my understanding , if we need to use nopr= eempt that bothh machine have state BACKUP statement.<br><br></div>if i set= both machine same priority, then both machine having virtual IP. i need th= at IP at a time on single machine.<br> <br></div>Thanks<br></div><div class=3D"gmail_extra"><br><br><div class=3D"= gmail_quote">On Tue, May 14, 2013 at 12:23 PM, <span dir=3D"ltr"><<a hr= ef=3D"mailto:[email protected]" target=3D"_blank">[email protected].= ch</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> <div link=3D"blue" vlink=3D"purple" lang=3D"DE-CH"> <div> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">Hi,<u></u><u></u></span><= /p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d"><u></u>=C2=A0<u></u></spa= n></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">i have no clue but why do= you have "state BACKUP" configured on both machines ?<u></u><u><= /u></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d"><u></u>=C2=A0<u></u></spa= n></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">regards,<u></u><u></u></s= pan></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d"><u></u>=C2=A0<u></u></spa= n></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">---<u></u><u></u></span><= /p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d"><u></u>=C2=A0<u></u></spa= n></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">Jan<u></u><u></u></span><= /p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d"><u></u>=C2=A0<u></u></spa= n></p> <div style=3D"border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm = 4.0pt"> <div> <div style=3D"border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm = 0cm 0cm"> <p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:"= ;Tahoma","sans-serif"" lang=3D"DE">Von:</span></b><span styl= e=3D"font-size:10.0pt;font-family:"Tahoma","sans-serif"= " lang=3D"DE"> benjamin fernandis [mailto:<a href=3D"mailto:benjo11111@gmai= l.com" target=3D"_blank">[email protected]</a>] <br> <b>Gesendet:</b> Montag, 13. Mai 2013 19:11<br> <b>An:</b> <a href=3D"mailto:[email protected]" tar= get=3D"_blank">[email protected]</a><br> <b>Betreff:</b> [Keepalived-announce] nopreempt not working<u></u><u></u></= span></p> </div> </div><div><div class=3D"h5"> <p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p> <div> <table border=3D"0" cellpadding=3D"0"> <tbody> <tr> <td style=3D"padding:.75pt .75pt .75pt .75pt"></td> </tr> <tr> <td style=3D"padding:.75pt .75pt .75pt .75pt"> <div> <div> <p>I want to use nopreempt option with keepalived vrrp setting to run backu= p node as master when master goes down and again reback into network.<u></u= ><u></u></p> <p>I setup nopreempt option in both servers and set state as backup in both= servers but it is not working as per behavior, when master comes back, it = takes ownership.<u></u><u></u></p> <p>Please guide to resolve it<u></u><u></u></p> <pre><code>=C2=A0 Master Machine: <u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0! Configuration File for keepalived<u></u><u></u></c= ode></pre> <pre><code>=C2=A0=C2=A0 vrrp_instance VI_1 {<u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0 state BACKUP<u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0 nopreempt<u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0 interface eth0<u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0 virtual_router_id 1<u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0 priority 250<u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0 advert_int 1<u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0 virtual_ipaddress {<u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0=C2=A0 <a href=3D"http://192.168.1.2/24" target=3D"_= blank">192.168.1.2/24</a><u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0=C2=A0 } <u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0}<u></u><u></u></code></pre> <pre><code><u></u>=C2=A0<u></u></code></pre> <pre><code>=C2=A0 Backup Machine :<u></u><u></u></code></pre> <pre><code>=C2=A0 ! Configuration File for keepalived<u></u><u></u></code><= /pre> <pre><code>=C2=A0=C2=A0 vrrp_instance VI_1 {<u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0 state BACKUP<u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0 nopreempt<u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0 interface eth0<u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0 virtual_router_id 1<u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0 priority 200<u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0 advert_int 1<u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0 virtual_ipaddress {<u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0=C2=A0=C2=A0 <a href=3D"http://192.168.1.2/24" targe= t=3D"_blank">192.168.1.2/24</a><u></u><u></u></code></pre> <pre><code>=C2=A0=C2=A0 }<u></u><u></u></code></pre> <p>}<u></u><u></u></p> <p>Regards, Ben<u></u><u></u></p> </div> </div> </td> </tr> </tbody> </table> <p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p> </div> </div></div></div> </div> </div> <br>-----------------------------------------------------------------------= -------<br> AlienVault Unified Security Management (USM) platform delivers complete<br> security visibility with the essential security capabilities. Easily and<br= > efficiently configure, manage, and operate all of your security controls<br= > from a single console and one unified framework. Download a free trial.<br> <a href=3D"http://p.sf.net/sfu/alienvault_d2d" target=3D"_blank">http://p.s= f.net/sfu/alienvault_d2d</a><br>___________________________________________= ____<br> Keepalived-announce mailing list<br> <a href=3D"mailto:[email protected]">Keepalived-ann= [email protected]</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/keepalived-announce= " target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/keepalived= -announce</a><br> <br></blockquote></div><br></div> --20cf30781070954eb304dca8dbbd-- --===============1477575729164720855== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d --===============1477575729164720855== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Keepalived-announce mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/keepalived-announce --===============1477575729164720855==--