<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:18:23 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-8767] journal files and lvm snapshots</title>
                <link>https://jira.mongodb.org/browse/SERVER-8767</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I am in the process of implementing and automating lvm snapshot backups and restores. New to LVM and filesystem backups for databases. &lt;/p&gt;

&lt;p&gt;After the snapshot I am archiving each database into a separate gzip file. I need to have the option of restoring any one database at a time. &lt;/p&gt;

&lt;p&gt;My question is about the journaling piece. We do have it enabled, so according to your docs I don&#8217;t have to lock the server. Although I am assuming I would need to grab those journal files. &lt;/p&gt;

&lt;p&gt;On the restore:&lt;/p&gt;

&lt;p&gt;1.	If I restore one database with the journal files as well. &lt;br/&gt;
a.	Will this roll forward transactions on a database currently on the server NOT be restoring but with the same name from where the backup came from?&lt;br/&gt;
b.	What happens to the CURRENT transactions on the server I am restoring to? Gone right? Unless you fsync and wait before the restore? &lt;br/&gt;
c.	Is it ok to restore to a server where transactions in the journal are for a database not on the server I am restoring to? &lt;br/&gt;
d.	Best practice&amp;gt; Should we be shutting down the server for a restore or can you just lock the server and copy the files over? On the shutdown, will the transaction in the journal roll forward over the newly restored database when the service is started?&lt;/p&gt;

&lt;p&gt;I don&#8217;t have a problem just locking the server if this would get around all these issues. On both the backup and restore? Do I have to wait 60 seconds? I am fine with this as well its a hidden secondary and if it&#8217;s always 60 seconds it&#8217;s no problem. &lt;/p&gt;

&lt;p&gt;Thanks! &lt;/p&gt;</description>
                <environment>amazon linux replica set hidden secondary</environment>
        <key id="66689">SERVER-8767</key>
            <summary>journal files and lvm snapshots</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="jmathis@alteryx.com">Jason Mathis</reporter>
                        <labels>
                    </labels>
                <created>Wed, 27 Feb 2013 18:51:09 +0000</created>
                <updated>Fri, 8 Mar 2013 15:56:05 +0000</updated>
                            <resolved>Thu, 28 Feb 2013 07:16:48 +0000</resolved>
                                    <version>2.2.3</version>
                                                    <component>Admin</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="281727" author="dan@10gen.com" created="Tue, 5 Mar 2013 13:40:35 +0000"  >&lt;p&gt;fsync is a synchronous command by default.  see doc: &lt;a href=&quot;http://docs.mongodb.org/manual/reference/command/fsync/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/reference/command/fsync/&lt;/a&gt;.  It&apos;s not possible to restore into a different db with this method.  You would have to use mongodump/mongorestore to restore into a different db.&lt;/p&gt;</comment>
                            <comment id="281214" author="jmathis@alteryx.com" created="Mon, 4 Mar 2013 21:11:04 +0000"  >&lt;p&gt;Also is it possible to restore into another database using this method? I am assuming not. &lt;/p&gt;</comment>
                            <comment id="279398" author="jmathis@alteryx.com" created="Fri, 1 Mar 2013 21:45:34 +0000"  >&lt;p&gt;Ok, sounds good. fsync it is. &lt;/p&gt;

&lt;p&gt;Should I be waiting for any specific time after the fsync? &lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="277853" author="eliot" created="Thu, 28 Feb 2013 07:16:34 +0000"  >&lt;p&gt;You are correct in thinking an lvm snapshot of a running system will make restoring a single database very hard.&lt;/p&gt;

&lt;p&gt;I would do an fsync+lock on a secondary, and then you can gzip each database safely.&lt;/p&gt;

&lt;p&gt;For a restore, you would either have to shutdown, and replace the files, or drop the database and import.&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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 28 Feb 2013 07:16:34 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 50 weeks, 1 day 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>
                            10 years, 50 weeks, 1 day 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>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>jmathis@alteryx.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrn40n:</customfieldvalue>

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

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

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