Page 1 of 1

Fail: Update of the NFS server failed ::solved::

PostPosted: Sun Aug 10, 2014 6:26 pm
by uelpenich
Hello Friends,
I tried to move my tftp boot server to the fvdw-raspberry NAS.

The tftp boot server needs a nfs server to deliver images and filesystems. If I try to (re)StartServer I get an error message "Fail: Update of the NFS server failed". Also a reboot doesn't help.
The same configuration is working on a 2big1. Do you have any idea what is going wrong?

Firmware: fvdw-sl firmware version 15-3
Memory: 8 GByte or 64 GByte SDHC memory
Patch1: fvdwsl_proxysetforservers_08jun2014.zip(55-restore-proxypass.sh)
Patch2: fvdw-sl-15.3-samba-patch-rspb2-16-july-2014.zip(fvdw-sl-15.3-samba-patch-rspb2-16-july-2014.tar)

Werner

Re: Fail: Update of the NFS server failed

PostPosted: Sun Aug 10, 2014 7:40 pm
by Jocko
Hi uelpenich,

As it is not a kernel compiled by fvdw, maybe there is an issue with some nfs binaries.

So you should enable the debug mode, try to start the server and see what contains message file.

Re: Fail: Update of the NFS server failed

PostPosted: Mon Aug 11, 2014 3:56 pm
by uelpenich
Hello,
These are the first lines of the boot.log file. I think the kernel is compiled without nfs support.

start boot log
detect and set platform
rspb2
ARMLINUX-31038-RSPB2-1
rspb2
mount dev/pts
update dev nodesh
booting using mmcblk0p7 root file system...
make dev node for buttons...
make dev node for tun device...
enable IP forwarding...
initializing date
Wed Nov 16 12:00:00 CET 2011
create temporary passwd file
run udevstart to update dev nodes when necessary
inserting kernel modules:
mount: unknown filesystem type 'nfsd'
configure loopback netwerk interface
setting reboot and standby
rspb2
rebootd-nwsp2

Question:
is it possible to install the nfs-utils package? Wiki suggests to use the pacman package manager, but it is not in the system.
root@fvdw-raspberry:/ # pacman -S nfs-utils
-sh: pacman: not found


PS:
other wikis know that on a RaspberryPi the nfsd is v_e_r_y slow.

PSPS:
the other PXE boot server functions are working.

Werner

Re: Fail: Update of the NFS server failed

PostPosted: Mon Aug 11, 2014 6:45 pm
by Jocko
Hi Uelpenich.

As I don't have a rspb I can't help you more but I am pretty sure that fvdw will solve this fs issue.

Re: Fail: Update of the NFS server failed

PostPosted: Mon Aug 11, 2014 9:03 pm
by fvdw
nfs-utils is included in the firmware (pacman not and it is not needed) and the raspberry kernel seems to have some support for nfs, but it could be vs 4.1. I will have a look coming days

Re: Fail: Update of the NFS server failed

PostPosted: Tue Aug 19, 2014 10:02 pm
by fvdw
I found the reason, the kernel doesn't have nfsd as filesystem built in, it needs to be loaded as module
I was able to extract the module form the original arch linux disk image.
Attached the module, put it in the /lib/modules/3.10.38-1-ARCH directory and make it executable (chmod 755)

After that give these commands
Code: Select all
depmod
modprobe nfsd


Now the nfs server will start and work (I tested it on my raspberry)

Ps the nfsd module is loaded by default at boot so we need to add it to the insert-modules script, otherwise you need to do it via a user script that runs at boot.
But first test it if it works ok

Re: Fail: Update of the NFS server failed ::solved::

PostPosted: Mon Aug 25, 2014 2:53 pm
by uelpenich
Thank you for the fast sopport.
With the downloaded file nfsd-3.10.38-1-ARCH.zip and an entry in the file /etc/inet.d/insert-modules the nfsd is working :-).

Now my file insert-modules looks like this:
#!/bin/sh

# insert kernel modules for raspberry devices
# for use with fvdw-sl-15-3 or higher
#
/bin/busybox depmod 2>> boot.log
modprobe nfsd
exit 0