From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,b858114b6e337ef3 X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!aotearoa.belnet.be!ikaria.belnet.be!news.belnet.be!snic.vub.ac.be!not-for-mail From: Wim Cossement Newsgroups: comp.unix.tru64 Subject: Re: NFS-server on Tru64 5.1A b0rks! Date: Fri, 20 Apr 2007 10:43:25 +0200 Organization: VUB/ULB Computing Centre Message-ID: References: <46252E4D.7050306@spamcop.net> <1177031441.531682.237110@o5g2000hsb.googlegroups.com> NNTP-Posting-Host: ultrpc57.vub.ac.be Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Trace: snic.vub.ac.be 1177058610 8814 134.184.84.107 (20 Apr 2007 08:43:30 GMT) X-Complaints-To: usenet@snic.vub.ac.be NNTP-Posting-Date: 20 Apr 2007 08:43:30 GMT User-Agent: Thunderbird 1.5.0.10 (X11/20070305) In-Reply-To: <1177031441.531682.237110@o5g2000hsb.googlegroups.com> Xref: g2news1.google.com comp.unix.tru64:982 JLPARSEC wrote: > On Apr 18, 4:54 am, Wim Cossement wrote: >> Ole Holm Nielsen wrote: >>> Wim Cossement wrote: >>>> The solution is to turn of READDIRPLUS (what is it anyway?) >>>> ladebug -k >>>> assign doreaddirplus=0 >>>> quit >>> Here's further advice: You may not have "ladebug" installed, >>> but probably you have /usr/bin/dbx. You may then modify >>> the "doreaddirplus" variable until the next reboot by: >>> # dbx -k /vmunix >>> (dbx) assign doreaddirplus=0 >>> (dbx) quit >>> If you want the change to be persistent across reboots do: >>> # dbx -k /vmunix >>> (dbx) patch doreaddirplus=0 >>> (dbx) quit >>> If you upgrade the kernel, this will have to be repeated. >>> We have verified that this workaround solves the NFS problem >>> with a Tru64 NFS server and a RHEL5 Linux NFS client. >>> /Ole >> We've tried turning off readdirplus but in the end there were still >> weird things happening, although I can't recall them. >> >> But then someone (Ahmon Dancy) gave us a patch that we applied to the >> kernel sources, and when we rebooted with the patched kernel everything >> has been working great since that! >> >> Wimmy- Hide quoted text - >> >> - Show quoted text - > > > Hello, > > Was it an aggregate patch, customer-specific patch, or early-release > patch that was given to you? I've checked the 5.1A PK#6 (Aggregate) > Release Notes for relevant patches and came up with a couple that > reference "readdirplus" issues, but I'm not sure if you applied PK#6 > or not. > >>>From the 5.1A PK#6 (Aggregate) Release Notes: > ------------------------------------------------------------------------ > > http://h30097.www3.hp.com/docs/patch/51A/bl24/ReleaseNotes.pdf > > .... > > Addresses problems with the NFS server in which a crash can occur with > a concurrent > read and truncate on an AdvFS file or with malformed or malicious > READDIR[PLUS] > version 3 RPCs. Well, the files on the export are in fact on AdvFS volumes, but I don't know if this is responsable for the bad behaviour or not. Although it did not matter if we connected with an NFS V2 or V3 version mount option on the clients. It just stopped working above a 2.6.17 kernel. > .... > > Corrects a problem that causes an NFS client panic when it receives a > null entry as a > response to a readdirplus request from an NFS server. > > .... But we never got a crash, the files and directories just could not be read. The clients either said: ls: cannot access /drive/people/username/: Not a directory du: fts_read failed: Permission denied mount:server does not provide support for any security mode, will use default even if it violates RFC 2623 > > Anyway, just curious really as to what the fix was. I've got a few source files that i could make into a patched nfs_server.mod, then placed that module in the kernel source tree, rebuilt the kernel so it included the patched module, rebooted with the new kernel and voil�. HTH, Wimmy > > Regards, > > > John Lanier > PARSEC Group > Email: jlanier@parsec.com > AIM ID: JLparsec > WWW: http://www.parsec.com