keepalived master cannot reclaim virtual IP after recoveredBoth servers running keepalived become...

Why Is Death Allowed In the Matrix?

How does one intimidate enemies without having the capacity for violence?

Why dont electromagnetic waves interact with each other?

How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?

How to write a macro that is braces sensitive?

A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?

Why do falling prices hurt debtors?

What are these boxed doors outside store fronts in New York?

Why was the small council so happy for Tyrion to become the Master of Coin?

Is it legal for company to use my work email to pretend I still work there?

Is it possible to do 50 km distance without any previous training?

Example of a continuous function that don't have a continuous extension

How can bays and straits be determined in a procedurally generated map?

In Japanese, what’s the difference between “Tonari ni” (となりに) and “Tsugi” (つぎ)? When would you use one over the other?

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

Dragon forelimb placement

Have astronauts in space suits ever taken selfies? If so, how?

Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)

How to test if a transaction is standard without spending real money?

TGV timetables / schedules?

Why can't I see bouncing of a switch on an oscilloscope?

How to format long polynomial?

Do I have a twin with permutated remainders?

Service Entrance Breakers Rain Shield



keepalived master cannot reclaim virtual IP after recovered


Both servers running keepalived become masterkeepalived - service not available on the 'passive' hostkeepalived not starting and complaining about not set virtual idLVS Keepalived connection between master and backupVIP not dropping from backup keepalivedKeepalived unwanted transition to masterSet up keepalived for MySQL Master-Master replicationAWS keepalived backup immediately goes to MASTERkeepalived - Virtual is not routing my requests to real serverskeepalived doesn't detect loss of virtual IP






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







5















Steps




  1. Start both master and slave

  2. Keep pinging virtual ip (i.e 192.168.10.100)

  3. Shutdown master

  4. Slave enters MASTER state

  5. Restart master

  6. Slave enters BACKUP state and Master enters MASTER state


Ping doesn't work after step 6. No server gets the virtual ip. (I checked with ip addr show eth1)



Master can get back the virtual ip until I restart the keepalived service.



How to make the master getting virtual ip without restart the service?



Keepalived configuration:



host1 (master)



vrrp_instance VI_1 {
state MASTER
interface eth1
virtual_router_id 51
priority 101
advert_int 1
authentication {
auth_type PASS
auth_pass secret
}
virtual_ipaddress {
192.168.10.100
}
}


host2 (slave)



vrrp_instance VI_1 {
state BACKUP
interface eth1
virtual_router_id 51
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass secret
}
virtual_ipaddress {
192.168.10.100
}
}









share|improve this question














bumped to the homepage by Community 7 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    5















    Steps




    1. Start both master and slave

    2. Keep pinging virtual ip (i.e 192.168.10.100)

    3. Shutdown master

    4. Slave enters MASTER state

    5. Restart master

    6. Slave enters BACKUP state and Master enters MASTER state


    Ping doesn't work after step 6. No server gets the virtual ip. (I checked with ip addr show eth1)



    Master can get back the virtual ip until I restart the keepalived service.



    How to make the master getting virtual ip without restart the service?



    Keepalived configuration:



    host1 (master)



    vrrp_instance VI_1 {
    state MASTER
    interface eth1
    virtual_router_id 51
    priority 101
    advert_int 1
    authentication {
    auth_type PASS
    auth_pass secret
    }
    virtual_ipaddress {
    192.168.10.100
    }
    }


    host2 (slave)



    vrrp_instance VI_1 {
    state BACKUP
    interface eth1
    virtual_router_id 51
    priority 100
    advert_int 1
    authentication {
    auth_type PASS
    auth_pass secret
    }
    virtual_ipaddress {
    192.168.10.100
    }
    }









    share|improve this question














    bumped to the homepage by Community 7 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      5












      5








      5


      1






      Steps




      1. Start both master and slave

      2. Keep pinging virtual ip (i.e 192.168.10.100)

      3. Shutdown master

      4. Slave enters MASTER state

      5. Restart master

      6. Slave enters BACKUP state and Master enters MASTER state


      Ping doesn't work after step 6. No server gets the virtual ip. (I checked with ip addr show eth1)



      Master can get back the virtual ip until I restart the keepalived service.



      How to make the master getting virtual ip without restart the service?



      Keepalived configuration:



      host1 (master)



      vrrp_instance VI_1 {
      state MASTER
      interface eth1
      virtual_router_id 51
      priority 101
      advert_int 1
      authentication {
      auth_type PASS
      auth_pass secret
      }
      virtual_ipaddress {
      192.168.10.100
      }
      }


      host2 (slave)



      vrrp_instance VI_1 {
      state BACKUP
      interface eth1
      virtual_router_id 51
      priority 100
      advert_int 1
      authentication {
      auth_type PASS
      auth_pass secret
      }
      virtual_ipaddress {
      192.168.10.100
      }
      }









      share|improve this question














      Steps




      1. Start both master and slave

      2. Keep pinging virtual ip (i.e 192.168.10.100)

      3. Shutdown master

      4. Slave enters MASTER state

      5. Restart master

      6. Slave enters BACKUP state and Master enters MASTER state


      Ping doesn't work after step 6. No server gets the virtual ip. (I checked with ip addr show eth1)



      Master can get back the virtual ip until I restart the keepalived service.



      How to make the master getting virtual ip without restart the service?



      Keepalived configuration:



      host1 (master)



      vrrp_instance VI_1 {
      state MASTER
      interface eth1
      virtual_router_id 51
      priority 101
      advert_int 1
      authentication {
      auth_type PASS
      auth_pass secret
      }
      virtual_ipaddress {
      192.168.10.100
      }
      }


      host2 (slave)



      vrrp_instance VI_1 {
      state BACKUP
      interface eth1
      virtual_router_id 51
      priority 100
      advert_int 1
      authentication {
      auth_type PASS
      auth_pass secret
      }
      virtual_ipaddress {
      192.168.10.100
      }
      }






      keepalived






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 2 '15 at 8:31









      franzigafranziga

      1261




      1261





      bumped to the homepage by Community 7 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 7 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          2 Answers
          2






          active

          oldest

          votes


















          0














          Only thing that jumps out different between your config and ones I'm using are that I have



          virtual_ipaddress { <ip> dev <devname> }



          That may not strictly be necessary, but that's the only difference I can see vs. a known working setup.






          share|improve this answer































            0














            Explanations you can find here:
            https://github.com/acassen/keepalived/blob/317555e304372205cf634f252e72c5b6de0eb1b6/doc/man/man5/keepalived.conf.5




            For electing MASTER, highest priority wins.
            to be MASTER, make this 50 more than on other machines.




            Difference between your MASTER and BACKUP priority 101-100=1. It must be at least 50. Change your MASTER priority from 101 to 100 and BACKUP priority from 100 to 50.






            share|improve this answer


























            • Your answer looks to be a good quality one, but it is not enough. Please try to formulate in round sentences, it should be understable easily (also for people with very different native language or with little knowledge on the topic).

              – peterh
              Aug 2 '17 at 0:15












            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "2"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f733207%2fkeepalived-master-cannot-reclaim-virtual-ip-after-recovered%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Only thing that jumps out different between your config and ones I'm using are that I have



            virtual_ipaddress { <ip> dev <devname> }



            That may not strictly be necessary, but that's the only difference I can see vs. a known working setup.






            share|improve this answer




























              0














              Only thing that jumps out different between your config and ones I'm using are that I have



              virtual_ipaddress { <ip> dev <devname> }



              That may not strictly be necessary, but that's the only difference I can see vs. a known working setup.






              share|improve this answer


























                0












                0








                0







                Only thing that jumps out different between your config and ones I'm using are that I have



                virtual_ipaddress { <ip> dev <devname> }



                That may not strictly be necessary, but that's the only difference I can see vs. a known working setup.






                share|improve this answer













                Only thing that jumps out different between your config and ones I'm using are that I have



                virtual_ipaddress { <ip> dev <devname> }



                That may not strictly be necessary, but that's the only difference I can see vs. a known working setup.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 1 '16 at 15:14









                Nathan NeulingerNathan Neulinger

                3571312




                3571312

























                    0














                    Explanations you can find here:
                    https://github.com/acassen/keepalived/blob/317555e304372205cf634f252e72c5b6de0eb1b6/doc/man/man5/keepalived.conf.5




                    For electing MASTER, highest priority wins.
                    to be MASTER, make this 50 more than on other machines.




                    Difference between your MASTER and BACKUP priority 101-100=1. It must be at least 50. Change your MASTER priority from 101 to 100 and BACKUP priority from 100 to 50.






                    share|improve this answer


























                    • Your answer looks to be a good quality one, but it is not enough. Please try to formulate in round sentences, it should be understable easily (also for people with very different native language or with little knowledge on the topic).

                      – peterh
                      Aug 2 '17 at 0:15
















                    0














                    Explanations you can find here:
                    https://github.com/acassen/keepalived/blob/317555e304372205cf634f252e72c5b6de0eb1b6/doc/man/man5/keepalived.conf.5




                    For electing MASTER, highest priority wins.
                    to be MASTER, make this 50 more than on other machines.




                    Difference between your MASTER and BACKUP priority 101-100=1. It must be at least 50. Change your MASTER priority from 101 to 100 and BACKUP priority from 100 to 50.






                    share|improve this answer


























                    • Your answer looks to be a good quality one, but it is not enough. Please try to formulate in round sentences, it should be understable easily (also for people with very different native language or with little knowledge on the topic).

                      – peterh
                      Aug 2 '17 at 0:15














                    0












                    0








                    0







                    Explanations you can find here:
                    https://github.com/acassen/keepalived/blob/317555e304372205cf634f252e72c5b6de0eb1b6/doc/man/man5/keepalived.conf.5




                    For electing MASTER, highest priority wins.
                    to be MASTER, make this 50 more than on other machines.




                    Difference between your MASTER and BACKUP priority 101-100=1. It must be at least 50. Change your MASTER priority from 101 to 100 and BACKUP priority from 100 to 50.






                    share|improve this answer















                    Explanations you can find here:
                    https://github.com/acassen/keepalived/blob/317555e304372205cf634f252e72c5b6de0eb1b6/doc/man/man5/keepalived.conf.5




                    For electing MASTER, highest priority wins.
                    to be MASTER, make this 50 more than on other machines.




                    Difference between your MASTER and BACKUP priority 101-100=1. It must be at least 50. Change your MASTER priority from 101 to 100 and BACKUP priority from 100 to 50.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Aug 2 '17 at 13:56

























                    answered Aug 1 '17 at 18:10









                    Alexander MakarenkoAlexander Makarenko

                    43718




                    43718













                    • Your answer looks to be a good quality one, but it is not enough. Please try to formulate in round sentences, it should be understable easily (also for people with very different native language or with little knowledge on the topic).

                      – peterh
                      Aug 2 '17 at 0:15



















                    • Your answer looks to be a good quality one, but it is not enough. Please try to formulate in round sentences, it should be understable easily (also for people with very different native language or with little knowledge on the topic).

                      – peterh
                      Aug 2 '17 at 0:15

















                    Your answer looks to be a good quality one, but it is not enough. Please try to formulate in round sentences, it should be understable easily (also for people with very different native language or with little knowledge on the topic).

                    – peterh
                    Aug 2 '17 at 0:15





                    Your answer looks to be a good quality one, but it is not enough. Please try to formulate in round sentences, it should be understable easily (also for people with very different native language or with little knowledge on the topic).

                    – peterh
                    Aug 2 '17 at 0:15


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Server Fault!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f733207%2fkeepalived-master-cannot-reclaim-virtual-ip-after-recovered%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Фонтен-ла-Гаярд Зміст Демографія | Економіка | Посилання |...

                    Список ссавців Італії Природоохоронні статуси | Список |...

                    Маріан Котлеба Зміст Життєпис | Політичні погляди |...