<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:39:16 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-10910] LBUG with &quot;lfs migrate -c 1 &lt;domfile&gt;&quot;</title>
                <link>https://jira.whamcloud.com/browse/LU-10910</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I created a test DoM file with:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;# mkdir /mnt/testfs/dom
# lfs setstripe -E 64k -L mdt -E 64M -c 1 -E -1 -c -1 /mnt/testfs/dom/
# dd if=/dev/zero of=/mnt/testfs/dom/64M bs=1M count=64
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This seemed to work properly (&lt;tt&gt;lfs getstripe&lt;/tt&gt; returned all the right info.  I then tried to see what would happen if I used &quot;&lt;tt&gt;lfs migrate -c 1 /mnt/testfs/dom/64M&lt;/tt&gt;&quot; to migrate it to a regular file layout.  This produced the following output on the console:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;[1460451.829926] Lustre: lt-lfs: using old ioctl(LL_IOC_LOV_GETSTRIPE) on [0x200
000402:0x4e27:0x0], use llapi_layout_get_by_path()
[1460451.843549] LustreError: 14997:0:(ldlm_resource.c:1688:ldlm_resource_dump()
) --- Resource: [0x200000402:0x4e26:0x0].0x0 (ffff8800468a29c0) refcount = 4
[1460451.843611] LustreError: 14997:0:(ldlm_resource.c:1691:ldlm_resource_dump()
) Granted locks (in reverse order):
[1460451.843663] LustreError: 14997:0:(ldlm_resource.c:1694:ldlm_resource_dump()
) ### ### ns: testfs-MDT0000-mdc-ffff880007524000 lock: ffff88003e807a80/0xdc6f0
65983eec99d lrc: 1/0,0 mode: PR/PR res: [0x200000402:0x4e26:0x0].0x0 bits 0x1b/0
x0 rrc: 5 type: IBT flags: 0x20000000000 nid: local remote: 0xdc6f065983eec9ab e
xpref: -99 pid: 12539 timeout: 0 lvb_type: 3
[1460451.843720] Pid: 14997, comm: ptlrpcd_01_01
[1460451.843721] 
Call Trace:
[1460451.843757]  [&amp;lt;ffffffffc051e7ae&amp;gt;] libcfs_call_trace+0x4e/0x60 [libcfs]
[1460451.843761]  [&amp;lt;ffffffffc051e7e6&amp;gt;] libcfs_debug_dumpstack+0x26/0x30 [libcfs]
[1460451.843778]  [&amp;lt;ffffffffc0bb0c2b&amp;gt;] mdc_get_lock_handle+0xcb/0xe0 [mdc]
[1460451.843782]  [&amp;lt;ffffffffc0bb1060&amp;gt;] mdc_req_attr_set+0x90/0x170 [mdc]
[1460451.843854]  [&amp;lt;ffffffffc06cfae0&amp;gt;] cl_req_attr_set+0x60/0x150 [obdclass]
[1460451.843874]  [&amp;lt;ffffffffc0b22283&amp;gt;] osc_build_rpc+0x483/0x1070 [osc]
[1460451.843885]  [&amp;lt;ffffffffc0b3c6f0&amp;gt;] osc_io_unplug0+0xb50/0x1920 [osc]
[1460451.843891]  [&amp;lt;ffffffffc0b177d3&amp;gt;] brw_queue_work+0x33/0xd0 [osc]
[1460451.843988]  [&amp;lt;ffffffffc08efa47&amp;gt;] work_interpreter+0x37/0xf0 [ptlrpc]
[1460451.844018]  [&amp;lt;ffffffffc08ec95e&amp;gt;] ptlrpc_check_set.part.22+0x47e/0x1da0 [ptlrpc]
[1460451.844058]  [&amp;lt;ffffffffc08ee2db&amp;gt;] ptlrpc_check_set+0x5b/0xe0 [ptlrpc]
[1460451.844090]  [&amp;lt;ffffffffc091b15b&amp;gt;] ptlrpcd_check+0x4ab/0x590 [ptlrpc]
[1460451.844119]  [&amp;lt;ffffffffc091b549&amp;gt;] ptlrpcd+0x309/0x550 [ptlrpc]
[1460451.844151]  [&amp;lt;ffffffff810b099f&amp;gt;] kthread+0xcf/0xe0
[1460451.844167] LustreError: 14997:0:(mdc_dev.c:1345:mdc_req_attr_set()) page@ffff88005fb9da00[2 ffff880115c481c0 3 2           (null)]

[1460451.844222] LustreError: 14997:0:(mdc_dev.c:1345:mdc_req_attr_set()) vvp-page@ffff88005fb9da50(0:0) vm@ffffea0001cbbc80 1fffff0008006c 3:1 0 34275811373 lru

[1460451.844276] LustreError: 14997:0:(mdc_dev.c:1345:mdc_req_attr_set()) lov-page@ffff88005fb9da90, comp index: 0, gen: 5

[1460451.844332] LustreError: 14997:0:(mdc_dev.c:1345:mdc_req_attr_set()) osc-page@ffff88005fb9dac8 0: 1&amp;lt; 0x845fed 257 0 + + &amp;gt; 2&amp;lt; 0 0 4096 0x7 0x109 |           (null) ffff880043b384d0 ffff880051564c80 &amp;gt; 3&amp;lt; 1 0 0 &amp;gt; 4&amp;lt; 0 0 8 4202496 - | - - - + &amp;gt; 5&amp;lt; - - - + | 0 - | 0 - -&amp;gt;
[1460451.844416] LustreError: 14997:0:(mdc_dev.c:1345:mdc_req_attr_set()) end page@ffff88005fb9da00
[1460451.844484] LustreError: 14997:0:(mdc_dev.c:1345:mdc_req_attr_set()) uncovered page!
[1460451.844535] LustreError: 14997:0:(mdc_dev.c:1346:mdc_req_attr_set()) LBUG
[1460451.844581] Pid: 14997, comm: ptlrpcd_01_01
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;For the short term, &quot;lfs migrate&quot; should just return &lt;tt&gt;-EOPNOTSUPP&lt;/tt&gt; from the kernel if called on a file with an &lt;tt&gt;mdt&lt;/tt&gt; component.  That way, &lt;tt&gt;lfs_migrate&lt;/tt&gt; (the script version) can fall back to &quot;copy and rename&quot; to do the migration in userspace, which will work at the expense of changing the inode number.&lt;/p&gt;</description>
                <environment></environment>
        <key id="51798">LU-10910</key>
            <summary>LBUG with &quot;lfs migrate -c 1 &lt;domfile&gt;&quot;</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="tappro">Mikhail Pershin</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Thu, 12 Apr 2018 22:09:01 +0000</created>
                <updated>Mon, 24 Sep 2018 14:45:40 +0000</updated>
                            <resolved>Sun, 6 May 2018 04:15:46 +0000</resolved>
                                    <version>Lustre 2.11.0</version>
                                    <fixVersion>Lustre 2.12.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="226223" author="gerrit" created="Wed, 18 Apr 2018 07:19:59 +0000"  >&lt;p&gt;Mike Pershin (mike.pershin@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/32044&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32044&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10910&quot; title=&quot;LBUG with &amp;quot;lfs migrate -c 1 &amp;lt;domfile&amp;gt;&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10910&quot;&gt;&lt;del&gt;LU-10910&lt;/del&gt;&lt;/a&gt; mdd: deny layout swap for DoM file&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: c8b9fb3d6171b13e98cdedc215b6c3a1bd87a1e3&lt;/p&gt;</comment>
                            <comment id="227365" author="gerrit" created="Sun, 6 May 2018 03:39:51 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/32044/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32044/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10910&quot; title=&quot;LBUG with &amp;quot;lfs migrate -c 1 &amp;lt;domfile&amp;gt;&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10910&quot;&gt;&lt;del&gt;LU-10910&lt;/del&gt;&lt;/a&gt; mdd: deny layout swap for DoM file&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 51c11d7cfaffea68cc527f3001af1d11b3967c15&lt;/p&gt;</comment>
                            <comment id="227389" author="pjones" created="Sun, 6 May 2018 04:15:46 +0000"  >&lt;p&gt;Landed for 2.12&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="42343">LU-10177</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="53400">LU-11421</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hzzvrr:</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>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

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