<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:20:41 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-15716] OSD-ZFS / panic when mounting Lustre with ZFS_DEBUG enabled</title>
                <link>https://jira.whamcloud.com/browse/LU-15716</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;While trying to debug &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15586&quot; title=&quot;ZFS VERIFY3(sa.sa_magic == SA_MAGIC) failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15586&quot;&gt;LU-15586&lt;/a&gt; we have enabled&#160;&lt;br/&gt;
ZFS_DEBUG with the following set of flags: &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;
ZFS_DEBUG_MODIFY | ZFS_DEBUG_DBUF_VERIFY | ZFS_DEBUG_DNODE_VERIFY&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Enabling ZFS_DEBUG implies usage of a different set of refcount functions from zfs.&lt;br/&gt;
In order to make lustre build possible zfs module has to be modified in order to export zfs_refcount_add function which is invoked from osd-zfs &lt;br/&gt;
Modification in module/zfs/refcount.c&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; defined(_KERNEL)
+EXPORT_SYMBOL(zfs_refcount_add);
+#endif&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Unfortunately - enabling extra checks in ZFS results in kernel PANIC when mounting ost/mdt resources&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;
[87796.641026] Kernel panic - not syncing: dirtying dbuf obj=c80092 lvl=0 blkid=10 but not tx_held

[87796.677146] CPU: 18 PID: 16207 Comm: mount.lustre Kdump: loaded Tainted: P          IOE    --------- -  - 4.18.0-348.7.1.el8_5.x86_64 #1
[87796.715272] Hardware name: Huawei 2288H V5/BC11SPSCB0, BIOS 7.99 03/11/2021
[87796.735224] Call Trace:
87796.750373]  dump_stack+0x5c/0x80
[87796.766219]  panic+0xe7/0x2a9
[87796.781619]  dmu_tx_dirty_buf+0x117/0x3f0 [zfs]
[87796.798682]  ? rrw_enter_read_impl+0x125/0x220 [zfs]
[87796.815679]  dbuf_dirty+0x5e/0x1530 [zfs]
[87796.831998]  ? dbuf_read+0x139/0x680 [zfs]
[87796.847813]  dmu_write_impl+0x44/0x150 [zfs]
[87796.863641]  dmu_write_by_dnode+0x8e/0xe0 [zfs]
[87796.879597]  osd_write+0x118/0x3a0 [osd_zfs]
[87796.895392]  dt_record_write+0x32/0x110 [obdclass]
[87796.911190]  llog_osd_write_rec+0xd06/0x1ae0 [obdclass]
[87796.927699]  llog_write_rec+0x3f6/0x530 [obdclass]
[87796.943235]  llog_write+0x4df/0x550 [obdclass]
[87796.958243]  llog_process_thread+0xb8e/0x1aa0 [obdclass]
[87796.974051]  ? llog_process_or_fork+0x5e/0x560 [obdclass]
[87796.990079]  ? kmem_cache_alloc_trace+0x131/0x270
[87797.004891]  ? llog_write+0x550/0x550 [obdclass]
[87797.019560]  llog_process_or_fork+0x1c1/0x560 [obdclass]
[87797.034729]  llog_backup+0x354/0x520 [obdclass]
[87797.048909]  mgc_llog_local_copy+0x110/0x420 [mgc]
[87797.063504]  mgc_process_cfg_log+0x971/0xd80 [mgc]
[87797.077634]  mgc_process_log+0x6c3/0x800 [mgc]
[87797.091414]  ? config_log_add+0x3f5/0xa00 [mgc]
[87797.104982]  mgc_process_config+0xb53/0xe60 [mgc]
[87797.118529]  lustre_process_log+0x5fa/0xad0 [obdclass]
[87797.132327]  ? server_register_mount+0x4d1/0x740 [obdclass]
[87797.146529]  server_start_targets+0x1504/0x3010 [obdclass]
[87797.160454]  ? strlcpy+0x2d/0x40
[87797.171898]  ? class_config_dump_handler+0x730/0x730 [obdclass]
[87797.186054]  ? mgc_set_info_async+0x539/0xad0 [mgc]
[87797.198949]  ? mgc_set_info_async+0x539/0xad0 [mgc]
[87797.211583]  ? lustre_start_mgc+0xf7c/0x27c0 [obdclass]
[87797.224758]  server_fill_super+0x8ea/0x10d0 [obdclass]
[87797.237408]  lustre_fill_super+0x3a1/0x3f0 [lustre]
[87797.249568]  ? ll_inode_destroy_callback+0x120/0x120 [lustre]
[87797.262647]  mount_nodev+0x48/0xa0
[87797.273054]  legacy_get_tree+0x27/0x40
[87797.283602]  vfs_get_tree+0x25/0xb0
[87797.294051]  do_mount+0x2e2/0x950
[87797.303806]  ksys_mount+0xb6/0xd0
[87797.313335]  __x64_sys_mount+0x21/0x30
[87797.323140]  do_syscall_64+0x5b/0x1a0
[87797.332660]  entry_SYSCALL_64_after_hwframe+0x65/0xca
[87797.343521] RIP: 0033:0x7fb3c21f892e &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;For reference: on the ZFS side problem is tracked here:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/openzfs/zfs/issues/13144&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/openzfs/zfs/issues/13144&lt;/a&gt;&lt;/p&gt;</description>
                <environment>ZFS: 2.1.3&lt;br/&gt;
Lustre: 2.15 (2.15.0_RC2_38_g8e8bbc0)</environment>
        <key id="69549">LU-15716</key>
            <summary>OSD-ZFS / panic when mounting Lustre with ZFS_DEBUG enabled</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="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="lflis">Lukasz Flis</reporter>
                        <labels>
                    </labels>
                <created>Mon, 4 Apr 2022 11:14:41 +0000</created>
                <updated>Mon, 4 Apr 2022 11:14:41 +0000</updated>
                                            <version>Lustre 2.15.0</version>
                                                        <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|i02md3:</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>