NFS server

how to setup a NFS server on the Sheeva Plug.

4 Responses to “NFS server”

  1. Kenny says:

    Please keep comments clean and constructive. Inappropriate comments will be removed. Thank you.

  2. chandra shekhar says:

    it is good.

  3. Duffy says:

    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.

  4. Peter Teoh says:

    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…”

Leave a Reply