[LU-6232] Text file busy error -- lustre 2.6.0 client Created: 10/Feb/15  Updated: 22/Sep/19  Resolved: 22/Sep/19

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.6.0, Lustre 2.4.2, Lustre 2.7.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Yan Burman Assignee: WC Triage
Resolution: Fixed Votes: 3
Labels: None
Environment:
  • Client mainline kernel 3.12.5 with patches (mentioned in LU-4400) / lustre-utils 2.4.2
  • Servers lustre 2.4.2/ZFS OSDs and 2.4.2/ldiskfs OSDs
  • ko2iblnd an ksocklnd

Attachments: File LU-4398.tar.bz2     Text File LU-4520.ETXTBSY.lctl-dk.txt     Text File LU-4520.ETXTBSY.strace.txt     Text File LU-4520.ok-vanilla.pcap.txt     Text File LU-4520.pcap.txt     File LU4429+4520.patch    
Issue Links:
Related
is related to LU-4398 mdt_object_open_lock() may not flush ... Resolved
is related to LU-4429 clients leaking open handles/bad lock... Resolved
Severity: 3
Rank (Obsolete): 17443

 Description   

When executing the following simple script, the in-kernel client fails with error "Text file busy", while the out-of-kernel 2.4.2 client compiled against 2.6.32 vanilla works.

-----------
#!/bin/bash

rm -f ./test.sh
touch ./test.sh && chmod a+x ./test.sh
echo "echo foo" > ./test.sh
./test.sh
echo "echo foo" > ./test.sh
------------

The following script works in all cases:

-----------
#!/bin/bash

rm -f ./test.sh
touch ./test.sh && chmod a+x ./test.sh
echo "echo foo" > ./test.sh
bash ./test.sh
echo "echo foo" > ./test.sh
------------



 Comments   
Comment by Yan Burman [ 10/Feb/15 ]

This bug is present in lustre 2.6.0. I tried applying the attached patch, but it does not apply since LU4429 is already in 2.6.0

Please advise

Comment by Scott Nolin [ 01/Apr/16 ]

While this is a bug with an easy workaround, it's such a basic thing I'm surprised it's not addressed.

It definitely exists in 2.7, and we'll test 2.8 soon.

While not dangerous, it generates some amount of confusion and help requests.

Generated at Sat Feb 10 01:58:25 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.