Adding secondary via rs.add on MongoDB Announcing the arrival of Valued Associate #679: Cesar...

Do I really need recursive chmod to restrict access to a folder?

What do you call a plan that's an alternative plan in case your initial plan fails?

Are my PIs rude or am I just being too sensitive?

Why was the term "discrete" used in discrete logarithm?

What's the difference between `auto x = vector<int>()` and `vector<int> x`?

Models of set theory where not every set can be linearly ordered

Is the Standard Deduction better than Itemized when both are the same amount?

Why is "Consequences inflicted." not a sentence?

Check which numbers satisfy the condition [A*B*C = A! + B! + C!]

What would be the ideal power source for a cybernetic eye?

When is phishing education going too far?

If Jon Snow became King of the Seven Kingdoms what would his regnal number be?

Why is black pepper both grey and black?

What's the purpose of writing one's academic bio in 3rd person?

Should I discuss the type of campaign with my players?

Storing hydrofluoric acid before the invention of plastics

Why don't the Weasley twins use magic outside of school if the Trace can only find the location of spells cast?

Did Xerox really develop the first LAN?

How much radiation do nuclear physics experiments expose researchers to nowadays?

Dominant seventh chord in the major scale contains diminished triad of the seventh?

List *all* the tuples!

Is it true that "carbohydrates are of no use for the basal metabolic need"?

When to stop saving and start investing?

What happens to sewage if there is no river near by?



Adding secondary via rs.add on MongoDB



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)mongo replicated shard member not able to recover, stuck in STARTUP2 modeMongoDB secondary heartbeat hangsAdding wiredtiger nodes to a non-wiredtiger replica setSteps to setup mongo replica setMongoDB - Set master after re-initationmongodb read data from secondary hidden replicasetMongoDB Replication - “Failed with No route to host”Replica Set Question - one primary instance with two secondary instancesMongodb secondary going down





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I have a master and slave on Linux (centOS 7). The rs.initiate(cfg) was done, but its shows the below output when trying to add secondary via rs.add:





genienational:PRIMARY> rs.add("localhost.localdomain:27017")
{
"ok" : 0,
"errmsg" : "The hosts test.appraisergenie.com:27017 a
nd localhost.localdomain:27017 all map to this node new co
nfiguration version 2 for replica set genienational",
"code": 103
}
genienational:PRIMARY> use local
switched to db local



MongoDB



How do I resolve?



Version: The master is on Enterprise. I think 3.2 and the slave is on 2.6.










share|improve this question
















bumped to the homepage by Community 6 mins ago


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
















  • are these all mongo running on same machine? If yes, what are the different ports they are running on?

    – Astro
    Apr 21 '16 at 5:07











  • I guess adding same port of same machine you are using..

    – Gagan Sidhu
    Apr 21 '16 at 10:01




















0















I have a master and slave on Linux (centOS 7). The rs.initiate(cfg) was done, but its shows the below output when trying to add secondary via rs.add:





genienational:PRIMARY> rs.add("localhost.localdomain:27017")
{
"ok" : 0,
"errmsg" : "The hosts test.appraisergenie.com:27017 a
nd localhost.localdomain:27017 all map to this node new co
nfiguration version 2 for replica set genienational",
"code": 103
}
genienational:PRIMARY> use local
switched to db local



MongoDB



How do I resolve?



Version: The master is on Enterprise. I think 3.2 and the slave is on 2.6.










share|improve this question
















bumped to the homepage by Community 6 mins ago


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
















  • are these all mongo running on same machine? If yes, what are the different ports they are running on?

    – Astro
    Apr 21 '16 at 5:07











  • I guess adding same port of same machine you are using..

    – Gagan Sidhu
    Apr 21 '16 at 10:01
















0












0








0








I have a master and slave on Linux (centOS 7). The rs.initiate(cfg) was done, but its shows the below output when trying to add secondary via rs.add:





genienational:PRIMARY> rs.add("localhost.localdomain:27017")
{
"ok" : 0,
"errmsg" : "The hosts test.appraisergenie.com:27017 a
nd localhost.localdomain:27017 all map to this node new co
nfiguration version 2 for replica set genienational",
"code": 103
}
genienational:PRIMARY> use local
switched to db local



MongoDB



How do I resolve?



Version: The master is on Enterprise. I think 3.2 and the slave is on 2.6.










share|improve this question
















I have a master and slave on Linux (centOS 7). The rs.initiate(cfg) was done, but its shows the below output when trying to add secondary via rs.add:





genienational:PRIMARY> rs.add("localhost.localdomain:27017")
{
"ok" : 0,
"errmsg" : "The hosts test.appraisergenie.com:27017 a
nd localhost.localdomain:27017 all map to this node new co
nfiguration version 2 for replica set genienational",
"code": 103
}
genienational:PRIMARY> use local
switched to db local



MongoDB



How do I resolve?



Version: The master is on Enterprise. I think 3.2 and the slave is on 2.6.







mongodb






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 27 '17 at 16:55









Paul White

54.2k14288461




54.2k14288461










asked Apr 19 '16 at 22:17









Shritam BhowmickShritam Bhowmick

1012




1012





bumped to the homepage by Community 6 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 6 mins ago


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















  • are these all mongo running on same machine? If yes, what are the different ports they are running on?

    – Astro
    Apr 21 '16 at 5:07











  • I guess adding same port of same machine you are using..

    – Gagan Sidhu
    Apr 21 '16 at 10:01





















  • are these all mongo running on same machine? If yes, what are the different ports they are running on?

    – Astro
    Apr 21 '16 at 5:07











  • I guess adding same port of same machine you are using..

    – Gagan Sidhu
    Apr 21 '16 at 10:01



















are these all mongo running on same machine? If yes, what are the different ports they are running on?

– Astro
Apr 21 '16 at 5:07





are these all mongo running on same machine? If yes, what are the different ports they are running on?

– Astro
Apr 21 '16 at 5:07













I guess adding same port of same machine you are using..

– Gagan Sidhu
Apr 21 '16 at 10:01







I guess adding same port of same machine you are using..

– Gagan Sidhu
Apr 21 '16 at 10:01












1 Answer
1






active

oldest

votes


















0














The error message in your screenshot indicates you are trying to add identical members to your replica set under different names:



"The hosts x:27017 and y:27017 all map to this node in new configuration".


If you want to configure multiple replica set members on a single machine for testing purposes, all members need to use different ports and/or IP addresses.




Version: The master is on Enterprise. I think 3.2 and the slave is on 2.6.




Mixed-version replica sets are only supported for consecutive major versions (i.e. 3.2 and 3.0) and expected to be used transiently during a rolling upgrade to a new major version of MongoDB. A mixed replica set with 3.2 and 2.6 members is definitely not supported.






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "182"
    };
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2fdba.stackexchange.com%2fquestions%2f135843%2fadding-secondary-via-rs-add-on-mongodb%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The error message in your screenshot indicates you are trying to add identical members to your replica set under different names:



    "The hosts x:27017 and y:27017 all map to this node in new configuration".


    If you want to configure multiple replica set members on a single machine for testing purposes, all members need to use different ports and/or IP addresses.




    Version: The master is on Enterprise. I think 3.2 and the slave is on 2.6.




    Mixed-version replica sets are only supported for consecutive major versions (i.e. 3.2 and 3.0) and expected to be used transiently during a rolling upgrade to a new major version of MongoDB. A mixed replica set with 3.2 and 2.6 members is definitely not supported.






    share|improve this answer




























      0














      The error message in your screenshot indicates you are trying to add identical members to your replica set under different names:



      "The hosts x:27017 and y:27017 all map to this node in new configuration".


      If you want to configure multiple replica set members on a single machine for testing purposes, all members need to use different ports and/or IP addresses.




      Version: The master is on Enterprise. I think 3.2 and the slave is on 2.6.




      Mixed-version replica sets are only supported for consecutive major versions (i.e. 3.2 and 3.0) and expected to be used transiently during a rolling upgrade to a new major version of MongoDB. A mixed replica set with 3.2 and 2.6 members is definitely not supported.






      share|improve this answer


























        0












        0








        0







        The error message in your screenshot indicates you are trying to add identical members to your replica set under different names:



        "The hosts x:27017 and y:27017 all map to this node in new configuration".


        If you want to configure multiple replica set members on a single machine for testing purposes, all members need to use different ports and/or IP addresses.




        Version: The master is on Enterprise. I think 3.2 and the slave is on 2.6.




        Mixed-version replica sets are only supported for consecutive major versions (i.e. 3.2 and 3.0) and expected to be used transiently during a rolling upgrade to a new major version of MongoDB. A mixed replica set with 3.2 and 2.6 members is definitely not supported.






        share|improve this answer













        The error message in your screenshot indicates you are trying to add identical members to your replica set under different names:



        "The hosts x:27017 and y:27017 all map to this node in new configuration".


        If you want to configure multiple replica set members on a single machine for testing purposes, all members need to use different ports and/or IP addresses.




        Version: The master is on Enterprise. I think 3.2 and the slave is on 2.6.




        Mixed-version replica sets are only supported for consecutive major versions (i.e. 3.2 and 3.0) and expected to be used transiently during a rolling upgrade to a new major version of MongoDB. A mixed replica set with 3.2 and 2.6 members is definitely not supported.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 11 '16 at 19:27









        StennieStennie

        6,82911628




        6,82911628






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Database Administrators Stack Exchange!


            • 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%2fdba.stackexchange.com%2fquestions%2f135843%2fadding-secondary-via-rs-add-on-mongodb%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

            ORA-01691 (unable to extend lob segment) even though my tablespace has AUTOEXTEND onORA-01692: unable to...

            Always On Availability groups resolving state after failover - Remote harden of transaction...

            Circunscripción electoral de Guipúzcoa Referencias Menú de navegaciónLas claves del sistema electoral en...