<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:24:20 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-2333] Cannot mount a MGS device backed by ZFS if &quot;--fsname&quot; was not passed to mkfs.lustre</title>
                <link>https://jira.whamcloud.com/browse/LU-2333</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When creating a new filesystem on a VM, I ran into the following problem:               &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;                                                                         
$ sudo mkfs.lustre --mgs --backfstype=zfs lustre-mds/mgs &amp;gt; /dev/null               
$ sudo mount.lustre lustre-mds/mgs /mnt/lustre/local/lustre-MGS0000                
mount.lustre: lustre-mds/mgs 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;I tracked the issue down to here:                                                  &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;                                                                         
389 int zfs_is_lustre(char *ds, unsigned *mount_type)                              
390 {                                                                              
391         struct lustre_disk_data tmp_ldd;                                       
392         int ret;                                                               
393                                                                                
394         if (osd_zfs_setup == 0)                                                
395                 return 0;                                                      
396                                                                                
397         ret = zfs_read_ldd(ds, &amp;amp;tmp_ldd);                                      
398         if ((ret == 0) &amp;amp;&amp;amp; (tmp_ldd.ldd_config_ver &amp;gt; 0) &amp;amp;&amp;amp;                      
399             (strlen(tmp_ldd.ldd_fsname) &amp;gt; 0) &amp;amp;&amp;amp;                                
400             (strlen(tmp_ldd.ldd_svname) &amp;gt; 0)) {                                
401                 *mount_type = tmp_ldd.ldd_mount_type;                          
402                 return 1;                                                      
403         }                                                                      
404                                                                                
405         return 0;                                                              
406 }                                                                              
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;                                                                         

&lt;p&gt;Specifically, this line:                                                           &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;                                                                         
399             (strlen(tmp_ldd.ldd_fsname) &amp;gt; 0) &amp;amp;&amp;amp;                                
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;                                                                         

&lt;p&gt;Since I did not specify the &lt;tt&gt;-&lt;del&gt;fsname&lt;/tt&gt; option to &lt;tt&gt;mkfs.lustre&lt;/tt&gt;, &lt;tt&gt;mount.lustre&lt;/tt&gt; fails to recognize the data properly. Reformatting the data set, using the &lt;tt&gt;&lt;/del&gt;-fsname&lt;/tt&gt; option mitigates the issue.&lt;/p&gt;

&lt;p&gt;As you can see, there is no &lt;tt&gt;lustre:fsname&lt;/tt&gt; property.                            &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;                                                                         
$ sudo zfs get all lustre-mds/mgs | grep lustre:                                   
lustre-mds/mgs  lustre:flags          100                    local                 
lustre-mds/mgs  lustre:svname         MGS                    local                 
lustre-mds/mgs  lustre:version        1                      local                 
lustre-mds/mgs  lustre:index          65535                  local                 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;For starters, the error reporting is horrible in this instance. I had to crack open GDB and step through the mount.lustre executable to figure out what was failing. &lt;/p&gt;

&lt;p&gt;And secondly, the user tools should either allow the MGS to be mounted without a &quot;fsname&quot; (if that&apos;s possible?), or fail the &lt;tt&gt;mkfs.lustre&lt;/tt&gt; command with a useful error message if &lt;tt&gt;--fsname&lt;/tt&gt; is not provided.&lt;/p&gt;</description>
                <environment></environment>
        <key id="16686">LU-2333</key>
            <summary>Cannot mount a MGS device backed by ZFS if &quot;--fsname&quot; was not passed to mkfs.lustre</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</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="bzzz">Alex Zhuravlev</assignee>
                                    <reporter username="prakash">Prakash Surya</reporter>
                        <labels>
                            <label>LB</label>
                    </labels>
                <created>Wed, 14 Nov 2012 22:02:09 +0000</created>
                <updated>Fri, 19 Apr 2013 21:47:40 +0000</updated>
                            <resolved>Thu, 13 Dec 2012 12:28:11 +0000</resolved>
                                    <version>Lustre 2.4.0</version>
                                    <fixVersion>Lustre 2.4.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="47848" author="pjones" created="Thu, 15 Nov 2012 11:03:07 +0000"  >&lt;p&gt;Alex will triage this one&lt;/p&gt;</comment>
                            <comment id="47872" author="bzzz" created="Thu, 15 Nov 2012 14:44:42 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/4592&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/4592&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="47874" author="bzzz" created="Thu, 15 Nov 2012 14:46:18 +0000"  >&lt;p&gt;I think it should be fine do not check fsname: the presence of lustre:fsname is verified by zfs_read_ldd(). and MGS does not need fsname to run.&lt;/p&gt;</comment>
                            <comment id="49195" author="bzzz" created="Thu, 13 Dec 2012 12:28:11 +0000"  >&lt;p&gt;landed on master&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|hzvcb3:</customfieldvalue>

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