<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:45:05 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-11577] fsck Multiply-claimed block(s) </title>
                <link>https://jira.whamcloud.com/browse/LU-11577</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;using the current e2fsprogs-1.44.3.wc1&lt;/p&gt;

&lt;p&gt;we are getting lots of&lt;/p&gt;

&lt;p&gt;Multiply-claimed block(s) in inode 486666: 986392108 986392259&lt;br/&gt;
Multiply-claimed block(s) in inode 486672: 986533901&lt;br/&gt;
Multiply-claimed block(s) in inode 486674: 986534585&lt;/p&gt;

&lt;p&gt;Should we let fsck run and clean these up?&lt;/p&gt;</description>
                <environment></environment>
        <key id="53835">LU-11577</key>
            <summary>fsck Multiply-claimed block(s) </summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="adilger">Andreas Dilger</assignee>
                                    <reporter username="mhanafi">Mahmoud Hanafi</reporter>
                        <labels>
                    </labels>
                <created>Fri, 26 Oct 2018 23:11:59 +0000</created>
                <updated>Wed, 21 Sep 2022 15:59:12 +0000</updated>
                            <resolved>Sat, 27 Oct 2018 03:46:20 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="235627" author="pjones" created="Sat, 27 Oct 2018 00:00:42 +0000"  >&lt;p&gt;Three Sev 1s within one day must be a record! &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&#160;Andreas has been in transit today too and will no doubt give a definitive answer when he is able to, but my guess is that it is ok to let lfsck run and move these files to the lost and found where you can then work out what can be salvaged.&lt;/p&gt;</comment>
                            <comment id="235628" author="mhanafi" created="Sat, 27 Oct 2018 00:07:25 +0000"  >&lt;p&gt;Yes it has been a nightmare.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;The fsck is just taking a very very long time and is very slow.&lt;/p&gt;

&lt;p&gt;&#160;is it safe to run with&lt;/p&gt;

&lt;p&gt;-E clone=zero shared=lost+found&lt;/p&gt;

&lt;p&gt;or&lt;/p&gt;

&lt;p&gt;shared=delete.&lt;/p&gt;

&lt;p&gt;There should not be this many shared blocks.&lt;/p&gt;</comment>
                            <comment id="235630" author="mhanafi" created="Sat, 27 Oct 2018 00:26:20 +0000"  >&lt;p&gt;looks like a single inode with the majoriy of the issues&lt;/p&gt;

&lt;p&gt;Inode: 3821842 Type: regular Mode: 0700 Flags: 0x1802f&lt;br/&gt;
Generation: 67584 Version: 0x00b70790&lt;br/&gt;
User: 0 Group: 22176 Size: 4299265028096&lt;br/&gt;
File ACL: 0&lt;br/&gt;
Links: 23506 Blockcount: 251949840&lt;br/&gt;
Fragment: Address: 0 Number: 0 Size: 0&lt;br/&gt;
ctime: 0x6e0f0f87 &amp;#8211; Thu Jul 6 00:19:35 2028&lt;br/&gt;
atime: 0x2e2281b6 &amp;#8211; Tue Jul 12 04:42:46 1994&lt;br/&gt;
mtime: 0x00000000 &amp;#8211; Wed Dec 31 16:00:00 1969&lt;br/&gt;
Size of extra inode fields: 0&lt;br/&gt;
BLOCKS:&lt;/p&gt;

&lt;p&gt;attaching fsck &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/attachment/31347/31347_fsck.out&quot; title=&quot;fsck.out attached to LU-11577&quot;&gt;fsck.out&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.whamcloud.com/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;output&lt;/p&gt;</comment>
                            <comment id="235635" author="adilger" created="Sat, 27 Oct 2018 02:20:34 +0000"  >&lt;p&gt;The shared blocks phase can be very long, and often does not produce useful results, especially if there is random filesystem corruption that caused it (some random 32-bit data will always be a valid block number for filesystems over 16TB in size).  The above inode looks like total garbage - random blocks and size, timestamps, etc.&lt;/p&gt;

&lt;p&gt;It doesn&apos;t look like you have that big a problem, so if it has already finished there is no need to do anything else immediately.  If it is still running then you might consider to restart e2fsck with the &quot;-E&quot; options above.  Either &quot;shared=lost+found&quot; or &quot;shared=delete&quot; is probably OK (obviously the filesysyem metadata won&apos;t be deleted).  &lt;/p&gt;

&lt;p&gt;Alternately, you could use &lt;tt&gt;debugfs -w&lt;/tt&gt; to mount the filesystem and zero out this inode via &quot;&lt;tt&gt;mi &amp;lt;3821842&amp;gt;&lt;/tt&gt;&quot; and set all of the fields to zero, which should avoid e2fsck doing anything with it except mark it deleted.&lt;/p&gt;</comment>
                            <comment id="235637" author="mhanafi" created="Sat, 27 Oct 2018 02:29:32 +0000"  >&lt;p&gt;Thank the mi &amp;lt;&amp;gt; worked.&lt;/p&gt;

&lt;p&gt;You may close this case.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="235638" author="adilger" created="Sat, 27 Oct 2018 02:37:12 +0000"  >&lt;p&gt;Yes, you could try to delete the object, but might trigger the mounted filesystem to go read-only as it detects filesystem metadata blocks being freed.  Using debugfs to just zero out the inode avoids it from actually trying to free the blocks.  Note that you can use &quot;&lt;tt&gt;debugfs -w -R &apos;clri &amp;lt;3821842&amp;gt;&apos; /dev/mapper/nbp10_1-OST30&lt;/tt&gt;&quot; should do the same thing as running &quot;&lt;tt&gt;mi&lt;/tt&gt;&quot; interactively - zero out the offending inode without trying to free the blocks.  &lt;/p&gt;

&lt;p&gt;In any case, you still need to run a full e2fsck after cleaning up the inode.  Directly deleting it will mark the &quot;shared&quot; blocks as freed in the allocation bitmaps, and without the post-delete e2fsck it will lead to further corruption as those blocks are reallocated.  Zeroing it out with debugfs will likely mean less metadata to repair, but there may still be errors to fix.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="72429">LU-16171</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="31347" name="fsck.out" size="49688" author="mhanafi" created="Sat, 27 Oct 2018 00:26:13 +0000"/>
                    </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|i0057z:</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="10020"><![CDATA[1]]></customfieldvalue>

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