Hi! What do these errors mean? Mar 31 17:00:11 www /kernel: nfs_getpages: error 70 Mar 31 17:00:11 www /kernel: vm_fault: pager read error, pid 33624 (httpd) I have Apache 1.3 server running on 4.9-STABLE. It processes requests to plain html files located on mounted NFS filesystem. NFS server is pre-PAE FreeBSD 4.8-STABLE system (plus security patches). It often updates it file in this way: make_new_version index.html.0 mv index.html.0 index.html HTTP-clients refresh this file very often and sometimes they get the file, but sometimes then get standard Apache 'Forbidden' error page. Apache error log contains: [error] [client x.x.x.x] (70)Stale NFS file handle: file permissions deny server access: /mnt/main/netstat/index.html What should I do to avoid this error? Eugene Grosbein
Eugene, You may want to study a discussion dating back to the last year :) http://groups.google.com/groups?hl=ru&lr=&ie=UTF-8&oe=UTF-8&threadm=fa.dbqdt10.144qbau%40ifi.uio.no&rnum=1&prev=/groups%3Fq%3Dalekseyev%2Bnfs%2Battributes%26hl%3Dru%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3Dfa.dbqdt10.144qbau%2540ifi.uio.no%26rnum%3D1 http://groups.google.com/groups?q=alekseyev+nfs+attributes&hl=ru&lr=&ie=UTF-8&oe=UTF-8&selm=20030622190056.2AAD237B405_hub.freebsd.org%40ns.sol.net&rnum=2 http://groups.google.com/groups?q=alekseyev+nfs+attributes&hl=ru&lr=&ie=UTF-8&oe=UTF-8&selm=20030630190106.7FF8537B405_hub.freebsd.org%40ns.sol.net&rnum=3 If you'd like, try this patch (it may help for NFSv3 and certain usage patterns) http://blackflag.ru/patches/open-retry-stale.diff> make_new_version index.html.0 > mv index.html.0 index.html > > HTTP-clients refresh this file very often and sometimes they get the > file, but sometimes then get standard Apache 'Forbidden' error page. > > Apache error log contains: > [error] [client x.x.x.x] (70)Stale NFS file handle: file > permissions deny server access: /mnt/main/netstat/index.html > > What should I do to avoid this error? > > Eugene Grosbein
On Wed, Mar 31, 2004 at 06:55:06PM +0800, Eugene Grosbein wrote: [...]> Apache error log contains: > [error] [client x.x.x.x] (70)Stale NFS file handle: file > permissions deny server access: /mnt/main/netstat/index.html > > What should I do to avoid this error?Try changing the amount of time that attributes are cached for with the acregmin/acregmax/acdirmin/acdirmax options to mount_nfs. Setting them all to 1 might be a place to start. This won't eliminate the problem entirely, but it may make it occur less often. Tim