<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:58:50 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-6278] lfsck of upgraded 1.8 filesystem does not add linkEA</title>
                <link>https://jira.whamcloud.com/browse/LU-6278</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The filesystem was formatted with 1.x, so has many inodes with IGIF FIDs.  OI Scrub was run under 2.4.3 to create the OI files and &lt;tt&gt;lma&lt;/tt&gt; xattrs on all files.&lt;/p&gt;

&lt;p&gt;Running &lt;tt&gt;lctl lfsck_start -M myth-MDT0000 -t namespace&lt;/tt&gt; on the MDS (even multiple times) with 2.5.3+ does not appear to create the &lt;tt&gt;link&lt;/tt&gt; xattrs on directories, even though it has created &lt;tt&gt;link&lt;/tt&gt; xattrs on the regular files.  This means that &lt;tt&gt;lfs fid2path&lt;/tt&gt; does not work properly.&lt;/p&gt;

&lt;p&gt;There appears to be some errors that LFSCK hits (see &lt;tt&gt;first_failure_position&lt;/tt&gt; below), but it does not report them to the log, so there is no way to know what is going wrong.&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;# lctl get_param mdd.*.lfsck_namespace
mdd.myth-MDT0000.lfsck_namespace=
name: lfsck_namespace
magic: 0xa0629d03
version: 2
status: completed
flags: scanned-once,inconsistent
param: (null)
time_since_last_completed: 233 seconds
time_since_latest_start: 349 seconds
time_since_last_checkpoint: 233 seconds
latest_start_position: 13, N/A, N/A
last_checkpoint_position: 2621440, N/A, N/A
first_failure_position: 32769, [0x8001:0x4145293e:0x0], 1051280482039016589
checked_phase1: 3104290
checked_phase2: 0
updated_phase1: 912977
updated_phase2: 0
failed_phase1: 0
failed_phase2: 0
dirs: 84295
M-linked: 0
nlinks_repaired: 0
lost_found: 0
success_count: 12
run_time_phase1: 116 seconds
run_time_phase2: 0 seconds
average_speed_phase1: 26761 items/sec
average_speed_phase2: 0 objs/sec
real-time_speed_phase1: N/A
real-time_speed_phase2: N/A
current_position: N/A
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;There are only useless log entries from OI Scrub instead:&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;00000004:10000000:1.0:1424838545.669434:0:2326:0:(osd_scrub.c:1240:osd_otable_it_preload()) OSD pre-loaded: max = 2621440, preload = 10470, rc = 0
00000004:10000000:1.0:1424838545.669464:0:2326:0:(osd_scrub.c:1240:osd_otable_it_preload()) OSD pre-loaded: max = 2621440, preload = 10471, rc = 0
00000004:10000000:1.0:1424838545.669501:0:2326:0:(osd_scrub.c:1240:osd_otable_it_preload()) OSD pre-loaded: max = 2621440, preload = 10474, rc = 0
00000004:10000000:1.0:1424838545.669773:0:2326:0:(osd_scrub.c:1240:osd_otable_it_preload()) OSD pre-loaded: max = 2621440, preload = 32769, rc = 0
00000004:10000000:1.0:1424838545.670051:0:2326:0:(osd_scrub.c:1240:osd_otable_it_preload()) OSD pre-loaded: max = 2621440, preload = 32770, rc = 0
00000004:10000000:1.0:1424838545.670686:0:2326:0:(osd_scrub.c:1240:osd_otable_it_preload()) OSD pre-loaded: max = 2621440, preload = 32775, rc = 0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The &lt;tt&gt;first_failure_location&lt;/tt&gt; is a directory in the namespace:&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;debugfs:  ncheck 0x8001
Inode   Pathname
32769   /ROOT/backup/ruby/Music/U2
debugfs:  stat &amp;lt;0x8001&amp;gt;
Inode: 32769   Type: directory    Mode:  0500   Flags: 0x0
Generation: 1095051582    Version: 0x00000000:00000000
User:  1000   Group:  1000   Size: 4096
File ACL: 0    Directory ACL: 0
Links: 5   Blockcount: 8
Fragment:  Address: 0    Number: 0    Size: 0
 ctime: 0x4a6548f7:00000000 -- Mon Jul 20 22:49:59 2009
 atime: 0x53d6d027:01b56e18 -- Mon Jul 28 16:35:19 2014
 mtime: 0x48699a91:00000000 -- Mon Jun 30 20:46:41 2008
crtime: 0x4a6548e2:21db6948 -- Mon Jul 20 22:49:38 2009
Size of extra inode fields: 28
Extended attributes stored in inode body: 
  lma = &quot;00 00 00 00 00 00 00 00 01 80 00 00 00 00 00 00 3e 29 45 41 00 00 00 00 &quot; (24)
  lma: fid=[0x8001:0x4145293e:0x0] compat=0 incompat=0
BLOCKS:
(0):53248
TOTAL: 1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>Lustre 2.5.3-88-ge835226&lt;br/&gt;
- single-node server (MGT, MDT, 4x OST)&lt;br/&gt;
- formatted with Lustre 1.4, upgraded to 1.6, 1.8, 2.1, 2.4.3, 2.5.3+&lt;br/&gt;
- lfsck run on Lustre 2.4.3 after enabling dirdata&lt;br/&gt;
- lfsck run multiple times on 2.5.3+&lt;br/&gt;
&lt;br/&gt;
{noformat}&lt;br/&gt;
Filesystem volume name:   myth-MDT0000&lt;br/&gt;
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery dirdata sparse_super large_file huge_file uninit_bg dir_nlink&lt;br/&gt;
Filesystem state:         clean&lt;br/&gt;
Inode count:              2621440&lt;br/&gt;
Block count:              2621440&lt;br/&gt;
Free blocks:              2119689&lt;br/&gt;
Free inodes:              1075487&lt;br/&gt;
Filesystem created:       Thu Nov  9 13:21:39 2006&lt;br/&gt;
Last mount time:          Mon Feb 23 23:52:09 2015&lt;br/&gt;
Last write time:          Mon Feb 23 23:52:09 2015&lt;br/&gt;
Last checked:             Mon Feb 23 04:02:09 2015&lt;br/&gt;
{noformat}</environment>
        <key id="28831">LU-6278</key>
            <summary>lfsck of upgraded 1.8 filesystem does not add linkEA</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="yong.fan">nasf</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>mq115</label>
                            <label>patch</label>
                    </labels>
                <created>Wed, 25 Feb 2015 05:10:14 +0000</created>
                <updated>Tue, 5 Jun 2018 16:29:25 +0000</updated>
                            <resolved>Tue, 5 Jun 2018 16:29:25 +0000</resolved>
                                    <version>Lustre 2.5.4</version>
                                    <fixVersion>Lustre 2.5.5</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="107892" author="yong.fan" created="Wed, 25 Feb 2015 05:33:12 +0000"  >&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;status: completed
flags: scanned-once,inconsistent
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;That means the LFSCK is running under &quot;dryrun&quot; mode, but because of some bug on b2_5, such param has not been shown correctly. I will make patch to verify that.&lt;/p&gt;</comment>
                            <comment id="107895" author="gerrit" created="Wed, 25 Feb 2015 06:07:30 +0000"  >&lt;p&gt;Fan Yong (fan.yong@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/13861&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13861&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6278&quot; title=&quot;lfsck of upgraded 1.8 filesystem does not add linkEA&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6278&quot;&gt;&lt;del&gt;LU-6278&lt;/del&gt;&lt;/a&gt; lfsck: show lfsck parameter correctly&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_5&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 9337942978442695cb2b36f729c005f4fa397e9e&lt;/p&gt;</comment>
                            <comment id="107908" author="adilger" created="Wed, 25 Feb 2015 10:03:55 +0000"  >&lt;p&gt;With the updated patches applied to the MDS it does look like &lt;tt&gt;dryrun&lt;/tt&gt; was enabled:&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;mdd.myth-MDT0000.lfsck_namespace=
name: lfsck_namespace
magic: 0xa0629d03
version: 2
status: completed
flags: scanned-once,inconsistent
param: dryrun
time_since_last_completed: 16716 seconds
time_since_latest_start: 17122 seconds
time_since_last_checkpoint: 16716 seconds
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="107909" author="adilger" created="Wed, 25 Feb 2015 10:06:04 +0000"  >&lt;p&gt;It doesn&apos;t seem possible to clear the &lt;tt&gt;dryrun&lt;/tt&gt; setting, even with &lt;tt&gt;-r&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="107910" author="yong.fan" created="Wed, 25 Feb 2015 10:11:38 +0000"  >&lt;p&gt;On master branch, the &quot;dryrun&quot; flag will be clear automatically when &quot;&amp;#45;r&quot; specified. I will back port the patch to b2_5. But before that, you can specify &quot;&amp;#45;&amp;#45;dryrun off&quot; for the same purpose.&lt;/p&gt;</comment>
                            <comment id="107912" author="adilger" created="Wed, 25 Feb 2015 10:36:25 +0000"  >&lt;p&gt;I removed the &lt;tt&gt;lfsck_bookmark&lt;/tt&gt; and &lt;tt&gt;lfsck_namespace&lt;/tt&gt; files, and re-ran LFSCK, which cleared the &lt;tt&gt;dryrun&lt;/tt&gt; flag.  It no longer shows the &lt;tt&gt;first_failure_location&lt;/tt&gt;, and now the &lt;tt&gt;link&lt;/tt&gt; xattrs were created:&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;# lfs fid2path /myth &quot;[0x8001:0x4145293e:0x0]&quot;
/myth/backup/ruby/Music/U2
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It seems like a defect that &lt;tt&gt;dryrun&lt;/tt&gt; isn&apos;t cleared once the lfsck run is completed, rather than staying set until it is manually removed.&lt;/p&gt;</comment>
                            <comment id="229102" author="yong.fan" created="Tue, 5 Jun 2018 16:29:25 +0000"  >&lt;p&gt;The issue has been resolved on master, we have no plan to land more patches for b2_5 based release. Then close the ticket.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </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|hzx6zj:</customfieldvalue>

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