<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:08:46 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-5400] Repair fails when using --repairpath</title>
                <link>https://jira.mongodb.org/browse/SERVER-5400</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I am trying to repair the dbPath using the following command line:&lt;br/&gt;
/opt/dats/mongodb/latest/bin/mongod --repair --repairpath /export/dsetdata1/hkdatap01 --dbpath /export/dsetdata2/HKDATAT05.daiwaasia.local/mongoData --quota --quotaFiles 100 &amp;gt; repair.log&lt;/p&gt;

&lt;p&gt;The repair fails. Attached the repair.log which contain the exception.&lt;/p&gt;

&lt;p&gt;How to use repair path correctly so that I can successfully use a directory other than dbPath for the temporary files?&lt;/p&gt;</description>
                <environment></environment>
        <key id="34658">SERVER-5400</key>
            <summary>Repair fails when using --repairpath</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="3">Duplicate</resolution>
                                        <assignee username="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="vinith.philipose@hk.daiwacm.com">Vinith Philipose</reporter>
                        <labels>
                    </labels>
                <created>Mon, 26 Mar 2012 03:15:14 +0000</created>
                <updated>Wed, 15 Aug 2012 14:04:20 +0000</updated>
                            <resolved>Thu, 17 May 2012 15:24:15 +0000</resolved>
                                    <version>2.0.1</version>
                                                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="103437" author="vinith.philipose@hk.daiwacm.com" created="Mon, 26 Mar 2012 05:31:25 +0000"  >&lt;p&gt;Actually I am using repair to free up disk, but since our mongo server instance runs already with journalling on therefore currently we will have to temporarily move the journal folder.&lt;/p&gt;

&lt;p&gt;Please let us know which future version gets this issue fixed.&lt;/p&gt;</comment>
                            <comment id="103436" author="eliot" created="Mon, 26 Mar 2012 05:24:03 +0000"  >&lt;p&gt;It looks like a bug in the interaction of --repair with --journal.&lt;/p&gt;

&lt;p&gt;Note: using the journal while doing a repair is not helpful at all.&lt;br/&gt;
The original data files are never written to, and so a journal isn&apos;t needed there.&lt;br/&gt;
If the repair fails, redoing will be faster than the journal.&lt;/p&gt;

&lt;p&gt;So perhaps --repair should just be made not to use the journal at all...&lt;/p&gt;</comment>
                            <comment id="103433" author="vinith.philipose@hk.daiwacm.com" created="Mon, 26 Mar 2012 05:19:23 +0000"  >&lt;p&gt;It seems after the removal of journal folder it works. Why can&apos;t mongod repair handle the journal folder (which can be very useful for repairing.recovery)?&lt;/p&gt;</comment>
                            <comment id="103422" author="eliot" created="Mon, 26 Mar 2012 03:54:57 +0000"  >&lt;p&gt;Can you:&lt;/p&gt;

&lt;p&gt;start mongod normally.&lt;br/&gt;
shut down cleanly&lt;/p&gt;

&lt;p&gt;remove journal directory&lt;/p&gt;

&lt;p&gt;run --repair with --nojournal&lt;/p&gt;</comment>
                            <comment id="103420" author="vinith.philipose@hk.daiwacm.com" created="Mon, 26 Mar 2012 03:52:13 +0000"  >&lt;p&gt;Mon Mar 26 11:51:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; MongoDB starting : pid=6018 port=27017 dbpath=/export/dsetdata2/HKDATAT05.daiwaasia.local/mongoData 64-bit host=HKDATAP01.daiwaasia.local&lt;br/&gt;
Mon Mar 26 11:51:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt;&lt;br/&gt;
Mon Mar 26 11:51:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; ** WARNING: You are running on a NUMA machine.&lt;br/&gt;
Mon Mar 26 11:51:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; **          We suggest launching mongod like this to avoid performance problems:&lt;br/&gt;
Mon Mar 26 11:51:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; **              numactl --interleave=all mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;other options&amp;#93;&lt;/span&gt;&lt;br/&gt;
Mon Mar 26 11:51:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt;&lt;br/&gt;
Mon Mar 26 11:51:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; db version v2.0.1, pdfile version 4.5&lt;br/&gt;
Mon Mar 26 11:51:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; git version: 3a5cf0e2134a830d38d2d1aae7e88cac31bdd684&lt;br/&gt;
Mon Mar 26 11:51:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; build info: Linux bs-linux64.10gen.cc 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41&lt;br/&gt;
Mon Mar 26 11:51:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; options: &lt;/p&gt;
{ dbpath: &quot;/export/dsetdata2/HKDATAT05.daiwaasia.local/mongoData&quot;, nojournal: true, repair: true, repairpath: &quot;/export/dsetdata1/hkdatap01&quot; }
&lt;p&gt;**************&lt;br/&gt;
Error: journal files are present in journal directory, yet starting without --journal enabled.&lt;br/&gt;
It is recommended that you start with journaling enabled so that recovery may occur.&lt;br/&gt;
**************&lt;br/&gt;
Mon Mar 26 11:51:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; exception in initAndListen: 13597 can&apos;t start without --journal enabled when journal/ files are present, terminating&lt;br/&gt;
Mon Mar 26 11:51:23 dbexit:&lt;br/&gt;
Mon Mar 26 11:51:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close listening sockets...&lt;br/&gt;
Mon Mar 26 11:51:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to flush diaglog...&lt;br/&gt;
Mon Mar 26 11:51:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close sockets...&lt;br/&gt;
Mon Mar 26 11:51:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: waiting for fs preallocator...&lt;br/&gt;
Mon Mar 26 11:51:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: closing all files...&lt;br/&gt;
Mon Mar 26 11:51:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; closeAllFiles() finished&lt;br/&gt;
Mon Mar 26 11:51:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: removing fs lock...&lt;br/&gt;
Mon Mar 26 11:51:23 dbexit: really exiting now&lt;/p&gt;</comment>
                            <comment id="103418" author="eliot" created="Mon, 26 Mar 2012 03:45:08 +0000"  >&lt;p&gt;Can you try running with --nojournal?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="31390">SERVER-5056</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="15538" name="repair.log" size="8416" author="vinith.philipose@hk.daiwacm.com" created="Mon, 26 Mar 2012 03:15:14 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 26 Mar 2012 03:45:08 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 47 weeks, 2 days 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>
                            11 years, 47 weeks, 2 days 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>eliot</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
            <customfieldvalue>vinith.philipose@hk.daiwacm.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hro8hb:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11591</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|hsrpz3:</customfieldvalue>

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