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

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

Postby uelpenich » Sun Aug 10, 2014 6:26 pm

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
Last edited by uelpenich on Mon Aug 25, 2014 2:48 pm, edited 1 time in total.
uelpenich
Donator VIP
Donator VIP
 
Posts: 120
Joined: Sun Jun 12, 2011 4:45 pm
Location: Cologne, Germany

Re: Fail: Update of the NFS server failed

Postby Jocko » Sun Aug 10, 2014 7:40 pm

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.
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Fail: Update of the NFS server failed

Postby uelpenich » Mon Aug 11, 2014 3:56 pm

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
uelpenich
Donator VIP
Donator VIP
 
Posts: 120
Joined: Sun Jun 12, 2011 4:45 pm
Location: Cologne, Germany

Re: Fail: Update of the NFS server failed

Postby Jocko » Mon Aug 11, 2014 6:45 pm

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.
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Fail: Update of the NFS server failed

Postby fvdw » Mon Aug 11, 2014 9:03 pm

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
fvdw
Site Admin - expert
 
Posts: 13242
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Fail: Update of the NFS server failed

Postby fvdw » Tue Aug 19, 2014 10:02 pm

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
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13242
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

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

Postby uelpenich » Mon Aug 25, 2014 2:53 pm

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
uelpenich
Donator VIP
Donator VIP
 
Posts: 120
Joined: Sun Jun 12, 2011 4:45 pm
Location: Cologne, Germany


Return to Raspberry Pi 1, 2, 3 and 4

Who is online

Users browsing this forum: No registered users and 3 guests

cron