<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:28:55 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-9752] Unable to format zfs osts</title>
                <link>https://jira.whamcloud.com/browse/LU-9752</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;when trying to format zfs osts we get the following error:&lt;br/&gt;
 mkfs.lustre --reformat --mdt --mgs --servicenode= 211@o2ib --backfstype=zfs --fsname=tempAA --index=0 mgs/mdt&lt;/p&gt;

&lt;p&gt;Permanent disk data:&lt;br/&gt;
Target: tempAA:MDT0000&lt;br/&gt;
Index: 0&lt;br/&gt;
Lustre FS: tempAA&lt;br/&gt;
Mount type: zfs&lt;br/&gt;
Flags: 0x1065&lt;br/&gt;
(MDT MGS first_time update no_primnode )&lt;br/&gt;
Persistent mount opts:&lt;br/&gt;
Parameters: failover.node=10.10.10.213@o2ib:10.10.10.211@o2ib&lt;/p&gt;

&lt;p&gt;mkfs.lustre FATAL: spl_hostid not set. See mkfs.lustre(8)&lt;br/&gt;
mkfs.lustre FATAL: mkfs failed 22&lt;br/&gt;
mkfs.lustre: exiting with 22 (Invalid argument)&lt;/p&gt;</description>
                <environment>SLES12 SP2&lt;br/&gt;
Lustre community pre-release 2.10</environment>
        <key id="47160">LU-9752</key>
            <summary>Unable to format zfs osts</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="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="utopiabound">Nathaniel Clark</assignee>
                                    <reporter username="abea@supermicro.com">Abe</reporter>
                        <labels>
                            <label>zfs</label>
                    </labels>
                <created>Fri, 7 Jul 2017 22:51:25 +0000</created>
                <updated>Wed, 15 Nov 2017 20:07:52 +0000</updated>
                            <resolved>Thu, 19 Oct 2017 11:56:31 +0000</resolved>
                                    <version>Lustre 2.10.0</version>
                                    <fixVersion>Lustre 2.11.0</fixVersion>
                    <fixVersion>Lustre 2.10.2</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="201417" author="pjones" created="Fri, 7 Jul 2017 22:59:50 +0000"  >&lt;p&gt;Nathaniel&lt;/p&gt;

&lt;p&gt;Can you please advise?&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="201454" author="malkolm" created="Sun, 9 Jul 2017 23:08:27 +0000"  >&lt;p&gt;Ignoring, for the moment, the &lt;tt&gt;--servicenode&lt;/tt&gt; option having an invalid IPv4 address for the NID, the error returned by mkfs is stating that the server&apos;s hostid is not set persistently. This is needed in order to reduce the chances of double-importing a ZFS pool across multiple servers.&#160;&lt;/p&gt;

&lt;p&gt;This is a recent change in behaviour for the mkfs.lustre command, designed to ensure that additional protection of the ZFS storage pools is in place before creating the file system target.&lt;/p&gt;

&lt;p&gt;&#160;Try running the following command:&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;genhostid

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This will create a file, &lt;tt&gt;/etc/hostid&lt;/tt&gt;, containing a persistent hostid for the server. To activate, either reload the spl.ko module, or reboot the server. In my experience, the server usually needs to be rebooted, but that may have been fixed in the most recent ZFS versions. When the reboot is complete, the SPL kernel module will pick up the hostid automatically when it is loaded. This&#160;will allow the format command to complete.&lt;/p&gt;

&lt;p&gt;Once rebooted, you can verify that the hostid is set properly by comparing the output of the hostid command to the content of /etc/hostid. For example:&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;[root@ct73-oss2 ~]# hostid
000bea11
[root@ct73-oss2 ~]# od -An -tx /etc/hostid
 000bea11

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;The hostid needs to be set for all Lustre servers with ZFS storage targets.&lt;/p&gt;</comment>
                            <comment id="201582" author="abea@supermicro.com" created="Mon, 10 Jul 2017 19:40:34 +0000"  >&lt;p&gt;Hi Malcom,&lt;br/&gt;
I had to manually the hostid file since there is no genhostid cli on suse linux.&lt;br/&gt;
It is solved the problem, pls go ahead and close this ticket..&lt;/p&gt;

&lt;p&gt;thank you&lt;br/&gt;
Abe&lt;/p&gt;</comment>
                            <comment id="201619" author="malkolm" created="Tue, 11 Jul 2017 00:45:31 +0000"  >&lt;p&gt;Thanks for the update. I did not realise that genhostid is not available on SLES. I did discover the following alternative method using BASH, for future reference:&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;h=`hostid`; a=${h:6:2}; b=${h:4:2}; c=${h:2:2}; d=${h:0:2}
sudo sh -c &lt;span class=&quot;code-quote&quot;&gt;&quot;echo -ne \&quot;&lt;/span&gt;\x$a\x$b\x$c\x$d\&lt;span class=&quot;code-quote&quot;&gt;&quot; &amp;gt; /etc/hostid&quot;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;For example:&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;vagrant@sl12sp2-b:~&amp;gt; hostid
007f0100
vagrant@sl12sp2-b:~&amp;gt; h=`hostid`; a=${h:6:2}; b=${h:4:2}; c=${h:2:2}; d=${h:0:2}
vagrant@sl12sp2-b:~&amp;gt; sudo sh -c &lt;span class=&quot;code-quote&quot;&gt;&quot;echo -ne \&quot;&lt;/span&gt;\x$a\x$b\x$c\x$d\&lt;span class=&quot;code-quote&quot;&gt;&quot; &amp;gt; /etc/hostid&quot;&lt;/span&gt;
vagrant@sl12sp2-b:~&amp;gt; od -An -tx /etc/hostid
 007f0100
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="202051" author="adilger" created="Thu, 13 Jul 2017 17:02:06 +0000"  >&lt;p&gt;I wonder if it makes sense to add the above script into a &lt;tt&gt;genhostid&lt;/tt&gt; command as part of &lt;tt&gt;osd-zfs-mount.rpm&lt;/tt&gt; for SLES, so that users don&apos;t run into this problem?&lt;/p&gt;

&lt;p&gt;The &lt;tt&gt;genhostid&lt;/tt&gt; command is part of the RHEL &lt;tt&gt;initscripts&lt;/tt&gt; package, while &lt;tt&gt;hostid&lt;/tt&gt; is part of &lt;tt&gt;coreutils&lt;/tt&gt;, so it does appear that &lt;tt&gt;genhostid&lt;/tt&gt; is unique to RHEL, but it would be convenient to have this available on SLES as well.&lt;/p&gt;</comment>
                            <comment id="205748" author="utopiabound" created="Fri, 18 Aug 2017 15:18:24 +0000"  >&lt;p&gt;Has this become irrelevant with ZFS 0.7.0&apos;s MMP? Since hostid isn&apos;t used for that?&lt;/p&gt;</comment>
                            <comment id="205812" author="adilger" created="Fri, 18 Aug 2017 23:35:37 +0000"  >&lt;p&gt;The ZFS MMP implementation still depends on hostid to determine if the pool is being imported on the same node.  There is a patch to create a &lt;tt&gt;zgenhostid&lt;/tt&gt; command to make up for the lack of &lt;tt&gt;genhostid&lt;/tt&gt; on SLES and Ubuntu, but that may only become available with ZFS 0.8.0, so I still think it makes sense for us to add our own &lt;tt&gt;genhostid&lt;/tt&gt; command for those distros until it becomes available.  At that point, we should consider changing our documentation to reference &lt;tt&gt;zgenhostid&lt;/tt&gt;, since the upstream &lt;tt&gt;genhostid&lt;/tt&gt; maintainer has said the command may be removed from RHEL completely.  &lt;/p&gt;</comment>
                            <comment id="209115" author="utopiabound" created="Thu, 21 Sep 2017 18:06:12 +0000"  >&lt;p&gt;&lt;tt&gt;zgenhostid&lt;/tt&gt; made it into 0.7.0.&lt;/p&gt;</comment>
                            <comment id="209135" author="adilger" created="Thu, 21 Sep 2017 21:01:51 +0000"  >&lt;p&gt;Nathaniel, could you please submit a patch that updates our references to &lt;tt&gt;zgenhostid&lt;/tt&gt; instead of &lt;tt&gt;genhostid&lt;/tt&gt; in the &lt;tt&gt;mkfs.lustre.8&lt;/tt&gt; and &lt;tt&gt;tunefs.lustre.8&lt;/tt&gt; man pages. &lt;/p&gt;</comment>
                            <comment id="210360" author="gerrit" created="Thu, 5 Oct 2017 11:49:23 +0000"  >&lt;p&gt;Nathaniel Clark (nathaniel.l.clark@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/29327&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/29327&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9752&quot; title=&quot;Unable to format zfs osts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9752&quot;&gt;&lt;del&gt;LU-9752&lt;/del&gt;&lt;/a&gt; man: Reference zgenhostid instead of genhostid&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: bbb792bc4373a999f0bbc1fd0dba62faf475b7f7&lt;/p&gt;</comment>
                            <comment id="211456" author="gerrit" created="Thu, 19 Oct 2017 06:18:06 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/29327/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/29327/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9752&quot; title=&quot;Unable to format zfs osts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9752&quot;&gt;&lt;del&gt;LU-9752&lt;/del&gt;&lt;/a&gt; man: Reference zgenhostid instead of genhostid&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: a1eb6de081473545fbd5c1fe33e209fe391bf708&lt;/p&gt;</comment>
                            <comment id="211477" author="pjones" created="Thu, 19 Oct 2017 11:56:31 +0000"  >&lt;p&gt;Landed for 2.11&lt;/p&gt;</comment>
                            <comment id="212113" author="gerrit" created="Thu, 26 Oct 2017 18:21:46 +0000"  >&lt;p&gt;Minh Diep (minh.diep@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/29805&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/29805&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9752&quot; title=&quot;Unable to format zfs osts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9752&quot;&gt;&lt;del&gt;LU-9752&lt;/del&gt;&lt;/a&gt; man: Reference zgenhostid instead of genhostid&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 58b218547b24069fffef45eb22a08439b632e548&lt;/p&gt;</comment>
                            <comment id="213807" author="gerrit" created="Wed, 15 Nov 2017 17:42:28 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/29805/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/29805/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9752&quot; title=&quot;Unable to format zfs osts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9752&quot;&gt;&lt;del&gt;LU-9752&lt;/del&gt;&lt;/a&gt; man: Reference zgenhostid instead of genhostid&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 3dd7a41a9262635c42b8ba575d743b60e27ddbae&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_10040" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic</customfieldname>
                        <customfieldvalues>
                                        <label>zfs</label>
    
                        </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|hzzgav:</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="10021"><![CDATA[2]]></customfieldvalue>

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