I'm having problems with AUFS I'd appreciate a hand with.

Relevant mounts:

/nfsshare - shared nfs which is mounted at /mnt
/mnt - is an nfs mount
/tmpfs - a tmpfs mountpoint
/aufs - the union of the two

I've tried with all different udba settings.

Any cached inodes on the /aufs mount stay permanently.

If I ls /aufs/test and it's not there, then I go touch /nfsshare/test or
/mnt/test the are still unavailable in /aufs

If I rm the file after forcing linux to flush with "echo 3 >
/proc/sys/vm/drop_caches", AUFS can see the test file now, only if I rm
it either from /mnt or /nfsshare I then continually get:

ls: cannot access test: Stale NFS file handle

It never clears until I manually force clearing the inode cache.

I'm currently battling this problem with the /etc/passwd file in a
library where 30 workstations use AUFS to overlay tmps on a / that's
mounted ro via NFS.

Is there any way to perhaps make it so certain single files never get
cached? if I could at least get /etc/passwd and /etc/group to never
cache or bypass AUFS on those I'd be happier.

Thanks.


I've tried on Kubuntu 9.10 and the upcoming 10.04. My current info is:
r...@gadsden:~/libuntu# modinfo aufs
filename:      
/lib/modules/2.6.32-15-generic-pae/kernel/ubuntu/aufs/aufs.ko
version:        2-standalone.tree-20091207

I ran this same type of setup 4 years ago with unionfs and didn't have
this problem, but for all I know something has changed in NFS that would
make it happen with unionfs now too.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

Reply via email to