<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:48:11 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-5060] mkfs.lustre --backfstype=zfs fails to execute due to fix library name libzfs.so.1 </title>
                <link>https://jira.whamcloud.com/browse/LU-5060</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Cloning master SPL/ZFS from github and compiling and running Lustre (cloned from master) with ZFS backend&lt;br/&gt;
only, results in:&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-none&quot;&gt;# mkfs.lustre --reformat --mgs --backfstype=zfs ....

mkfs.lustre FATAL: Failed to initialize ZFS library. Are the ZFS
packages and modules correctly installed?
mkfs.lustre FATAL: unable to prepare backend (22)
mkfs.lustre: exiting with 22 (Invalid argument)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;strace reveals:&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-none&quot;&gt;# strace mkfs.lustre --backfstype=zfs ...

...
...
open(&quot;/usr/lib/tls/x86_64/libzfs.so.1&quot;, O_RDONLY) = -1 ENOENT (No such
file or directory)
stat(&quot;/usr/lib/tls/x86_64&quot;, 0x7fffcb620930) = -1 ENOENT (No such file or
directory)
open(&quot;/usr/lib/tls/libzfs.so.1&quot;, O_RDONLY) = -1 ENOENT (No such file or
directory)
stat(&quot;/usr/lib/tls&quot;, 0x7fffcb620930)    = -1 ENOENT (No such file or
directory)
open(&quot;/usr/lib/x86_64/libzfs.so.1&quot;, O_RDONLY) = -1 ENOENT (No such file
or directory)
stat(&quot;/usr/lib/x86_64&quot;, 0x7fffcb620930) = -1 ENOENT (No such file or
directory)
open(&quot;/usr/lib/libzfs.so.1&quot;, O_RDONLY)  = -1 ENOENT (No such file or
directory)
stat(&quot;/usr/lib&quot;, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
munmap(0x7f650e274000, 13380)           = 0
write(2, &quot;\nmkfs.lustre FATAL: &quot;, 20
mkfs.lustre FATAL: )   = 20
write(2, &quot;Failed to initialize ZFS library&quot;..., 88Failed to initialize
ZFS library. Are the ZFS packages and modules correctly installed?
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In mount_utils_zfs.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-none&quot;&gt;...
	handle_libzfs = dlopen(&quot;libzfs.so.1&quot;, RTLD_LAZY);
	if (handle_libzfs == NULL)
		return EINVAL;

	handle_nvpair = dlopen(&quot;libnvpair.so.1&quot;, RTLD_LAZY);
	if (handle_nvpair == NULL) {
		ret = EINVAL;
		goto out;
	}
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;However, the latest ZFS libraries are named:&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-none&quot;&gt;lrwxrwxrwx 1 root staff      15 May 14 11:46 libzfs.so -&amp;gt; libzfs.so.2.0.0
lrwxrwxrwx 1 root staff      15 May 14 11:46 libzfs.so.2 -&amp;gt; libzfs.so.2.0.0
-rwxr-xr-x 1 root staff 1040438 May 14 11:46 libzfs.so.2.0.0
...
lrwxrwxrwx 1 root staff      18 May 14 11:46 libnvpair.so -&amp;gt; libnvpair.so.1.0.1
lrwxrwxrwx 1 root staff      18 May 14 11:46 libnvpair.so.1 -&amp;gt; libnvpair.so.1.0.1
-rwxr-xr-x 1 root staff  317279 May 14 11:46 libnvpair.so.1.0.1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I guess the most simplest solution to fix that, would be changing&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-none&quot;&gt;handle_libzfs = dlopen(&quot;libzfs.so.1&quot;, RTLD_LAZY);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;into&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-none&quot;&gt;handle_libzfs = dlopen(&quot;libzfs.so&quot;, RTLD_LAZY);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;So it will based on the proper symbolic links.&lt;/p&gt;

&lt;p&gt;I will provide a simple patch for this problem.&lt;/p&gt;</description>
                <environment>Debian 7.5, 3.2 kernel,&lt;br/&gt;
SPL 0.6.2-38_gad3412e&lt;br/&gt;
ZFS 0.6.2-274_g2c33b91</environment>
        <key id="24712">LU-5060</key>
            <summary>mkfs.lustre --backfstype=zfs fails to execute due to fix library name libzfs.so.1 </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="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="thomas.stibor">Thomas Stibor</reporter>
                        <labels>
                    </labels>
                <created>Wed, 14 May 2014 09:58:52 +0000</created>
                <updated>Thu, 15 May 2014 08:19:00 +0000</updated>
                            <resolved>Wed, 14 May 2014 17:09:12 +0000</resolved>
                                    <version>Lustre 2.5.1</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="84138" author="adilger" created="Thu, 15 May 2014 00:28:19 +0000"  >&lt;p&gt;Patch is at &lt;a href=&quot;http://review.whamcloud.com/10326&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/10326&lt;/a&gt;  it this is obsoleted by &lt;a href=&quot;http://review.whamcloud.com/10193&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/10193&lt;/a&gt; changes. It may make more sense to land the 10326 patch for b2_5, since it is much less intrusive. &lt;/p&gt;</comment>
                            <comment id="84153" author="thomas.stibor" created="Thu, 15 May 2014 08:19:00 +0000"  >&lt;p&gt;Ok, thanks for the info. I have abandoned the patch &lt;a href=&quot;http://review.whamcloud.com/#/c/10326/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/10326/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="23082">LU-4606</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_10030" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic/Theme</customfieldname>
                        <customfieldvalues>
                                        <label>zfs</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzwmhj:</customfieldvalue>

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