Bug 2973 - NFS3 mounts no longer possible after upgrade to RedHat 6.0
NFS3 mounts no longer possible after upgrade to RedHat 6.0
Product: Red Hat Linux
Classification: Retired
Component: knfsd (Show other bugs)
i386 Linux
high Severity high
: ---
: ---
Assigned To: David Lawrence
: 3019 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 1999-05-22 18:39 EDT by Hermann Schichl
Modified: 2008-05-01 11:37 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-06-17 13:43:55 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Hermann Schichl 1999-05-22 18:39:16 EDT
After upgrading to RedHat 6.0 NFS version 3 mounts
are not longer possible.

Result: Kernel message: svc: unknown version (3)

Server: Out of the box RedHat 6.0 system
Client: Digital Alpha running Digital UNIX 4.0
Comment 1 Jeff Johnson 1999-05-23 01:29:59 EDT
NFS3 mounts have never been supported under linux. However, the
return code returned from knfsd when NFS3 mounts are attempted
confuses the client into not trying NFS2.

A work around is to explicitly request NFS version 2 when mounting
on the client. I dunno what the DU 4.0 syntax is. If you succeed
in doing the mount, could you add the syntax you used to this bug
report? Thanks
Comment 2 Hermann Schichl 1999-05-23 06:33:59 EDT
Explicitly requesting Version 2 mounts from
Digital UNIX is done using the 'nfsv2' mount
flag as in:

  mount -o nfsv2 serverhost:serverdir clientdir


After browsing through the source of kernel nfsd I figured
out that NFS 3 mounts should be possible in principle. However,
CONFIG_NFSD_NFS3 is not defined, which would (as it seems)
include NFS 3 support.
The interesting stuff is in nfs3proc.c, nfs3xdr.c, and nfssvc.c
all in fs/nfsd.
Comment 3 Jeff Johnson 1999-05-23 12:13:59 EDT
AFAIK, NFS3 is not yet functional. Thanks for the DU 4.0 syntax
and analysis.
Comment 4 Jeff Johnson 1999-05-25 11:23:59 EDT
*** Bug 3019 has been marked as a duplicate of this bug. ***

There is a problem in the interaction between the Kernel
nfsd and the rpc.mountd command. The kernel provides
services for NFS version 2, but rpc.mountd registers itself
as supporting version 1,2 and 3. This causes an NFS3 client
(like SGI IRIX) to try to mount a linux filesystem using
version 3, but whenever it tries to do any actual I/O on the
filesystem, the I/O fails with a version error.

I worked around the bug by fixing the NFS startup script to
pass -V 2 -N 3 as arguments to rpc.mountd.

A better fix would of course be to add support for NFS V3.
It looks like there are bits and pieces of it in the kernel
sources, but they did not seem to make it into the build.
Comment 5 Jeff Johnson 1999-06-03 10:02:59 EDT
I just packaged knfsd-1.3.3-1 -- still no man pages or NFSv3.
Comment 6 Jeff Johnson 1999-06-17 13:43:59 EDT
Man pages are now in knfsd-1.4-1. Still no NFSv3 support, but
the linux mountd will not advertise NFSv3 anymore.

Note You need to log in before you can comment on or make changes to this bug.