Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3452

From single node to replica set without restart... possible?

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 1.6.1
    • Replication
    • Linux version 2.6.18-164.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Thu Sep 3 03:28:30 EDT 2009

    Description

      I have a single node running MongoDB 1.6.1 in production, and I'd like to create and then add it to a replica set. I'm wondering what the best way to do this is, and if I can do it without any downtime on the original production node. The approach I'd like to take is:

      1. Create an arbiter node and add it to the replica set.
      2. Create a secondary node and add it to the replica set.
      3. Add the original production node to the replica set.
      4. Initiate the replica set on the original production node.

      The problem I'm running into is that I don't seem to be able to figure out how to add the original production node to the replica set without restarting it and adding the --replSet option on startup. Is there any way to do this without any downtime on the original production node?

      Attachments

        Activity

          People

            Unassigned Unassigned
            bwkonash Brian Konash
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: