<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:11:12 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-872] &apos;Text file busy&apos; error when creating executable on NFS share and then running it on Lustre node.</title>
                <link>https://jira.whamcloud.com/browse/LU-872</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;We have exported Lustre file system via NFS (let&apos;s say from n1). &lt;/p&gt;

&lt;p&gt;The attached script &apos;repr.sh&apos; creates the executable &apos;test.sh&apos; on the Lustre folder, then connects to n1 by ssh and executes the created script &apos;test.sh&apos; on n1. &lt;/p&gt;

&lt;p&gt;The script &apos;repr.sh&apos; always results with the error &quot;bash: /folder_on_lustre/test.sh: Text file busy&quot;&lt;/p&gt;

&lt;p&gt;Reproducing script:&lt;br/&gt;
cd /folder_on_lustre&lt;br/&gt;
rm -rf test.sh&lt;br/&gt;
echo &quot;ls -l&quot; &amp;gt;&amp;gt; test.sh&lt;br/&gt;
chmod +x test.sh&lt;br/&gt;
echo &quot;ls&quot; &amp;gt;&amp;gt; test.sh&lt;br/&gt;
ssh -o &apos;StrictHostKeyChecking no&apos; n1 &apos;/folder_on_lustre/test.sh&apos;&lt;/p&gt;</description>
                <environment></environment>
        <key id="12512">LU-872</key>
            <summary>&apos;Text file busy&apos; error when creating executable on NFS share and then running it on Lustre node.</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="laisiyao">Lai Siyao</assignee>
                                    <reporter username="evg1">Evgeny Repekto</reporter>
                        <labels>
                    </labels>
                <created>Mon, 21 Nov 2011 23:54:01 +0000</created>
                <updated>Wed, 7 Dec 2011 01:49:07 +0000</updated>
                            <resolved>Wed, 7 Dec 2011 01:49:07 +0000</resolved>
                                    <version>Lustre 1.8.7</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="23276" author="pjones" created="Tue, 22 Nov 2011 00:10:11 +0000"  >&lt;p&gt;Lai&lt;/p&gt;

&lt;p&gt;Could you please look at this one?&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="23698" author="laisiyao" created="Mon, 5 Dec 2011 22:22:58 +0000"  >&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@vivaldi tests]# cat /tmp/repr.sh 
cd /mnt/lustre
rm -rf test.sh
echo &quot;ls -l&quot; &amp;gt;&amp;gt; test.sh
chmod +x test.sh
echo &quot;ls&quot; &amp;gt;&amp;gt; test.sh
ssh chopin &apos;/mnt/lustre/test.sh&apos;
[root@vivaldi tests]# sh /tmp/repr.sh 
root@chopin&apos;s password: 
total 56
-rw-------. 1 root root  1891 Nov 30 05:35 anaconda-ks.cfg
-rw-r--r--. 1 root root 40354 Nov 30 05:35 install.log
-rw-r--r--. 1 root root  8168 Nov 30 05:34 install.log.syslog
anaconda-ks.cfg
install.log
install.log.syslog
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I tested on my environment, it could pass. Evgeny, could you verify &lt;a href=&quot;http://review.whamcloud.com/#change,1259&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,1259&lt;/a&gt; is included in your lustre code?&lt;/p&gt;</comment>
                            <comment id="23701" author="evg1" created="Mon, 5 Dec 2011 23:24:55 +0000"  >&lt;p&gt;Yes, we are using this fix as a part of 1.8.7 release. But if it matters, it is deployed on n1 only, on other Lustre nodes we use 1.8.2&lt;/p&gt;

&lt;p&gt;The difference I see in your scenario output is that we use password-less connection by ssh.&lt;/p&gt;</comment>
                            <comment id="23706" author="laisiyao" created="Tue, 6 Dec 2011 02:31:36 +0000"  >&lt;p&gt;I made ssh password-less, and it showed the same result:&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@vivaldi tests]# mount|grep /mnt/lustre
vivaldi@tcp:/lustre on /mnt/lustre type lustre (rw,user_xattr,acl,flock)
[root@vivaldi tests]# ssh chopin mount|grep /mnt/lustre
vivaldi:/mnt/lustre on /mnt/lustre type nfs (rw,nolock,addr=192.168.111.129)
[root@vivaldi tests]# cat /tmp/repr.sh 
cd /mnt/lustre
rm -rf test.sh
echo &quot;ls -l&quot; &amp;gt;&amp;gt; test.sh
chmod +x test.sh
echo &quot;ls&quot; &amp;gt;&amp;gt; test.sh
ssh chopin &apos;/mnt/lustre/test.sh&apos;
[root@vivaldi tests]# sh /tmp/repr.sh
total 56
-rw-------. 1 root root  1891 Nov 30 05:35 anaconda-ks.cfg
-rw-r--r--. 1 root root 40354 Nov 30 05:35 install.log
-rw-r--r--. 1 root root  8168 Nov 30 05:34 install.log.syslog
anaconda-ks.cfg
install.log
install.log.syslog
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I want to verify one thing: on node &apos;n1&apos; is /folder_on_lustre a NFS mountpoint or a Lustre mountpoint? In your test did you use any NFS share?&lt;/p&gt;</comment>
                            <comment id="23781" author="evg1" created="Tue, 6 Dec 2011 23:11:39 +0000"  >&lt;p&gt;Sorry if I confused you. &lt;/p&gt;

&lt;p&gt;Clarifying our case:&lt;/p&gt;

&lt;p&gt;1) n1 - is Lustre node of version 1.8.7 containing folder /folder_on_lustre. &lt;br/&gt;
2) besides n1 this folder is also contained on other Lustre nodes of version 1.8.2 (we specifically deployed Lustre 1.8.7 on n1 to see if resolution of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-146&quot; title=&quot;executable files on NFS share failed with &amp;quot;Text file busy&amp;quot; when executed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-146&quot;&gt;&lt;del&gt;LU-146&lt;/del&gt;&lt;/a&gt; fixes our problem).&lt;br/&gt;
3) c1 - is the remote client mounting Lustre folder &apos;/folder_on_lustre&apos; from n1 by NFS to the mountpoint with the same name , i.e. &apos;/folder_on_lustre&apos;&lt;br/&gt;
4) when we run repr.sh on c1 (actually from /folder_on_lustre) we get the described behaviour.&lt;br/&gt;
5) this is what we have in /etc/fstab  on c1:&lt;br/&gt;
n1_ip:/folder_on_lustre     /folder_on_lustre                       nfs  rw,hard,intr  0 0&lt;/p&gt;</comment>
                            <comment id="23782" author="laisiyao" created="Wed, 7 Dec 2011 01:03:55 +0000"  >&lt;p&gt;Evgeny, I tested the same as you said.  I&apos;m afraid you didn&apos;t upgrade MDS to Lustre 1.8.7; &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-146&quot; title=&quot;executable files on NFS share failed with &amp;quot;Text file busy&amp;quot; when executed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-146&quot;&gt;&lt;del&gt;LU-146&lt;/del&gt;&lt;/a&gt; is a fix for MDS, upgrading client only won&apos;t help.&lt;/p&gt;</comment>
                            <comment id="23786" author="evg1" created="Wed, 7 Dec 2011 01:34:25 +0000"  >&lt;p&gt;Lai, &lt;/p&gt;

&lt;p&gt;I made sure with our IT guys and they confirmed that n1 was not our MDS. We&apos;ll test this issue as only we get our MDS upgraded to 1.8.7&lt;/p&gt;

&lt;p&gt;I think this ticket may be closed. If it reproduces after upgrade I&apos;ll reopen it (I think I have the permission to?).&lt;/p&gt;

&lt;p&gt;Thank you and sorry for bother.&lt;/p&gt;</comment>
                            <comment id="23787" author="pjones" created="Wed, 7 Dec 2011 01:49:07 +0000"  >&lt;p&gt;No problem.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10628" name="repr.sh" size="163" author="evg1" created="Mon, 21 Nov 2011 23:54:01 +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>export</label>
            <label>ldlm</label>
            <label>nfs</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzvhpb:</customfieldvalue>

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