You are not logged in.

#1 2013-04-23 10:07:15

Cubox
Member
Registered: 2013-01-16
Posts: 8

NFS Server don't start.

Hi,

I followed the wiki page for NFS.
When I try to start it, (the mountd) the start fail with this log.
avril 23 12:04:40 Alduin rpc.nfsd[30250]: rpc.nfsd: Unable to access /proc/fs/nfsd errno 2 (No such file or directory).
avril 23 12:04:40 Alduin rpc.nfsd[30250]: Please try, as root, 'mount -t nfsd nfsd /proc/fs/nfsd' and then restart rpc.nfsd to correct the problem

I started the command.

╰─➤ LANG=C sudo mount -t nfsd nfsd /proc/fs/nfsd
mount: unknown filesystem type 'nfsd'

I don't know where is the problem, I use the default kernel, which have nfsd support...

╰─➤ lsmod | grep nfs
nfs                   127008  0 
lockd                  64905  1 nfs
sunrpc                186134  3 nfs,lockd
fscache                40996  1 nfs

If someone have a clue... Thanks.

Last edited by Cubox (2013-04-24 11:16:01)

Offline

#2 2013-04-23 14:37:21

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: NFS Server don't start.

Cubox wrote:

LANG=C sudo mount -t nfsd nfsd /proc/fs/nfsd
mount: unknown filesystem type 'nfsd'

The filesystem needs to be nfs4 not nfsd


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2013-04-23 18:06:07

Cubox
Member
Registered: 2013-01-16
Posts: 8

Re: NFS Server don't start.

╭─<cubox@Alduin>-<~>-<20:05:03>-◇
╰─➤ LANG=C sudo mount -t nfs4 nfs4 /proc/fs/nfsd
Yubikey for `cubox': vvcubkglngtjuhlrltcfhdrdkgfebevrduefteriulgk
mount.nfs4: remote share not in 'host:dir' format

Offline

#4 2013-04-23 18:37:43

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: NFS Server don't start.

@Inxsible, OP is not trying to mount a nfs share, he's following the suggestion from the log:

avril 23 12:04:40 Alduin rpc.nfsd[30250]: Please try, as root, 'mount -t nfsd nfsd /proc/fs/nfsd' and then restart rpc.nfsd to correct the problem

@OP:

Have you started/enabled rpc-idmapd.service and rpc-mountd.service? wiki


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#5 2013-04-23 18:56:15

Cubox
Member
Registered: 2013-01-16
Posts: 8

Re: NFS Server don't start.

I enabled both.
I started rpc-idmapd well. The start of mountd is giving me this log, and errors.

Offline

#6 2013-04-23 19:27:13

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: NFS Server don't start.

My mistake. I'm not sure what's going on then. It may help to post everything from the journal after trying to start rpc-mountd, for example:

Apr 23 15:24:47 caddywhompus sudo[31530]: testing : TTY=pts/2 ; PWD=/etc/systemd/system/multi-user.target.wants ; USER=root ; COMMAND=/usr/bin/systemctl start rpc-mountd
Apr 23 15:24:47 caddywhompus sudo[31530]: pam_unix(sudo:session): session opened for user root by testing(uid=0)
Apr 23 15:24:47 caddywhompus systemd[1]: Starting NFS server...
Apr 23 15:24:47 caddywhompus kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
Apr 23 15:24:47 caddywhompus kernel: NFSD: starting 90-second grace period (net ffffffff81880e80)
Apr 23 15:24:47 caddywhompus systemd[1]: Started NFS server.
Apr 23 15:24:47 caddywhompus systemd[1]: Starting NFS Mount Daemon...
Apr 23 15:24:47 caddywhompus systemd[1]: Started NFS Mount Daemon.
Apr 23 15:24:47 caddywhompus rpc.mountd[31555]: Version 1.2.6 starting
Apr 23 15:24:47 caddywhompus sudo[31530]: pam_unix(sudo:session): session closed for user root

And be sure to use code tags!


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#7 2013-04-23 20:14:51

Cubox
Member
Registered: 2013-01-16
Posts: 8

Re: NFS Server don't start.

avril 23 22:13:16 Alduin sudo[23520]: cubox : TTY=pts/23 ; PWD=/home/cubox ; USER=root ; COMMAND=/usr/bin/systemctl start rpc-mountd.service
avril 23 22:13:16 Alduin sudo[23520]: pam_unix(sudo:session): session opened for user root by (uid=0)
avril 23 22:13:16 Alduin systemd[1]: Starting NFS server...
-- Subject: Unit nfsd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nfsd.service has begun starting up.
avril 23 22:13:16 Alduin rpc.nfsd[23523]: rpc.nfsd: Unable to access /proc/fs/nfsd errno 2 (No such file or directory).
avril 23 22:13:16 Alduin rpc.nfsd[23523]: Please try, as root, 'mount -t nfsd nfsd /proc/fs/nfsd' and then restart rpc.nfsd to correct the problem
avril 23 22:13:16 Alduin rpc.nfsd[23523]: error starting threads: errno 38 (Function not implemented)
avril 23 22:13:16 Alduin systemd[1]: nfsd.service: main process exited, code=exited, status=1/FAILURE
avril 23 22:13:16 Alduin systemd[1]: Failed to start NFS server.
-- Subject: Unit nfsd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
-- 
-- Unit nfsd.service has failed.
-- 
-- The result is failed.
avril 23 22:13:16 Alduin systemd[1]: Dependency failed for NFS Mount Daemon.
-- Subject: Unit rpc-mountd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
-- 
-- Unit rpc-mountd.service has failed.
-- 
-- The result is dependency.
avril 23 22:13:16 Alduin systemd[1]: Unit nfsd.service entered failed state

Offline

#8 2013-04-27 14:58:10

bfields
Member
Registered: 2013-04-27
Posts: 2

Re: NFS Server don't start.

Note lsmod isn't showing the "nfsd" module loaded.   A "modprobe nfsd" might help.

(It really should be loaded automatically when you try to mount the "nfsd" filesystem--not sure why it's not.)

Offline

#9 2013-05-08 11:57:35

zarniwoop
Member
From: Vancouver, BC, Canada
Registered: 2013-05-05
Posts: 3
Website

Re: NFS Server don't start.

While setting up my NFS server I ran into the same issue. The problem was that I upgraded the system (pacman -Syu), which pulled in a new kernel. Without rebooting, the NFS server didn't know where to find the nfsd module. After rebooting everything went fine.


"Most people are other people. Their thoughts are someone else's opinions, their lives a mimicry, their passions a quotation." – Oscar Wilde, De Profundis, 1905

Offline

#10 2013-05-15 17:16:47

[KNS]Kumo
Member
Registered: 2009-11-06
Posts: 62
Website

Re: NFS Server don't start.

Edited.

Last edited by [KNS]Kumo (2013-05-15 17:38:54)


Ore wa Kumo Da!
http://knsweb.net

Offline

Board footer

Powered by FluxBB