Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* NFS-server on Tru64 5.1A b0rks!
@ 2007-03-09 11:08 Wim Cossement
  2007-03-13  9:40 ` Wim Cossement
  0 siblings, 1 reply; 7+ messages in thread
From: Wim Cossement @ 2007-03-09 11:08 UTC (permalink / raw)


Hello,

Since a while we can't use NFS files served by an Alpha running Tru64
5.1A (Rev. 1885) on Linux boxes running anything above the 2.17 kernel 
release.

First I thought I'd done one upgrade to many and Linux was to blame, but 
the 2.18 and later kernels do work well on NFS being served by Solaris 
9, so the problem is situated at the Tru64 site.

You can mount the drives, and since they contain homedirectories (like 
/drivename/people/username) you can ls /drivename and even ls 
/drivename/people, but as soon as you do an ls or a du -h on a 
/drive/people/username for instance you get a message varying from

ls: cannot access /drive/people/username/: Not a directory

or

du: fts_read failed: Permission denied

depending on the kernel version, since I've tried 2.18, 2.19 and 2.20 
versions. And that fts_read is a part of glibc.

When I mount the same drives on Irix 6.5 I get this warning message but 
besides that it works fine

mount:server does not provide support for any security mode, will use 
default even if it violates RFC 2623

So the problem must be quite specific, and I don't know what to do 
anymore, so I'd be quite helpful if anyone could help me out.

Let me know if you need more info

Regards,

Wimmy

-- 
Being owned by someone used to be called slavery.
Now it's called commitment.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: NFS-server on Tru64 5.1A b0rks!
  2007-03-09 11:08 NFS-server on Tru64 5.1A b0rks! Wim Cossement
@ 2007-03-13  9:40 ` Wim Cossement
  2007-04-17 20:30   ` Ole Holm Nielsen
  0 siblings, 1 reply; 7+ messages in thread
From: Wim Cossement @ 2007-03-13  9:40 UTC (permalink / raw)


Hi,

Someone pointed me out to a RedHad Bugzilla report that has a solution, 
since the bug is clearly Tru64 related (and has been arround for ages 
but only manifests itself now) but apparently HP is reluctant to patch 
this since people say Tru64 is a dying breed...

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=220451

http://sourceforge.net/mailarchive/forum.php?thread_id=31756540&forum_id=4930

The solution is to turn of READDIRPLUS (what is it anyway?)

ladebug -k
assign doreaddirplus=0
quit

Hth,

Wimmy

Wim Cossement wrote:
> Hello,
> 
> Since a while we can't use NFS files served by an Alpha running Tru64
> 5.1A (Rev. 1885) on Linux boxes running anything above the 2.17 kernel 
> release.
> 
> First I thought I'd done one upgrade to many and Linux was to blame, but 
> the 2.18 and later kernels do work well on NFS being served by Solaris 
> 9, so the problem is situated at the Tru64 site.
> 
> You can mount the drives, and since they contain homedirectories (like 
> /drivename/people/username) you can ls /drivename and even ls 
> /drivename/people, but as soon as you do an ls or a du -h on a 
> /drive/people/username for instance you get a message varying from
> 
> ls: cannot access /drive/people/username/: Not a directory
> 
> or
> 
> du: fts_read failed: Permission denied
> 
> depending on the kernel version, since I've tried 2.18, 2.19 and 2.20 
> versions. And that fts_read is a part of glibc.
> 
> When I mount the same drives on Irix 6.5 I get this warning message but 
> besides that it works fine
> 
> mount:server does not provide support for any security mode, will use 
> default even if it violates RFC 2623
> 
> So the problem must be quite specific, and I don't know what to do 
> anymore, so I'd be quite helpful if anyone could help me out.
> 
> Let me know if you need more info
> 
> Regards,
> 
> Wimmy
> 


-- 
Being owned by someone used to be called slavery.
Now it's called commitment.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: NFS-server on Tru64 5.1A b0rks!
  2007-03-13  9:40 ` Wim Cossement
@ 2007-04-17 20:30   ` Ole Holm Nielsen
  2007-04-18 10:54     ` Wim Cossement
  0 siblings, 1 reply; 7+ messages in thread
From: Ole Holm Nielsen @ 2007-04-17 20:30 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: NFS-server on Tru64 5.1A b0rks!
  2007-04-17 20:30   ` Ole Holm Nielsen
@ 2007-04-18 10:54     ` Wim Cossement
  2007-04-20  1:10       ` JLPARSEC
  0 siblings, 1 reply; 7+ messages in thread
From: Wim Cossement @ 2007-04-18 10:54 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: NFS-server on Tru64 5.1A b0rks!
  2007-04-18 10:54     ` Wim Cossement
@ 2007-04-20  1:10       ` JLPARSEC
  2007-04-20  8:43         ` Wim Cossement
  0 siblings, 1 reply; 7+ messages in thread
From: JLPARSEC @ 2007-04-20  1:10 UTC (permalink / raw)


On Apr 18, 4:54 am, Wim Cossement <a...@b.c> 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.

...

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.

...


Anyway, just curious really as to what the fix was.


Regards,


John Lanier
PARSEC Group
Email:  jlanier@parsec.com
AIM ID: JLparsec
WWW: http://www.parsec.com



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: NFS-server on Tru64 5.1A b0rks!
  2007-04-20  1:10       ` JLPARSEC
@ 2007-04-20  8:43         ` Wim Cossement
  2007-04-20 20:17           ` JLPARSEC
  0 siblings, 1 reply; 7+ messages in thread
From: Wim Cossement @ 2007-04-20  8:43 UTC (permalink / raw)


JLPARSEC wrote:
> On Apr 18, 4:54 am, Wim Cossement <a...@b.c> 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: NFS-server on Tru64 5.1A b0rks!
  2007-04-20  8:43         ` Wim Cossement
@ 2007-04-20 20:17           ` JLPARSEC
  0 siblings, 0 replies; 7+ messages in thread
From: JLPARSEC @ 2007-04-20 20:17 UTC (permalink / raw)


On Apr 20, 2:43 am, Wim Cossement <a...@b.c> wrote:
> JLPARSEC wrote:
> > On Apr 18, 4:54 am, Wim Cossement <a...@b.c> 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
>
>
>

OK, so someone just provided you the patched modules.  Thanks for
clarifying.

--John Lanier



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-04-20 20:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-09 11:08 NFS-server on Tru64 5.1A b0rks! Wim Cossement
2007-03-13  9:40 ` Wim Cossement
2007-04-17 20:30   ` Ole Holm Nielsen
2007-04-18 10:54     ` Wim Cossement
2007-04-20  1:10       ` JLPARSEC
2007-04-20  8:43         ` Wim Cossement
2007-04-20 20:17           ` JLPARSEC

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox