Originally posted by: grukrz1
Hello
I have NFS filesystem mounted with noac option:
noac Specifies that the mount command performs no attribute or directory caching. If you do not specify this option, the attributes (including permissions, size, and timestamps) for files and directories are cached to reduce the need to perform over-the-wire NFSPROC_GETATTR Remote Procedure Calls (RPCs). The NFSPROC_GETATTR RPC enables a client to prompt the server for file and directory attributes. The acregmin, acregmax, acdirmin, and acdirmax options control the length of time for which the cached values are retained. Why the "find ... -mmin -10" doesn't find a file on the nfs mount just after it was created but with a few seconds delay?
# mount -o bg,hard,intr,rsize=4096,wsize=4096,vers=3,proto=tcp,sec=sys,rw,noac nfsserver:/home/test /mnt # touch /mnt/test4;C=0;until [ $C -ge 1 ];
do C=$(find /mnt -type f -mmin -10|wc -l);echo
"$(date +%S) :: $C :: $(ls -1 /mnt 2>/dev/null)";sleep 1;done 08 :: 0 :: test4 09 :: 0 :: test4 10 :: 0 :: test4 11 :: 0 :: test4 12 :: 0 :: test4 13 :: 0 :: test4 14 :: 1 :: test4 # mount|grep nfs nfsserver /home/test /mnt nfs3 Apr 05 07:31 bg,hard,intr,rsize=4096,wsize=4096,vers=3,proto=tcp,sec=sys,rw,noac #
#AIX-Forum