<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:14:36 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>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-15001] improve recovery of interrupted directory migrate</title>
                <link>https://jira.whamcloud.com/browse/LU-15001</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Currently, if a directory migration has been interrupted (e.g. MDS crash), nothing is done to resume the migration operation.  This is precautionary, in case there was something with the migration operation itself that caused the problem.&lt;/p&gt;

&lt;p&gt;However, to resume the migration operation, the exact same options for &quot;&lt;tt&gt;lfs migrate -m&lt;/tt&gt;&quot; need to be specified by the user in order to resume/finish the migration.  It would be much more convenient in this case if the migration could be resumed &lt;em&gt;without&lt;/em&gt; having to specify the same options, and the MDS would just &quot;know&quot; these options if asked to migrate the directory again.  That simplifies the user handling, and (AFAICS) does not add any risk since the migration request from the user will fail if the same options are &lt;b&gt;not&lt;/b&gt; specified.&lt;/p&gt;</description>
                <environment></environment>
        <key id="66010">LU-15001</key>
            <summary>improve recovery of interrupted directory migrate</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Sat, 11 Sep 2021 04:42:14 +0000</created>
                <updated>Mon, 4 Jul 2022 23:37:17 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="314767" author="adilger" created="Tue, 5 Oct 2021 21:25:06 +0000"  >&lt;p&gt;Is there any way to &lt;b&gt;stop&lt;/b&gt; migration of a directory tree once it has started?  Currently, migration runs as a thread on the MDS, but I&apos;m not aware if there is any way to safely stop the migration once it has been started.&lt;/p&gt;

&lt;p&gt;It would also be desirable (possibly together with &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14975&quot; title=&quot;DNE3: directory migration in non-recursive mode&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14975&quot;&gt;&lt;del&gt;LU-14975&lt;/del&gt;&lt;/a&gt;) to allow completing the interrupted migration on a single directory, but not continue to migrate the rest of the directory tree.&lt;/p&gt;

&lt;p&gt;In several cases I&apos;ve seen, users want to &quot;repair&quot; the partially-migrated directory, but not continue to migrate the rest of the directory tree (often because the initial migration parameters are bad and they want to change/stop the migration).&lt;/p&gt;</comment>
                            <comment id="315013" author="laisiyao" created="Fri, 8 Oct 2021 11:59:49 +0000"  >&lt;p&gt;Directory migration by command &quot;lfs migrate -m&quot; will migrate sub files one by one from client, which is different from that of directory restripe and directory auto-split.&lt;/p&gt;

&lt;p&gt;Your proposal looks reasonable, but how to &quot;repair&quot; the partially migrated directory? Add an option for &quot;lfs migrate -m&quot;? or let server to continue the migration of the rest of the directory? The latter may fail because the error that caused the failure may not be fixed yet.&lt;/p&gt;</comment>
                            <comment id="315147" author="adilger" created="Sun, 10 Oct 2021 05:57:54 +0000"  >&lt;p&gt;If letting the MDS continue the migration &lt;b&gt;for that directory&lt;/b&gt; is easier, then that is fine with me. If it doesn&apos;t happen automatically, then there is less concern if there is a problem with the migration itself.  I think in most cases of interrupted migration it is because the MDS rebooted for another reason, especially because recursive migrate of a large directory tree (possibly the whole filesystem) may take a very long time, and there is (AFAIK) no easy way to monitor if it is finished or how close it is to being finished.&lt;/p&gt;

&lt;p&gt;I think the most important part is to make it easy to finish the migration (not require users to specify the options that the MDS already knows). &lt;/p&gt;

&lt;p&gt;Separately, it probably makes sense for the migration to stop itself when it is close to doing something bad (eg. target MDT is almost full), and refuse to do &quot;bad&quot; migration requests (eg. migrate a whole directory tree to be striped), but those should be separate patches. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="58964">LU-13492</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="65865">LU-14975</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="64446">LU-14719</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="65865">LU-14975</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="61980">LU-14211</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="54286">LU-11776</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="71010">LU-15990</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i02407:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>