<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:03:06 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-3452] From single node to replica set without restart... possible?</title>
                <link>https://jira.mongodb.org/browse/SERVER-3452</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I have a single node running MongoDB 1.6.1 in production, and I&apos;d like to create and then add it to a replica set. I&apos;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&apos;d like to take is:&lt;/p&gt;

&lt;p&gt;1. Create an arbiter node and add it to the replica set.&lt;br/&gt;
2. Create a secondary node and add it to the replica set.&lt;br/&gt;
3. Add the original production node to the replica set.&lt;br/&gt;
4. Initiate the replica set on the original production node.&lt;/p&gt;

&lt;p&gt;The problem I&apos;m running into is that I don&apos;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?&lt;/p&gt;</description>
                <environment>Linux version 2.6.18-164.el5 (&lt;a href=&apos;mailto:mockbuild@builder10.centos.org&apos;&gt;mockbuild@builder10.centos.org&lt;/a&gt;) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Thu Sep 3 03:28:30 EDT 2009</environment>
        <key id="19908">SERVER-3452</key>
            <summary>From single node to replica set without restart... possible?</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="bwkonash">Brian Konash</reporter>
                        <labels>
                            <label>replication</label>
                    </labels>
                <created>Wed, 20 Jul 2011 12:52:44 +0000</created>
                <updated>Mon, 29 Aug 2011 15:56:33 +0000</updated>
                            <resolved>Wed, 20 Jul 2011 12:57:26 +0000</resolved>
                                    <version>1.6.1</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="43551" author="bwkonash" created="Wed, 20 Jul 2011 14:39:43 +0000"  >&lt;p&gt;Here&apos;s my revised plan with mongodb1 and mongodb2 as database nodes and mongodb3 as the arbiter (all running on port 27017):&lt;/p&gt;

&lt;p&gt;1. Restart MongoDB on mongodb1, adding &quot;--replSet my-rs&quot; parameter to add it to a new replica set.&lt;br/&gt;
2. Run rs.initiate(); on mongodb1 to initiate the data into the replica set, making mongodb1 the master node.&lt;br/&gt;
3. Run rs.status(); on mongodb1 until it shows that the initiation is complete.&lt;br/&gt;
4. Start MongoDB on mongodb2 with &quot;--replSet my-rs&quot; parameter to add it to the replica set.&lt;br/&gt;
5. Run rs.add({_id:1, host:&quot;mongodb2:27017&quot;}); on mongodb1 so that it is aware of the new node.&lt;br/&gt;
6. Run rs.status(); on mongodb1 until it shows that mongodb2 has the replicated data and is operational.&lt;br/&gt;
7. Start MongoDB on mongodb3, adding &quot;--replSet my-rs --oplogSize 8&quot; parameters to add the arbiter to the replica set.&lt;br/&gt;
8. Run rs.add({_id:2, host:&quot;mongodb3:27017&quot;, arbiterOnly:true}) on mongodb1 so that it is aware of the arbiter.&lt;br/&gt;
9. Run rs.status(); on mongodb1 until it shows that the the arbiter is up.&lt;br/&gt;
10. Go to the bar!&lt;/p&gt;

&lt;p&gt;Does anything stand out as being incorrect about this?&lt;/p&gt;</comment>
                            <comment id="43509" author="bwkonash" created="Wed, 20 Jul 2011 12:59:44 +0000"  >&lt;p&gt;Awesome. Thanks!&lt;/p&gt;</comment>
                            <comment id="43508" author="scotthernandez" created="Wed, 20 Jul 2011 12:57:18 +0000"  >&lt;p&gt;You must restart the single server to add --replSet and build the oplog (which could take a while depending on how large you make it, and who FS you have).&lt;/p&gt;

&lt;p&gt;You should restart the primary (existing) node first to create the replicaset, then add the arbiter and secondary.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 20 Jul 2011 12:57:18 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 31 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 31 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>bwkonash</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrovh3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrg4on:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7663</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hsnz87:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>