NFS server
how to setup a NFS server on the Sheeva Plug.
This entry was posted
on Monday, May 18th, 2009 at 4:07 pm and is filed under Uncategorized.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Please keep comments clean and constructive. Inappropriate comments will be removed. Thank you.
it is good.
Using the mainline kernel from here:
http://sheeva.with-linux.com/sheeva/
NFS Kernel Server support is actually enabled as module (”nfsd”).
However it seems there is a bug somewhere causing the startup script to fail with the error message mentionned at the top of this page.
By disabling (commenting out the lines) the kernel support check in the /etc/init.d/nfs-kernel-server script, the NFS server can be started successfully.
It is quite interesting to know as it avoids the need to recompile the kernel.
Duffy is right, for my Ubuntu 9.04 (on x86 PC), kernel is already compiled with nfsd inside, but the init script still have error. And the following patch does correct the error:
### BEGIN INIT INFO
# Provides: nfs-kernel-server
@@ -64,10 +65,10 @@ case “$1″ in
do_modprobe nfsd
# See if our running kernel supports the NFS kernel server
- #if [ -f /proc/kallsyms ] && ! grep -qE ‘init_nf(sd| )’ /proc/kallsyms; then
- # log_warning_msg “Not starting $DESC: no support in current kernel.”
- # exit 0
- #fi
+ if [ -f /proc/kallsyms ] && ! grep -qE ‘init_nf(sd| )’ /proc/kallsyms; then
+ log_warning_msg “Not starting $DESC: no support in current kernel.”
+ exit 0
+ fi
do_mount nfsd $PROCNFSD_MOUNTPOINT || NEED_SVCGSSD=no
log_begin_msg “Exporting directories for $DESC…”