<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:27:08 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-2663] lfsck: e2fsck [QUOTA WARNING] Usage inconsistent</title>
                <link>https://jira.whamcloud.com/browse/LU-2663</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This issue was created by maloo for liuying &amp;lt;emoly.liu@intel.com&amp;gt;&lt;/p&gt;

&lt;p&gt;This issue relates to the following test suite run: &lt;a href=&quot;https://maloo.whamcloud.com/test_sets/ffe70358-644c-11e2-a1aa-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sets/ffe70358-644c-11e2-a1aa-52540035b04c&lt;/a&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;20:33:45:I/O read: 6MB, write: 0MB, rate: 17.00MB/s&lt;br/&gt;
20:33:45: lfsck : @@@@@@ FAIL: e2fsck &lt;del&gt;d -v -t -t -f -n --mdsdb /home/cgearing/.autotest/shared_dir/2013-01-21/201214-70220949137480/mdsdb --ostdb /home/cgearing/.autotest/shared_dir/2013-01-21/201214-70220949137480/ostdb-0 /dev/mapper/lvm&lt;/del&gt;-OSS-P1 returned 4, should be &amp;lt;= 1 &lt;br/&gt;
20:33:45:  Trace dump:&lt;br/&gt;
20:33:45:  = /usr/lib64/lustre/tests/test-framework.sh:3975:error_noexit()&lt;br/&gt;
20:33:45:  = /usr/lib64/lustre/tests/test-framework.sh:3998:error()&lt;br/&gt;
20:33:45:  = /usr/lib64/lustre/tests/test-framework.sh:3481:run_e2fsck()&lt;br/&gt;
20:33:45:  = /usr/lib64/lustre/tests/test-framework.sh:3519:generate_db()&lt;br/&gt;
20:33:45:  = /usr/lib64/lustre/tests/lfsck.sh:259:main()&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The 3519:generate_db() in my code is &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;3515     for node in $(osts_nodes); do
3516         for dev in ${OSTDEVS[i]}; do
3517             run_e2fsck $node $dev &quot;-n --mdsdb $MDSDB --ostdb $OSTDB-$ostidx&quot;
3518             OSTDB_LIST=&quot;$OSTDB_LIST $OSTDB-$ostidx&quot;
3519             ostidx=$((ostidx + 1))
3520         done
3521         i=$((i + 1))
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But I didn&apos;t find anything obviously wrong.&lt;/p&gt;</description>
                <environment></environment>
        <key id="17256">LU-2663</key>
            <summary>lfsck: e2fsck [QUOTA WARNING] Usage inconsistent</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="niu">Niu Yawei</assignee>
                                    <reporter username="maloo">Maloo</reporter>
                        <labels>
                            <label>LB</label>
                    </labels>
                <created>Tue, 22 Jan 2013 02:18:23 +0000</created>
                <updated>Mon, 22 Apr 2013 12:31:45 +0000</updated>
                            <resolved>Thu, 31 Jan 2013 03:02:09 +0000</resolved>
                                    <version>Lustre 2.4.0</version>
                                    <fixVersion>Lustre 2.4.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="50960" author="emoly.liu" created="Tue, 22 Jan 2013 02:19:55 +0000"  >&lt;p&gt;The same error also happened in &lt;a href=&quot;https://maloo.whamcloud.com/test_sets/8e542f1a-5b58-11e2-b205-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sets/8e542f1a-5b58-11e2-b205-52540035b04c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="51046" author="adilger" created="Wed, 23 Jan 2013 13:56:59 +0000"  >&lt;p&gt;In the e2fsck output it seems there is still an error checking quota:&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;e2fsck -d -v -t -t -f -n --mdsdb /home/cgearing/.autotest/shared_dir/2013-01-21/201214-70220949137480/mdsdb --ostdb /home/cgearing/.autotest/shared_dir/2013-01-21/201214-70220949137480/ostdb-0 /dev/mapper/lvm--OSS-P1
20:33:45:wtm-6vm4: e2fsck 1.42.6.wc2 (10-Dec-2012)
20:33:45:wtm-6vm4: e2fsck_pass1:1501: increase inode 185 badness 0 to 2
20:33:45:wtm-6vm4: e2fsck_pass1:1501: increase inode 186 badness 0 to 2
20:33:45:wtm-6vm4: [QUOTA WARNING] Usage inconsistent for ID 0:actual (3936256, 177) != expected (6033408, 179)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The &quot;inode badness&quot; warnings are because of precreated inode ctime before the filesystem format time (ctime = 0) and could be fixed, but are not a source of problems.&lt;/p&gt;</comment>
                            <comment id="51083" author="niu" created="Thu, 24 Jan 2013 02:25:29 +0000"  >&lt;p&gt;lfsck uses debugfs to remove objects on OSTs, which caused the e2fsck reporting quota usage inconsistence. In the autotest, the lustre filesystem is usually not newly created, then lfsck will not remove objects by debugfs, that&apos;s why lfsck often pass in autotest.&lt;/p&gt;

&lt;p&gt;lfsck.sh:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; is_empty_fs $MOUNT; then
 ...
  # remove objects associated with files in group $OBJGRP
  # on the OST with index $OSTIDX
  remove_objects $OSTNODE $OSTDEV $OBJGRP $OST_REMOVE || \
    error &lt;span class=&quot;code-quote&quot;&gt;&quot;removing objects failed&quot;&lt;/span&gt;
  ...
&lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; # is_empty_fs $MOUNT
    FSCK_MAX_ERR=4   # file system errors left uncorrected
fi
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="51087" author="niu" created="Thu, 24 Jan 2013 04:19:06 +0000"  >&lt;p&gt;The lfsck.sh script problem can be easily fixed by changing the &quot;debugfs remove&quot; to &quot;local mount remove&quot;:&lt;/p&gt;

&lt;p&gt;The new method of removing object looks like:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;# Remove objects associated with files.
remove_objects() {
        local ostdev=$1
        shift
        local group=$1
        shift
        local objids=&lt;span class=&quot;code-quote&quot;&gt;&quot;$@&quot;&lt;/span&gt;
        local facet=ost$((OSTIDX + 1))
        local mntpt=$(facet_mntpt $facet)
        local opts=$OST_MOUNT_OPTS
        local i
        local rc

        echo &lt;span class=&quot;code-quote&quot;&gt;&quot;removing objects from $ostdev on $facet: $objids&quot;&lt;/span&gt;
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ! do_facet $facet test -b $ostdev; then
                opts=$(csa_add &lt;span class=&quot;code-quote&quot;&gt;&quot;$opts&quot;&lt;/span&gt; -o loop)
        fi
        mount -t $(facet_fstype $facet) $opts $ostdev $mntpt ||
                &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $?
        rc=0;
        &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; i in $objids; &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt;
                rm $mntpt/O/$group/d$((i % 32))/$i || { rc=$?; &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;; }
        done
        umount -f $mntpt || &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $?
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $rc
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;With the new test script, e2fsck doesn&apos;t complain the quota usage inconsistency anymore.&lt;/p&gt;

&lt;p&gt;However, seems the lfsck.sh can&apos;t pass for the &quot;if is_empty_fs $MOUNT&quot; case at all, during the lfsck fix phase, it&apos;ll hit LBUG in mdd_create_data() (because we don&apos;t support MDS_OPEN_HAS_OBJS flag anymore), after fixing the LBUG, lfsck still failed:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;lfsck -c -l --mdsdb /tmp/mdsdb --ostdb /tmp/ostdb-0 /tmp/ostdb-1 /mnt/lustre
lfsck 1.42.5.wc2 (15-Sep-2012)
lfsck: ost_idx 0: pass1: check &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; duplicate objects
lfsck: ost_idx 0: pass1 OK (71 files total)
lfsck: ost_idx 0: pass2: check &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; missing inode objects
Failed to find fid [0x200000400:0x57:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0x200000400:0x59:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0x200000400:0x5b:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0x200000400:0x5d:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0x200000400:0x5f:0x0]: DB_NOTFOUND: No matching key/data pair found
lfsck: ost_idx 0: pass2 OK (76 objects)
lfsck: ost_idx 0: pass3: check &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; orphan objects
lfsck: [0]: pass3 saved orphan object 0:43, 1048576 bytes
lfsck: [0]: pass3 saved orphan object 0:44, 1048576 bytes
lfsck: [0]: pass3 saved orphan object 0:45, 1048576 bytes
lfsck: [0]: pass3 saved orphan object 0:46, 1048576 bytes
lfsck: [0]: pass3 saved orphan object 0:47, 1048576 bytes
lfsck: ost_idx 0: pass3 FIXED:    5MB of orphan data (5 of 91 files total)
lfsck: ost_idx 1: pass1: check &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; duplicate objects
lfsck: ost_idx 1: pass1 OK (71 files total)
lfsck: ost_idx 1: pass2: check &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; missing inode objects
lfsck: ost_idx 1: pass2 OK (76 objects)
lfsck: ost_idx 1: pass3: check &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; orphan objects
lfsck: [1]: pass3 saved orphan object 0:43, 1048576 bytes
lfsck: [1]: pass3 saved orphan object 0:44, 1048576 bytes
lfsck: [1]: pass3 saved orphan object 0:45, 1048576 bytes
lfsck: [1]: pass3 saved orphan object 0:46, 1048576 bytes
lfsck: [1]: pass3 saved orphan object 0:47, 1048576 bytes
lfsck: ost_idx 1: pass3 FIXED:    5MB of orphan data (5 of 96 files total)
lfsck: pass4: check &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; 20 duplicate object references
Failed to find fid [0x200000400:0x61:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0x6a:0xedbddba1:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0x200000400:0x63:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0xc1:0xedbddba3:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0x200000400:0x67:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0xc5:0xedbddba7:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0x200000400:0x65:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0xc3:0xedbddba5:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0x200000400:0x69:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0xc7:0xedbddba9:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0x200000400:0x62:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0x6c:0xedbddba2:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0x200000400:0x64:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0xc2:0xedbddba4:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0x200000400:0x68:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0xc6:0xedbddba8:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0x200000400:0x66:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0xc4:0xedbddba6:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0x200000400:0x6a:0x0]: DB_NOTFOUND: No matching key/data pair found
Failed to find fid [0xc8:0xedbddbaa:0x0]: DB_NOTFOUND: No matching key/data pair found
removed directory: `/mnt/lustre/lost+found/duplicates&apos;
lfsck: pass4 finished
lfsck: fixed 10 errors
lfsck finished with rc=1
removed `/tmp/mdsdb&apos;
removed `/tmp/mdsdb.mdshdr&apos;
removed `/tmp/ostdb-0&apos;
removed `/tmp/ostdb-1&apos;
clean after the first check
== lfsck test complete, duration 44 sec == 03:35:27 (1359016527)
rm: cannot remove `/mnt/lustre/d0.lfsck/testfile.18.bad&apos;: Input/output error
rm: cannot remove `/mnt/lustre/d0.lfsck/testfile.17.bad&apos;: Input/output error
rm: cannot remove `/mnt/lustre/d0.lfsck/testfile.19.bad&apos;: Input/output error
rm: cannot remove `/mnt/lustre/d0.lfsck/testfile.15&apos;: Input/output error
rm: cannot remove `/mnt/lustre/d0.lfsck/testfile.14.bad&apos;: Input/output error
rm: cannot remove `/mnt/lustre/d0.lfsck/testfile.20.bad&apos;: Input/output error
rm: cannot remove `/mnt/lustre/d0.lfsck/testfile.12&apos;: Input/output error
 lfsck : @@@@@@ FAIL: remove sub-test dirs failed
  Trace dump:
  = /home/niu/lustre/lustre-master/lustre/tests/test-framework.sh:3957:error_noexit()
  = /home/niu/lustre/lustre-master/lustre/tests/test-framework.sh:3980:error()
  = /home/niu/lustre/lustre-master/lustre/tests/test-framework.sh:3565:check_and_cleanup_lustre()
  = lfsck.sh:291:main()
Dumping lctl log to /tmp/test_logs/1359016483/lfsck..*.1359016527.log
Dumping logs only on local client.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I&apos;m not sure if lfsck is still being supportted or used by user? If not, I think we can just leave these errors behind, otherwise, we&apos;d open other tickets and fix lfsck itself. Andreas, any comment? Thanks.&lt;/p&gt;</comment>
                            <comment id="51307" author="niu" created="Mon, 28 Jan 2013 04:27:16 +0000"  >&lt;p&gt;change &apos;debugfs remove&apos; to &apos;mount remove&apos; in lfsck.sh, fixed improper LBUG in mdd_create_data(): &lt;a href=&quot;http://review.whamcloud.com/5186&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/5186&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="51516" author="niu" created="Thu, 31 Jan 2013 03:02:09 +0000"  >&lt;p&gt;patch landed for 2.4&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="16264">LU-2097</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="17327">LU-2694</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|hzvfuf:</customfieldvalue>

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