nfs fixes

Jean-Michel Bruenn jean.bruenn at ip-minds.de
Mon Apr 25 12:31:23 CEST 2011


Hey guys,

new nfs* modules are in moonbase. So anyone who missed NFS
functionality in lunar, might give it a try again. For NFS4 Support i
added libnfsidmap to lunar. I also rewrote the init script for easier
debugging and because the old one wasn't working as it should.

You can use /etc/config.d/nfs to configure NUMSERVERS and MOUNTDOPTS if
you don't define them, NUMSERVERS is set to your cpus*3 (on a quadcore
12, on a dualcore 6) previously the default was 8.

Just to give you an idea about the new init script:

== Error 1 ==
root at localhost ~ # /etc/init.d/nfs start
starting NFS services
mount: mount point /var/lib/nfs/rpc_pipefs/ does not exist
Mounting /var/lib/nfs/rpc_pipefs failed.

root at localhost ~ # mkdir /var/lib/nfs/rpc_pipefs

== Error 2 ==
root at localhost ~ # /etc/init.d/nfs start
starting NFS services
exportfs: /etc/exports [1]: Neither 'subtree_check' or
'no_subtree_check' specified for export "*:/home/wdp/nfs". Assuming
default behaviour ('no_subtree_check'). NOTE: this default has changed
since nfs-utils version 1.0.x

exportfs: Failed to stat /home/wdp/nfs: No such file or directory 

exportfs: /etc/exports [1]: Neither 'subtree_check' or
'no_subtree_check' specified for export "*:/home/wdp/nfs". Assuming
default behaviour ('no_subtree_check'). NOTE: this default has changed
since nfs-utils version 1.0.x

exportfs: Failed to stat /home/wdp/nfs: No such file or directory 

root at localhost ~ # mkdir /home/wdp/nfs

== Error 3 ==

root at localhost ~ # /etc/init.d/nfs start
starting NFS services
NFS running already. Use stop first or restart...

== Error 4 == 

root at localhost ~ # /etc/init.d/nfs start
starting NFS services
exportfs: /etc/exports [1]: Neither 'subtree_check' or
'no_subtree_check' specified for export "*:/home/wdp/nfs". Assuming
default behaviour ('no_subtree_check'). NOTE: this default has changed
since nfs-utils version 1.0.x

exportfs: /etc/exports [1]: Neither 'subtree_check' or
'no_subtree_check' specified for export "*:/home/wdp/nfs". Assuming
default behaviour ('no_subtree_check'). NOTE: this default has changed
since nfs-utils version 1.0.x

== Successful ==

root at localhost ~ # /etc/init.d/nfs stop
stopping NFS services
root at localhost ~ # /etc/init.d/nfs start
starting NFS services

So, should be a lot easier now to get an idea whats wrong. :-)

== Some information about authentication ==

If it doesnt work for you directly, try with something like:

/home/wdp/nfs *(ro,insecure,all_squash,no_subtree_check)

in /etc/exports. If that works, you need to investigate some time into
authentication stuff (i'm not there yet).

Also keep a look at /var/log/messages and report any problems you might
have.

-- 
Jean-Michel Bruenn <jean.bruenn at ip-minds.de>


More information about the Lunar-dev mailing list