Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-6232

Text file busy error -- lustre 2.6.0 client

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • Lustre 2.6.0, Lustre 2.4.2, Lustre 2.7.0
    • None
    • 3
    • 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
      ------------

      Attachments

        1. LU-4398.tar.bz2
          118 kB
        2. LU4429+4520.patch
          3 kB
        3. LU-4520.ETXTBSY.lctl-dk.txt
          436 kB
        4. LU-4520.ETXTBSY.strace.txt
          20 kB
        5. LU-4520.ok-vanilla.pcap.txt
          5 kB
        6. LU-4520.pcap.txt
          4 kB

        Issue Links

          Activity

            [LU-6232] Text file busy error -- lustre 2.6.0 client

            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.

            sknolin Scott Nolin (Inactive) added a comment - 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.
            yanb Yan Burman added a comment -

            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

            yanb Yan Burman added a comment - 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

            People

              wc-triage WC Triage
              yanb Yan Burman
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: