<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:20:24 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-1870] umount fails with multipath device</title>
                <link>https://jira.whamcloud.com/browse/LU-1870</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Unmount of lustre target fails when target device is a multipath device.&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;# mount -t lustre /dev/dm-47 /mnt/fsperf/ost/0
# cat /etc/mtab
/dev/dm-47 /mnt/fsperf/ost/0 lustre rw 0 0

# cat /sys/block/dm-47/dm/name
mpathau
# ls -l /dev/mapper/mpathau 
lrwxrwxrwx 1 root root 8 Sep  7 09:54 /dev/mapper/mpathau -&amp;gt; ../dm-47

# umount /dev/dm-47
umount: /dev/dm-47: not mounted
# umount -v /dev/dm-47
Could not find /dev/mapper/mpathau in mtab
# umount -v /dev/mapper/mpathau
Could not find /dev/mapper/mpathau in mtab
umount: /dev/mapper/mpathau: not mounted
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is because mount.lustre and umount commands do not handle multipath devices the same way.&lt;/p&gt;

&lt;p&gt;&apos;mount.lustre /dev/dm-47&apos; inserts an entry in /etc/mtab with device named: /dev/dm-47&lt;br/&gt;
&apos;umount /dev/dm-47&apos; looks for an entry in /etc/mtab named: /dev/mapper/mpathau.&lt;/p&gt;

&lt;p&gt;In previous lustre version, the mount.lustre command was insterting in /etc/mtab the &apos;/dev/mapper/mpathau&apos; device name. This changed with commit 2d7e03100adb7975601a194e476bee50d8e2413c for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-1581&quot; title=&quot;ZFS OSD Utilities&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-1581&quot;&gt;&lt;del&gt;LU-1581&lt;/del&gt;&lt;/a&gt; because computation of &apos;/dev/mapper/mpathxx&apos; name has no effect on mo_usource field since the string was duplicated from real_path: &apos;strdup(real_path)&apos;.&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;        /**
         * Try to get the real path to the device, in &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; it is a
         * symbolic link &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; instance
         */
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (realpath(mop-&amp;gt;mo_usource, real_path) != NULL) {
                mop-&amp;gt;mo_usource = strdup(real_path);

                ptr = strrchr(real_path, &lt;span class=&quot;code-quote&quot;&gt;&apos;/&apos;&lt;/span&gt;);
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (ptr &amp;amp;&amp;amp; strncmp(ptr, &lt;span class=&quot;code-quote&quot;&gt;&quot;/dm-&quot;&lt;/span&gt;, 4) == 0 &amp;amp;&amp;amp; isdigit(*(ptr + 4))) {
                        snprintf(path, sizeof(path), &lt;span class=&quot;code-quote&quot;&gt;&quot;/sys/block/%s/dm/name&quot;&lt;/span&gt;, ptr+1);
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ((f = fopen(path, &lt;span class=&quot;code-quote&quot;&gt;&quot;r&quot;&lt;/span&gt;))) {
                                &lt;span class=&quot;code-comment&quot;&gt;/* read &lt;span class=&quot;code-quote&quot;&gt;&quot;&amp;lt;name&amp;gt;\n&quot;&lt;/span&gt; from sysfs */&lt;/span&gt;
                                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (fgets(name, sizeof(name), f) &amp;amp;&amp;amp; (sz = strlen(name)) &amp;gt; 1) {
                                        name[sz - 1] = &lt;span class=&quot;code-quote&quot;&gt;&apos;\0&apos;&lt;/span&gt;;
                                        snprintf(real_path, sizeof(real_path), &lt;span class=&quot;code-quote&quot;&gt;&quot;/dev/mapper/%s&quot;&lt;/span&gt;, name);
                                }
                                fclose(f);
                        }
                }
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I will provide a patch.&lt;/p&gt;</description>
                <environment>lustre 2.2.93&lt;br/&gt;
bullxlinux distribution (based on redhat 6.2)&lt;br/&gt;
kernel 2.6.32-220</environment>
        <key id="15855">LU-1870</key>
            <summary>umount fails with multipath device</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="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="bogl">Bob Glossman</assignee>
                                    <reporter username="pichong">Gregoire Pichon</reporter>
                        <labels>
                    </labels>
                <created>Mon, 10 Sep 2012 09:17:12 +0000</created>
                <updated>Thu, 18 Oct 2012 08:22:23 +0000</updated>
                            <resolved>Thu, 18 Oct 2012 08:22:23 +0000</resolved>
                                    <version>Lustre 2.3.0</version>
                                    <fixVersion>Lustre 2.4.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="44488" author="pichong" created="Mon, 10 Sep 2012 09:37:58 +0000"  >&lt;p&gt;Here is the patch for master: &lt;a href=&quot;http://review.whamcloud.com/3922&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/3922&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="44494" author="pjones" created="Mon, 10 Sep 2012 10:22:45 +0000"  >&lt;p&gt;Thanks for the patch Gregoire.&lt;/p&gt;

&lt;p&gt;Bob&lt;/p&gt;

&lt;p&gt;Could you please take care of getting this patch landed&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="46708" author="pichong" created="Thu, 18 Oct 2012 03:22:48 +0000"  >&lt;p&gt;The fix has been merged into master the 2nd, October.&lt;/p&gt;

&lt;p&gt;This ticket can be marked Resolved.&lt;/p&gt;</comment>
                            <comment id="46722" author="pjones" created="Thu, 18 Oct 2012 08:22:23 +0000"  >&lt;p&gt;Thanks Gregoire! Landed for 2.4&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>mount</label>
            <label>server</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzv5g7:</customfieldvalue>

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