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 skip to the end and leave a response. Pinging is currently not allowed.
4 Responses to “NFS server”
Please keep comments clean and constructive. Inappropriate comments will be removed. Thank you.
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
# 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
+ 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
do_mount nfsd $PROCNFSD_MOUNTPOINT || NEED_SVCGSSD=no
log_begin_msg “Exporting directories for $DESC…”