NFS server do not start at boot

This forum is for discussion about general software issues.

NFS server do not start at boot

Postby houlalajaimal » Fri Feb 14, 2014 2:00 pm

Hi.

I have an issue with nfs server on Dockstar.

The nfsd.service is enabled but it fail to start at boot time.
After boot, I can start it manually and start other services that depend on it and in this case the nsf server is workin well.

Any idea ?
$this->bbcode_second_pass_code('', 'Linux 3.1.10-32-ARCH #1 PREEMPT Tue Feb 11 06:26:34 MST 2014 armv5tel GNU/Linux
nfs-utils 1.2.9-5')

After reboot:
$this->bbcode_second_pass_code('', '
$ systemctl status nfsd.service
nfsd.service - NFS Server Daemon
Loaded: loaded (/usr/lib/systemd/system/nfsd.service; enabled)
Active: failed (Result: exit-code) since jeu. 1970-01-01 01:00:40 CET; 1min 5s ago
Docs: man:rpc.nfsd(8)
Process: 301 ExecStopPost=/usr/bin/exportfs -a -u (code=exited, status=0/SUCCESS)
Process: 296 ExecStop=/usr/bin/rpc.nfsd 0 (code=exited, status=0/SUCCESS)
Process: 292 ExecStartPost=/usr/bin/exportfs -a (code=exited, status=1/FAILURE)
Process: 262 ExecStart=/usr/bin/rpc.nfsd $NFSD_OPTS $NFSD_COUNT (code=exited, status=0/SUCCESS)
Main PID: 262 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/nfsd.service

janv. 01 01:00:38 media.jesonville.lan systemd[1]: Starting NFS Server Daemon...
janv. 01 01:00:39 media.jesonville.lan rpc.nfsd[262]: rpc.nfsd: Setting version failed: errno 22 (Invalid argument)
janv. 01 01:00:39 media.jesonville.lan exportfs[292]: exportfs: /srv/nfs4exports/video does not support NFS export
janv. 01 01:00:39 media.jesonville.lan exportfs[292]: exportfs: /srv/nfs4exports/photos does not support NFS export
janv. 01 01:00:39 media.jesonville.lan exportfs[292]: exportfs: /srv/nfs4exports does not support NFS export
janv. 01 01:00:39 media.jesonville.lan systemd[1]: nfsd.service: control process exited, code=exited status=1
janv. 01 01:00:40 media.jesonville.lan systemd[1]: Failed to start NFS Server Daemon.
janv. 01 01:00:40 media.jesonville.lan systemd[1]: Unit nfsd.service entered failed state.


$ sudo systemctl start nfsd

$ systemctl status nfsd.service
nfsd.service - NFS Server Daemon
Loaded: loaded (/usr/lib/systemd/system/nfsd.service; enabled)
Active: active (exited) since ven. 2014-02-14 14:56:22 CET; 1min 4s ago
Docs: man:rpc.nfsd(8)
Process: 301 ExecStopPost=/usr/bin/exportfs -a -u (code=exited, status=0/SUCCESS)
Process: 296 ExecStop=/usr/bin/rpc.nfsd 0 (code=exited, status=0/SUCCESS)
Process: 391 ExecStartPost=/usr/bin/exportfs -a (code=exited, status=0/SUCCESS)
Process: 377 ExecStart=/usr/bin/rpc.nfsd $NFSD_OPTS $NFSD_COUNT (code=exited, status=0/SUCCESS)
Main PID: 377 (code=exited, status=0/SUCCESS)

févr. 14 14:56:22 media.jesonville.lan rpc.nfsd[377]: rpc.nfsd: Setting version failed: errno 22 (Invalid argument)
févr. 14 14:56:22 media.jesonville.lan systemd[1]: Started NFS Server Daemon.
')
Last edited by WarheadsSE on Fri Feb 14, 2014 2:44 pm, edited 1 time in total.
Reason: Please use code tags.
houlalajaimal
 
Posts: 2
Joined: Fri Feb 14, 2014 11:08 am

Re: NFS server do not start at boot

Postby andre » Sun Apr 13, 2014 10:46 pm

I have been experiencing a similar problem.
I have started the NFS daemon with

$this->bbcode_second_pass_code('', 'rpc.nfsd -d -s') and then I found a problem in my syslog

$this->bbcode_second_pass_code('', 'Apr 13 23:27:22 rpi-server rpc.nfsd[1958]: Writing version string to kernel: +4.1 -4.2 -2 +3 +4
Apr 13 23:27:22 rpi-server rpc.nfsd[1958]: Setting version failed: errno 22 (Invalid argument)')

I believe this means my nfs-utils are mentioning newer nfs versions my kernel does not know about. I think it is caused by the "-4.2" part.

I have tried to $this->bbcode_second_pass_code('', 'rpc.nfsd -d -s -V "+3 +4"') but that doesn't seem to work.

Downgrading to nfs-utls to version 1.2.8-9 solved the problem for now
andre
 
Posts: 69
Joined: Wed Jan 25, 2012 1:39 pm
Location: Eindhoven


Return to General

Who is online

Users browsing this forum: No registered users and 28 guests