James Burry: > All of the ro branches are mounted from an NFS share. Maybe the extra > latency associated with the NFS share has something to do with the issue. > The file which is causing the "text file busy" error for me is coming form > /proj/5.113.79.8/.isoMounts/114_ThirdPartyLinuxDev.iso=ro, which is from > the NFS mount.
It is very hard for me to reproduce the problem. I am trying repeatedly this test script. The result is always success. ---------------------------------------------------------------------- cd /my/aufs NfsV3Ro=/local/nfsv3/server/dir sudo mount -o remount,rw $NfsV3Ro cat << EOF > $NfsV3Ro/a.sh #!/bin/sh echo success EOF ldd /bin/sh /bin/bash /bin/chmod | fgrep -v 'not a dynamic' | sort | uniq | #tee /dev/tty | awk ' NF == 1 {sub(/:$/, ""); print} NF == 4 {print $3} NF == 2 {print $1} ' | xargs -ri cp -ipu --parent \{\} $NfsV3Ro/ sudo mount -o remount,ro $NfsV3Ro stat -f . ../rw ../ro sudo chroot . sh -c "chmod +x a.sh && ./a.sh" ---------------------------------------------------------------------- output: ---------------------------------------------------------------------- (/proc/mounts) /dev/ram1 /tmp/nfsv3/tmp/ro ext2 ro,relatime,errors=continue,user_xattr,acl 0 0 localhost:/tmp/nfsv3/tmp/ro /dev/shm/ro nfs ro,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=udp,timeo=11,retrans=3,mountaddr=127.0.0.1,mountvers=3,mountport=54974,mountproto=udp,local_lock=none,addr=127.0.0.1 0 0 /dev/ram0 /dev/shm/rw ext2 rw,relatime,errors=continue,user_xattr,acl 0 0 none /dev/shm/u aufs rw,relatime,si=aa6735bb21eac00d 0 0 (/sys/fs/aufs/si_*/br[01]) /dev/shm/rw=rw /dev/shm/ro=ro (stat) File: "." ID: 0 Namelen: 242 Type: UNKNOWN (0x61756673) Block size: 1024 Fundamental block size: 1024 Blocks: Total: 7931 Free: 7868 Available: 7459 Inodes: Total: 2048 Free: 2016 File: "../rw" ID: c931affb527b7092 Namelen: 255 Type: ext2/ext3 Block size: 1024 Fundamental block size: 1024 Blocks: Total: 7931 Free: 7868 Available: 7459 Inodes: Total: 2048 Free: 2016 File: "../ro" ID: 0 Namelen: 255 Type: nfs Block size: 32768 Fundamental block size: 32768 Blocks: Total: 248 Free: 145 Available: 132 Inodes: Total: 2048 Free: 1958 (chroot) success ---------------------------------------------------------------------- If you can, try the attached patch. It doesn't solve the problem, but helps finding where ETXTBSY is returned. J. R. Okajima
a.patch.bz2
Description: BZip2 compressed data
------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140