nfs fixes
Jean-Michel Bruenn
jean.bruenn at ip-minds.de
Mon Apr 4 17:39:54 CEST 2011
Hey,
attached you'll find the modified nfs-utils module and the new module
libnfsidmap - both are needed to get nfs working. What you need to do:
@dagbrown: you just need to replace the init scripts, and the access
denied message should go away after restarting nfs/rebooting the
machine - It's caused by not-in-order starting of the current init
script, exportfs -a needs to be started BEFORE rpc.mountd and its a
good thing to do exportfs -ra after everything's up.
@everyone else:
1. echo "nfs 2049/tcp" >> /etc/services
2. echo "nfs 2049/udp" >> /etc/services
3. cp /etc/init.d/nfs /etc/init.d/nfs.old
4. cp /etc/init.d/nfslock /etc/init.d/nfslock.old
5. cp nfs-utils/init.d/nfs /etc/init.d/nfs
well and move nfs-utils and libnfsidmap to your zlocal folder and do
lin -cr nfs-utils :)
My Changes:
1. The previously module in lunar was using --enable-tirpc which leads
to a bug with portmap/ipv6 and nfs. The proper solution is to use
--disable-tirpc (even if its not shown in configure, it's there) or to
disable ipv6 completly - I changed it to --disable.
2. I bumped nfs from 1.2.2 to 1.2.3
3. NFS4 was disabled in configure in our previous module, i removed
that entry and added two missing dependencies to nfs (libevent
and libnfsidmap(new, attached) - This solves the next problem.
4. The current init script is starting stuff in wrong order (exportfs
for example) and is not easy to debug (we don't check whether nfs
is already running, whether all needed directories like nfsd and
rpc_pipefs are mounted, neither we check whether rpc.mountd was
started successful) hence i adjusted the init script a lot.
4. nfslock is not needed anymore, the stuff it does is in the nfs init
script - Also that lock stuff is only needed for nfs2 and 3 so it would
most likely go away in the future.
I think, that was it.
Please check the stuff carefully, if everything's fine, i'm going to
commit my changes. Also take a look at the init script due to my
limited bash coding experience.
yours,
jean // wdp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nfs-utils.tar.bz2
Type: application/octet-stream
Size: 2089 bytes
Desc: not available
URL: <http://foo-projects.org/pipermail/lunar-dev/attachments/20110404/a77c51a1/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libnfsidmap.tar.bz2
Type: application/octet-stream
Size: 505 bytes
Desc: not available
URL: <http://foo-projects.org/pipermail/lunar-dev/attachments/20110404/a77c51a1/attachment-0001.obj>
More information about the Lunar-dev
mailing list