<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:04:04 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-13770] improve e2fsck handling of meta_bg backup blocks</title>
                <link>https://jira.whamcloud.com/browse/LU-13770</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;If a filesystem &lt;tt&gt;meta_bg&lt;/tt&gt; has errors with the group descriptor blocks (e.g. some descriptor block is corrupted), it is potentially difficult to handle this case robustly.&lt;/p&gt;

&lt;p&gt;Currently, if &quot;&lt;tt&gt;e2fsck -b &amp;lt;backup_superblock&amp;gt;&lt;/tt&gt;&quot; is run, e2fsck will use &lt;b&gt;all&lt;/b&gt; of the first backup &lt;tt&gt;meta_bg&lt;/tt&gt; group descriptors (in &quot;group 1&quot; of the meta group) instead of the primary &lt;tt&gt;meta_bg&lt;/tt&gt; group descriptors (in &quot;group 0&quot; of the meta group).  It appears that &lt;tt&gt;ext2fs_descriptor_block_loc2()&lt;/tt&gt; will only ever try the first backup descriptor block, but never the second backup descriptor block (in the last group of the meta group, if available):&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;
        /*
         * If group_block is not the normal value, we&apos;re trying to use
         * the backup group descriptors and superblock --- so use the
         * alternate location of the second block group in the
         * metablock group.  Ideally we should be testing each bg
         * descriptor block individually &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; correctness, but we don&apos;t
         * have the infrastructure in place to &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; that.
         */
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Given that OSTs larger than 192TiB &lt;b&gt;always&lt;/b&gt; require the use of &lt;tt&gt;meta_bg&lt;/tt&gt;, it would be useful to have e2fsck automatically try the backup group descriptor block(s) for that meta group if the checksum on the primary block is bad.  This should be decided on a block-by-block basis, rather than switching to all backup descriptor blocks for a few reasons:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;it is unlikely that using &lt;em&gt;only&lt;/em&gt; the primary or &lt;em&gt;only&lt;/em&gt; the backup descriptor blocks will get a full set of valid group descriptors for the filesystem if there is random corruption, but it is very unlikely that all three copies of the same descriptor block are corrupted.&lt;/li&gt;
	&lt;li&gt;using backup blocks slows down e2fsck because &lt;tt&gt;bg_itable_unused&lt;/tt&gt; is unset, so all inodes in the group are scanned.  This isn&apos;t a big issue if done for a few descriptors, but is significant if done for the whole filesystem.&lt;/li&gt;
	&lt;li&gt;switching to all backup descriptor blocks produces many more errors for users.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="59903">LU-13770</key>
            <summary>improve e2fsck handling of meta_bg backup blocks</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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>
                            <label>e2fsck</label>
                    </labels>
                <created>Thu, 9 Jul 2020 08:38:43 +0000</created>
                <updated>Thu, 9 Jul 2020 08:46:05 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                    <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|i014s7:</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>