Here is the kernel message produced :
   [ 5185.703098] ------------[ cut here ]------------
   [  5185.703120]  WARNING: CPU: 2 PID: 31077 at include/linux/fs.h:2502
   au_h_open+0x209/0x250()
   [ 5185.703121] Modules linked in: binfmt_misc nls_utf8 isofs nfsv3 nfs_acl
   nfs  lockd  grace fscache snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm
   snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device snd_timer
   crc32_pclmul joydev aesni_intel snd aes_i586 xts lrw gf128mul ablk_helper
   cryptd  input_leds  soundcore  serio_raw i2c_piix4 mac_hid 8250_fintek
   parport_pc ppdev sunrpc lp parport autofs4 hid_generic usbhid hid ahci
   psmouse e1000 libahci pata_acpi video
   [ 5185.703157] CPU: 2 PID: 31077 Comm: sh Not tainted 4.4.0+ #1
   [ 5185.703158] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS
   VirtualBox 12/01/2006
   [ 5185.703160] Â c1adf9a7 e34f228e 00000000 ec3f3c84 c13bdab8 00000000
   ec3f3cb4 c106d927
   [ 5185.703163] Â c19d7610 00000002 00007965 c19f1714 000009c6 c12fb899
   c12fb899 dab68600
   [ 5185.703166] Â ffffffff ef0d4f00 ec3f3cc4 c106da32 00000009 00000000
   ec3f3cfc c12fb899
   [ 5185.703170] Call Trace:
   [ 5185.703177] Â [<c13bdab8>] dump_stack+0x41/0x59
   [ 5185.703183] Â [<c106d927>] warn_slowpath_common+0x87/0xc0
   [ 5185.703184] Â [<c12fb899>] ? au_h_open+0x209/0x250
   [ 5185.703186] Â [<c12fb899>] ? au_h_open+0x209/0x250
   [ 5185.703188] Â [<c106da32>] warn_slowpath_null+0x22/0x30
   [ 5185.703189] Â [<c12fb899>] au_h_open+0x209/0x250
   [ 5185.703191] Â [<c12fcecf>] au_do_open_nondir+0x11f/0x130
   [ 5185.703192] Â [<c12fcdb0>] ? au_reval_and_lock_fdi+0x9b0/0x9b0
   [ 5185.703194] Â [<c12fbaea>] au_do_open+0x20a/0x280
   [ 5185.703195] Â [<c12f9160>] ? aufs_d_revalidate+0x880/0xe00
   [ 5185.703197] Â [<c12fdcd2>] aufs_open_nondir+0x72/0x190
   [ 5185.703199] Â [<c12fcdb0>] ? au_reval_and_lock_fdi+0x9b0/0x9b0
   [ 5185.703202] Â [<c11d207c>] do_dentry_open+0x1ec/0x300
   [ 5185.703203] Â [<c12fdc60>] ? aufs_fsync_nondir+0x120/0x120
   [ 5185.703205] Â [<c11d35bf>] vfs_open+0x4f/0x60
   [ 5185.703208] Â [<c11e1b13>] path_openat+0x423/0x1160
   [ 5185.703212] Â [<c11cc492>] ? mem_cgroup_commit_charge+0x62/0xe0
   [ 5185.703214] Â [<c11e3928>] do_filp_open+0x68/0xe0
   [ 5185.703218] Â [<c13654d0>] ? aa_alloc_task_context+0x20/0x40
   [ 5185.703219] Â [<c13654d0>] ? aa_alloc_task_context+0x20/0x40
   [ 5185.703222] Â [<c136b6c4>] ? apparmor_cred_prepare+0x24/0x40
   [ 5185.703224] Â [<c11d9827>] do_open_execat+0x67/0x170
   [ 5185.703228] Â [<c108ba37>] ? prepare_creds+0x97/0xe0
   [ 5185.703230] Â [<c11db31e>] do_execveat_common+0x16e/0x670
   [ 5185.703232] Â [<c11e29ea>] ? getname_flags+0x3a/0x1a0
   [ 5185.703233] Â [<c11dba74>] SyS_execve+0x34/0x40
   [ 5185.703237] Â [<c10038fd>] do_fast_syscall_32+0x8d/0x150
   [ 5185.703241] Â [<c17bb39c>] sysenter_past_esp+0x3d/0x61
   [ 5185.703243] ---[ end trace 2d2178714e9cff6b ]---

   On Thu, Feb 4, 2016 at 12:39 PM, James Burry <[1]jbu...@gmail.com> wrote:

   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, <[2]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/[3]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:jbu...@gmail.com
   2. mailto:sf...@users.sourceforge.net
   3. 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

Reply via email to