<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:17:28 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-8431] Cannot format zfs backend with lustre master build on CORAL zfs </title>
                <link>https://jira.whamcloud.com/browse/LU-8431</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This bug is blocking testing and evaluation of the Lustre streaming feature for CORAL. &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;mkfs.lustre --backfstype=zfs * results in: 
Failed to initialize ZFS library

mkfs.lustre FATAL: unhandled/unloaded fs type 5 &apos;zfs&apos;

mkfs.lustre FATAL: unable to prepare backend (22)
mkfs.lustre: exiting with 22 (Invalid argument)
Failed to initialize ZFS library
mount.lustre: zfspool/mdt1 has not been formatted with mkfs.lustre or the backend filesystem type is not supported by this tool
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Lustre build is form: &lt;tt&gt;ssh://hudson@review.whamcloud.com:29418/fs/lustre-release */master&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;RPMs Running are:&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;[root@wolf-3 mdisolation_step2_draid_testing]# rpm -qa |grep -i lustre
lustre-osd-zfs-mount-2.8.55-1.el7.centos.x86_64
lustre-2.8.55-1.el7.centos.x86_64
lustre-tests-2.8.55-1.el7.centos.x86_64
kmod-lustre-2.8.55-1.el7.centos.x86_64
kmod-lustre-osd-zfs-2.8.55-1.el7.centos.x86_64
lustre-iokit-2.8.55-1.el7.centos.x86_64
kmod-lustre-tests-2.8.55-1.el7.centos.x86_64
[root@wolf-3 mdisolation_step2_draid_testing]# rpm -qa |grep -i zfs 
lustre-osd-zfs-mount-2.8.55-1.el7.centos.x86_64
libzfs2-0.6.5-1.el7.centos.x86_64
zfs-0.6.5-1.el7.centos.x86_64
kmod-lustre-osd-zfs-2.8.55-1.el7.centos.x86_64
zfs-test-0.6.5-1.el7.centos.x86_64
kmod-zfs-0.6.5-1.el7.centos.x86_64
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The zfs is basically zfs master from last week + CORAL patches on top and can be found at fs/zfs -b coral-prototype &lt;/p&gt;</description>
                <environment></environment>
        <key id="38358">LU-8431</key>
            <summary>Cannot format zfs backend with lustre master build on CORAL zfs </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="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="6">Not a Bug</resolution>
                                        <assignee username="utopiabound">Nathaniel Clark</assignee>
                                    <reporter username="jsalians_intel">John Salinas</reporter>
                        <labels>
                            <label>LS_RZ</label>
                    </labels>
                <created>Fri, 22 Jul 2016 21:40:48 +0000</created>
                <updated>Thu, 14 Jun 2018 21:39:48 +0000</updated>
                            <resolved>Wed, 24 Aug 2016 21:55:32 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="159891" author="utopiabound" created="Tue, 26 Jul 2016 15:15:00 +0000"  >&lt;p&gt;Do you have the lustre patches needed for building against ZFS master?&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/19293&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/19293&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/21251&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/21251&lt;/a&gt; - landed 7/20&lt;/p&gt;</comment>
                            <comment id="159898" author="jsalians_intel" created="Tue, 26 Jul 2016 15:28:47 +0000"  >&lt;p&gt;That is all I am aware of right now &amp;#8211; but until we can get testing running on this it it is hard to know if it is working as expected. &lt;/p&gt;

&lt;p&gt;Last night we figured out this is because the RPMs are not doing a modprobe zfs: &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;sdc mirror /dev/sdd /dev/sdedex=0 --mdt --mgs zfspool/mdt1 mirror /dev/sdb /dev/s
execve(&quot;/sbin/mkfs.lustre&quot;, [&quot;mkfs.lustre&quot;, &quot;--backfstype=zfs&quot;, &quot;--fsname=lsdraid&quot;, &quot;--index=0&quot;, &quot;--mdt&quot;, &quot;--mgs&quot;, &quot;zfspool/mdt1&quot;, &quot;mirror&quot;, &quot;/dev/sdb&quot;, &quot;/dev/sdc&quot;, &quot;mirror&quot;, &quot;/dev/sdd&quot;, &quot;/dev/sde&quot;], [/* 28 vars */]) = 0
brk(0)                                  = 0x1966000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0f12668000
access(&quot;/etc/ld.so.preload&quot;, R_OK)      = -1 ENOENT (No such file or directory)
open(&quot;/etc/ld.so.cache&quot;, O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=38295, ...}) = 0
mmap(NULL, 38295, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0f1265e000
close(3)                 
...etc...
access(&quot;/sys/module/zfs&quot;, F_OK)         = -1 ENOENT (No such file or directory)
access(&quot;/sys/module/zfs&quot;, F_OK)         = -1 ENOENT (No such file or directory)
write(2, &quot;Failed to initialize ZFS library&quot;..., 33Failed to initialize ZFS library
) = 33
munmap(0x7f0f0f8b5000, 2114232)         = 0
munmap(0x7f0f0f670000, 2379656)         = 0
munmap(0x7f0f0f46b000, 2114000)         = 0
munmap(0x7f0f0ef5f000, 5289752)         = 0
munmap(0x7f0f0ed4a000, 2180128)         = 0
munmap(0x7f0f0eb37000, 2174328)         = 0
munmap(0x7f0f0e6f2000, 2345800)         = 0
munmap(0x7f0f12640000, 84225)           = 0
munmap(0x7f0f0e4ed000, 2113920)         = 0
munmap(0x7f0f0e2e8000, 2114112)         = 0
munmap(0x7f0f0e0a1000, 2386184)         = 0
munmap(0x7f0f0de8b000, 2184192)         = 0
munmap(0x7f0f0dc86000, 2113904)         = 0
munmap(0x7f0f0da70000, 2183520)         = 0
munmap(0x7f0f0d860000, 2162024)         = 0
write(2, &quot;\nmkfs.lustre FATAL: &quot;, 20
mkfs.lustre FATAL: )   = 20
write(2, &quot;unhandled/unloaded fs type 5 &apos;zf&quot;..., 35unhandled/unloaded fs type 5 &apos;zfs&apos;
) = 35
write(2, &quot;\nmkfs.lustre FATAL: &quot;, 20
mkfs.lustre FATAL: )   = 20
write(2, &quot;unable to prepare backend (22)\n&quot;, 31unable to prepare backend (22)
) = 31
write(2, &quot;mkfs.lustre: exiting with 22 (In&quot;..., 48mkfs.lustre: exiting with 22 (Invalid argument)
) = 48
exit_group(22)                          = ?

modprobe zfs 
[  992.594607] SPL: Loaded module v0.6.5-1
sdc mirror /dev/sdd /dev/sdedex=0 --mdt --mgs zfspool/mdt1 mirror /dev/sdb /dev/s
execve(&quot;/sbin/mkfs.lustre&quot;, [&quot;mkfs.lustre&quot;, &quot;--backfstype=zfs&quot;, &quot;--fsname=lsdraid&quot;, &quot;--index=0&quot;, &quot;--mdt&quot;, &quot;--mgs&quot;, &quot;zfspool/mdt1&quot;, &quot;mirror&quot;, &quot;/dev/sdb&quot;, &quot;/dev/sdc&quot;, &quot;mirror&quot;, &quot;/dev/sdd&quot;, &quot;/dev/sde&quot;], [/* 28 vars */]) = 0
...etc...
access(&quot;/sys/module/zfs&quot;, F_OK)         = 0
access(&quot;/sys/module/zfs&quot;, F_OK)         = 0
open(&quot;/dev/zfs&quot;, O_RDWR)                = 3
close(3)                                = 0
open(&quot;/dev/zfs&quot;, O_RDWR)                = 3
open(&quot;/etc/mtab&quot;, O_RDONLY)             = 4
open(&quot;/etc/dfs/sharetab&quot;, O_RDONLY)     = -1 ENOENT (No such file or directory)
open(&quot;/dev/zfs&quot;, O_RDWR)                = 5
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 64), ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 opost isig icanon echo ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1c2072c000
write(1, &quot;\n&quot;, 1
)                       = 1
write(1, &quot;   Permanent disk data:\n&quot;, 24   Permanent disk data:
) = 24
write(1, &quot;Target:     lsdraid:MDT0000\n&quot;, 28Target:     lsdraid:MDT0000
) = 28
write(1, &quot;Index:      0\n&quot;, 14Index:      0
)         = 14
write(1, &quot;Lustre FS:  lsdraid\n&quot;, 20Lustre FS:  lsdraid
)   = 20
write(1, &quot;Mount type: zfs\n&quot;, 16Mount type: zfs
)       = 16
write(1, &quot;Flags:      0x65\n&quot;, 17Flags:      0x65
)      = 17
write(1, &quot;              (MDT MGS first_tim&quot;..., 43              (MDT MGS first_time update )
) = 43
write(1, &quot;Persistent mount opts: \n&quot;, 24Persistent mount opts: 
) = 24
write(1, &quot;Parameters:\n&quot;, 12Parameters:
)           = 12
write(1, &quot;\n&quot;, 1
)                       = 1
...etc..
&amp;lt;... wait4 resumed&amp;gt; [{WIFEXITED(s) &amp;amp;&amp;amp; WEXITSTATUS(s) == 0}], 0, NULL) = 24640
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f1c1f421670}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0x7f1c1f421670}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=24640, si_status=0, si_utime=0, si_stime=0} ---
unlink(&quot;/tmp/run_command_logueGkvh&quot;)    = 0
ioctl(3, 0x5a12, 0x7fff54bff250)        = 0
ioctl(3, 0x5a05, 0x7fff54bfbc00)        = 0
brk(0)                                  = 0xe59000
brk(0xe7a000)                           = 0xe7a000
write(1, &quot;Writing zfspool/mdt1 properties\n&quot;, 32Writing zfspool/mdt1 properties
) = 32
write(1, &quot;  lustre:version=1\n&quot;, 19  lustre:version=1
)    = 19
ioctl(3, 0x5a16, 0x7fff54bfedc0)        = 0
ioctl(3, 0x5a12, 0x7fff54bfb7a0)        = 0
write(1, &quot;  lustre:flags=101\n&quot;, 19  lustre:flags=101
)    = 19
ioctl(3, 0x5a16, 0x7fff54bfedc0)        = 0
ioctl(3, 0x5a12, 0x7fff54bfb7a0)        = 0
write(1, &quot;  lustre:index=0\n&quot;, 17  lustre:index=0
)      = 17
ioctl(3, 0x5a16, 0x7fff54bfedc0)        = 0
ioctl(3, 0x5a12, 0x7fff54bfb7a0)        = 0
write(1, &quot;  lustre:fsname=lsdraid\n&quot;, 24  lustre:fsname=lsdraid
) = 24
ioctl(3, 0x5a16, 0x7fff54bfee20)        = 0
ioctl(3, 0x5a12, 0x7fff54bfb800)        = 0
write(1, &quot;  lustre:svname=lsdraid:MDT0000\n&quot;, 32  lustre:svname=lsdraid:MDT0000
) = 32
ioctl(3, 0x5a16, 0x7fff54bfee20)        = 0
ioctl(3, 0x5a12, 0x7fff54bfb800)        = 0
close(3)                                = 0
close(4)                                = 0
brk(0)                                  = 0xe7a000
brk(0)                                  = 0xe7a000
brk(0xe62000)                           = 0xe62000
brk(0)                                  = 0xe62000
close(5)                                = 0
munmap(0x7f1c1d97a000, 2114232)         = 0
munmap(0x7f1c1d735000, 2379656)         = 0
munmap(0x7f1c1d530000, 2114000)         = 0
munmap(0x7f1c1d024000, 5289752)         = 0
munmap(0x7f1c1ce0f000, 2180128)         = 0
munmap(0x7f1c1cbfc000, 2174328)         = 0
munmap(0x7f1c1c7b7000, 2345800)         = 0
munmap(0x7f1c20705000, 84225)           = 0
munmap(0x7f1c1c5b2000, 2113920)         = 0
munmap(0x7f1c1c3ad000, 2114112)         = 0
munmap(0x7f1c1c166000, 2386184)         = 0
munmap(0x7f1c1bf50000, 2184192)         = 0
munmap(0x7f1c1bd4b000, 2113904)         = 0
munmap(0x7f1c1bb35000, 2183520)         = 0
munmap(0x7f1c1b925000, 2162024)         = 0
exit_group(0)       
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="159952" author="utopiabound" created="Tue, 26 Jul 2016 18:41:31 +0000"  >&lt;p&gt;ZFS commit 87abfcba2283bfeb6636caf9aa2a72186d7708c4 for &lt;a href=&quot;https://github.com/zfsonlinux/zfs/issues/2556&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;ZFS Issue #2556&lt;/a&gt; changed the behavior of libzfs_load_module() that is called from libzfs_init() (called from zfs_init() in &lt;tt&gt;mkfs.lustre --backfstype=zfs&lt;/tt&gt;).  Either the environment variable &lt;tt&gt;ZFS_MODULE_LOADING=YES&lt;/tt&gt; or we need to pre-load zfs.&lt;/p&gt;</comment>
                            <comment id="159957" author="morrone" created="Tue, 26 Jul 2016 18:58:26 +0000"  >&lt;p&gt;Yes, the proper approach now is to run &quot;modprobe zfs&quot; first.  There were apparently long discussions, and it was felt that this is the most Linux-y approach.  The environment variable may not remain in place long term, so it is probably best to just use modprobe.&lt;/p&gt;</comment>
                            <comment id="159972" author="jsalians_intel" created="Tue, 26 Jul 2016 20:20:16 +0000"  >&lt;p&gt;Any reason why the rpm doesn&apos;t do the modprobe? &lt;/p&gt;</comment>
                            <comment id="159992" author="morrone" created="Tue, 26 Jul 2016 22:51:27 +0000"  >&lt;p&gt;That is not the sort of thing an rpm should do.  rpm install scripts are a one-time operation.  modprobe needs to be called potentially many times; any time the module is not loaded and we want to use it.&lt;/p&gt;</comment>
                            <comment id="160477" author="jsalians_intel" created="Mon, 1 Aug 2016 19:30:31 +0000"  >&lt;p&gt;Could we use a similar method as Lustre or IB?  It seems odd that at install and each boot I have to modprobe by hand as there is automatic method to do this.  Or am I overlooking some admin setup that is part of ZOL already?  Thanks!&lt;/p&gt;</comment>
                            <comment id="163093" author="utopiabound" created="Wed, 24 Aug 2016 21:53:25 +0000"  >&lt;p&gt;John,&lt;/p&gt;

&lt;p&gt;Are you good with this issue?  Do you need something else from this ticket?&lt;/p&gt;

&lt;p&gt;&amp;#8211;&lt;br/&gt;
Nathaniel&lt;/p&gt;</comment>
                            <comment id="163095" author="jsalians_intel" created="Wed, 24 Aug 2016 21:55:16 +0000"  >&lt;p&gt;I am good &amp;#8211; this ticket can be closed&lt;/p&gt;</comment>
                    </comments>
                    <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|hzyic7:</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>