Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 25106

Summary: Support NFSv4 with 2.5 and 2.6 kernels
Product: Gentoo Linux Reporter: Michael Locher <xray>
Component: [OLD] ServerAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: mholzer
Priority: High Keywords: EBUILD
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.citi.umich.edu/projects/nfsv4/nfsv4-linux/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to /etc/init.d/nfs to activate server-side features
ebuild for the idmap daemon
netmount.patch

Description Michael Locher 2003-07-23 02:32:12 UTC
NFSv4 support has been added to 2.5 and 2.6 kernels.
Some userspace tools need patches/updates. check the provided url for details.

rpc_pipefs needs to be mounted to /var/lib/rpc_pipes 
nfsd filesystem needs to be mounted to /proc/fs/nfs
idmap daemon needs to be started after mountd 

/sbin/mount needs a patch. (already integrated in util-linux ebuild)
empty directory /var/lib/nfs/v4root should be created by the nfs-utils ebuild.

for GSS security the gssd daemon and a patch to mit-krb5 is needed. (see
http://www.citi.umich.edu/projects/nfsv4/rpcsec_gss-linux/ )

for general information about NFSv4 refer to
http://www.nluug.nl/events/sane2000/papers/pawlowski.pdf
Comment 1 Michael Locher 2003-07-23 03:06:01 UTC
Created attachment 14899 [details, diff]
patch to /etc/init.d/nfs to activate server-side features

note: /etc/init.d/netmount must check if there are NFSv4 mounts and start the
idmapd and mount rpc_pipefs.
Comment 2 Michael Locher 2003-07-23 03:12:25 UTC
Created attachment 14901 [details]
ebuild for the idmap daemon
Comment 3 Brian Jackson (RETIRED) gentoo-dev 2003-10-20 21:55:27 UTC
this looks like it's not really kernel related, I think might be for Azarah,
but I'll boot it back to bug-wranglers in case anybody else wants to have
a go
Comment 4 Steve Arnold archtester gentoo-dev 2004-03-14 19:45:52 UTC
This appears to be required for nfs between machines running 2.6.3 or better:

CONFIG_SECURITY=y
CONFIG_SECURITY_CAPABILITIES=y

or:

CONFIG_SECURITY=y
CONFIG_SECURITY_CAPABILITIES=m
and modprobe capability

Modprobing capability seems to have fixed my nfs connection errors; the 
errors only started after migrating an nfs server from a 2.4.20 RH machine 
to a 2.6.3 gentoo box (same 2.6.3 gentoo client).

http://www.ussg.iu.edu/hypermail/linux/kernel/0311.3/0436.html
Comment 5 SpanKY gentoo-dev 2004-06-08 12:05:40 UTC
ive added idmapd to net-fs and updated nfs-utils to update the init.d
script (1.0.6-r2)

all that needs to be done now is update /etc/init.d/netmount which
is part of baselayout
Comment 6 SpanKY gentoo-dev 2004-06-08 12:12:31 UTC
Created attachment 32928 [details, diff]
netmount.patch

proposed patch for netmount
Comment 7 SpanKY gentoo-dev 2004-10-02 23:03:10 UTC
added my little patch to cvs baselayout