Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25106 - Support NFSv4 with 2.5 and 2.6 kernels
Summary: Support NFSv4 with 2.5 and 2.6 kernels
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://www.citi.umich.edu/projects/nf...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-07-23 02:32 UTC by Michael Locher
Modified: 2004-10-02 23:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to /etc/init.d/nfs to activate server-side features (serverInit.patch,1.45 KB, patch)
2003-07-23 03:06 UTC, Michael Locher
Details | Diff
ebuild for the idmap daemon (idmapd-1.4.ebuild,455 bytes, text/plain)
2003-07-23 03:12 UTC, Michael Locher
Details
netmount.patch (netmount.patch,817 bytes, patch)
2004-06-08 12:12 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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