Hi JR. Yes, the RW branch is local ext2 on /dev/sdb1 I will try the patch and let you know what happens. I did verify that the culprit was not NFS. I copied all of the NFS files locally (to an ext2 filesystem) and the same error occurred (text file busy).
On Thu, Feb 4, 2016 at 8:34 AM, <[1]sf...@users.sourceforge.net> wrote: 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/[2]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=u dp,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 References 1. mailto:sf...@users.sourceforge.net 2. http://5.113.79.8/.isoMounts/114_ThirdPartyLinuxDev.iso=ro
------------------------------------------------------------------------------ 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