<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:01:42 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-6610] lfs df -h query  hangs when OST1 is unmounted/offline  manually</title>
                <link>https://jira.whamcloud.com/browse/LU-6610</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Test setup : 1 Single Scientific Linux VM with memory: 1 GB and &lt;br/&gt;
Disk space of  50 GB,  this VM has all Lustre components configured in it : i.e ,&lt;br/&gt;
===========&lt;br/&gt;
1 MDS, &lt;br/&gt;
2 MDTs&lt;br/&gt;
2 OSTs&lt;br/&gt;
and a client.&lt;br/&gt;
============================================&lt;br/&gt;
Note : HA is not configured for the OSTs at the backend.&lt;br/&gt;
           All the MDTs and OSTs are created on Loop devices.&lt;br/&gt;
=============================================&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;lfs df -h output before I started the test :&lt;br/&gt;
=====================================================&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@localhost lustre&amp;#93;&lt;/span&gt;# lfs df -h&lt;br/&gt;
UUID                       bytes        Used   Available Use% Mounted on&lt;br/&gt;
lustre-MDT0000_UUID         7.2G      435.8M        6.2G   6% /mnt/lustre&lt;span class=&quot;error&quot;&gt;&amp;#91;MDT:0&amp;#93;&lt;/span&gt;&lt;br/&gt;
lustre-MDT0001_UUID         9.0G      536.8M        7.9G   6% /mnt/lustre&lt;span class=&quot;error&quot;&gt;&amp;#91;MDT:1&amp;#93;&lt;/span&gt;&lt;br/&gt;
lustre-OST0000_UUID        14.9G      441.2M       13.7G   3% /mnt/lustre&lt;span class=&quot;error&quot;&gt;&amp;#91;OST:0&amp;#93;&lt;/span&gt;&lt;br/&gt;
lustre-OST0001_UUID        14.9G      441.2M       13.7G   3% /mnt/lustre&lt;span class=&quot;error&quot;&gt;&amp;#91;OST:1&amp;#93;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;filesystem summary:        29.9G      882.5M       27.5G   3% /mnt/lustre&lt;br/&gt;
=========================================================&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;mount command output :&lt;br/&gt;
=====================&lt;br/&gt;
/dev/mapper/VolGroup-lv_root on / type ext4 (rw)&lt;br/&gt;
proc on /proc type proc (rw)&lt;br/&gt;
sysfs on /sys type sysfs (rw)&lt;br/&gt;
devpts on /dev/pts type devpts (rw,gid=5,mode=620)&lt;br/&gt;
tmpfs on /dev/shm type tmpfs (rw)&lt;br/&gt;
/dev/sda1 on /boot type ext4 (rw)&lt;br/&gt;
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)&lt;br/&gt;
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)&lt;br/&gt;
/dev/loop0 on /mnt/mds1 type lustre (rw,loop=/dev/loop0)&lt;br/&gt;
/dev/loop1 on /mnt/ost1 type lustre (rw,loop=/dev/loop1)&lt;br/&gt;
/dev/loop2 on /mnt/ost2 type lustre (rw,loop=/dev/loop2)&lt;br/&gt;
localhost@tcp:/lustre on /mnt/lustre type lustre (rw,user_xattr,flock)&lt;br/&gt;
/dev/loop7 on /mnt/mds2 type lustre (rw)&lt;br/&gt;
==================================================&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;Below are the steps to reproduce the issue :&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;1.mounted Lustre filesystem on a client, executing the script  &lt;br/&gt;
   &amp;lt;/lustre/tests/llmount.sh &amp;gt;&lt;br/&gt;
2. checked lfs df -h command output. All were fine , nicely displaying the &lt;br/&gt;
     MDTs/OSTs.&lt;br/&gt;
3. Now from client manually unmount/offline  the device on which OST1 is &lt;br/&gt;
    configured.&lt;br/&gt;
4. Type the command lfs df -h on the client, it hangs.&lt;br/&gt;
5. /var/log/messages or dmesg continuously prints messages &quot;LustreError: : lustre-OST0000_UUID: not available for connect from 0@lo (no target). If you are running an HA  pair check that the target is mounted on the other server.&lt;/p&gt;

&lt;p&gt;6. The command &amp;lt;lfs df -h&amp;gt; should come out of the loop and throw some error message at the user space printing OST is  unavailable , or user/client should be not allowed to unmount OST just by typing simple unix unmount command. If it is allowed then error condition should be handled .&lt;br/&gt;
======================&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;when lfs df -h was stuck  :&lt;br/&gt;
========================&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@localhost lustre&amp;#93;&lt;/span&gt;# lfs df -h&lt;br/&gt;
UUID                       bytes        Used   Available Use% Mounted on&lt;br/&gt;
lustre-MDT0000_UUID         7.2G      435.8M        6.2G   6% /mnt/lustre&lt;span class=&quot;error&quot;&gt;&amp;#91;MDT:0&amp;#93;&lt;/span&gt;&lt;br/&gt;
lustre-MDT0001_UUID         9.0G      536.8M        7.9G   6% /mnt/lustre&lt;span class=&quot;error&quot;&gt;&amp;#91;MDT:1&amp;#93;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;*********************&lt;b&gt;HUNG&lt;/b&gt;**************************************&lt;/p&gt;

&lt;p&gt;Attaching /var/log/messages and dmesg&lt;br/&gt;
===================================&lt;/p&gt;




</description>
                <environment>Scientific Linux release 6.6 (Carbon)</environment>
        <key id="30206">LU-6610</key>
            <summary>lfs df -h query  hangs when OST1 is unmounted/offline  manually</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="3">Duplicate</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="paramitavarma">Paramita varma</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 May 2015 10:26:48 +0000</created>
                <updated>Wed, 5 Aug 2020 21:35:32 +0000</updated>
                            <resolved>Wed, 5 Aug 2020 21:35:32 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                            <comments>
                            <comment id="116307" author="paramitavarma" created="Mon, 25 May 2015 06:23:57 +0000"  >
&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Today I tried the scenario  with Disk device as well instead of using loop device. &lt;br/&gt;
This time the additional OST was created on disk device but still seeing the issue.&lt;/p&gt;

&lt;p&gt;Thanks &amp;amp; Regards,&lt;br/&gt;
Paramita Varma&lt;/p&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="39122">LU-8544</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="17948" name="OSt-on-disk-device-commandPrompt-output.txt" size="1353" author="paramitavarma" created="Mon, 25 May 2015 06:31:34 +0000"/>
                            <attachment id="17810" name="dmesg.txt" size="77789" author="paramitavarma" created="Mon, 18 May 2015 10:26:48 +0000"/>
                            <attachment id="17811" name="log-Messages.txt" size="238688" author="paramitavarma" created="Mon, 18 May 2015 10:26:48 +0000"/>
                            <attachment id="17949" name="ost-on-disk-device-var-log-msg.txt" size="3269" author="paramitavarma" created="Mon, 25 May 2015 06:31:34 +0000"/>
                    </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>client</label>
            <label>hang</label>
            <label>mount</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10070" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Project</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10032"><![CDATA[Test Infrastructure]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzxdiv:</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="10022"><![CDATA[3]]></customfieldvalue>

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