Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unable to start nfs-server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Tue Aug 16, 2016 7:17 pm    Post subject: unable to start nfs-server Reply with quote

journalctl:
Aug 16 21:03:03 g50-80 systemd[1]: rpc-statd.service: Control process exited, code=exited status=1
Aug 16 21:03:03 g50-80 systemd[1]: Failed to start NFS status monitor for NFSv2/3 locking..
Aug 16 21:03:03 g50-80 systemd[1]: rpc-statd.service: Unit entered failed state.
Aug 16 21:03:03 g50-80 systemd[1]: rpc-statd.service: Failed with result 'exit-code'.
Aug 16 21:03:03 g50-80 rpc.idmapd[2547]: main: open(/var/lib/nfs/rpc_pipefs//nfs): No such file or directory
Aug 16 21:03:03 g50-80 systemd[1]: nfs-idmapd.service: Control process exited, code=exited status=1
Aug 16 21:03:03 g50-80 systemd[1]: Failed to start NFSv4 ID-name mapping service.
Aug 16 21:03:03 g50-80 systemd[1]: nfs-idmapd.service: Unit entered failed state.
Aug 16 21:03:03 g50-80 systemd[1]: nfs-idmapd.service: Failed with result 'exit-code'.
Aug 16 21:03:03 g50-80 systemd[1]: Starting NFS server and services...


and it just hangs

g50-80 ~ # grep -v "^#" /etc/conf.d/nfs


NFS_NEEDED_SERVICES="rpc.idmapd"

OPTS_RPC_NFSD=""

OPTS_RPC_MOUNTD=""

OPTS_RPC_STATD=""

OPTS_RPC_IDMAPD=""

OPTS_RPC_GSSD=""

OPTS_RPC_SVCGSSD=""

OPTS_RPC_RQUOTAD=""

EXPORTFS_TIMEOUT=30

g50-80 ~ # cat /etc/exports
# /etc/exports: NFS file systems being exported. See exports(5).
/media/nfs *(no_root_squash)
g50-80 ~ # ls -ld /media/nfs/
drwxr-xr-x 2 root root 6 Jun 29 11:05 /media/nfs/


thanks
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 406
Location: France

PostPosted: Wed Aug 17, 2016 9:58 am    Post subject: Reply with quote

http://linux-nfs.org/wiki/index.php/Nfsv4_configuration
Looks like you lack a specific mount point in your fstab. Above URL may help you solve your problem

++
Gi)
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 437
Location: Australia

PostPosted: Wed Aug 17, 2016 10:11 am    Post subject: Re: unable to start nfs-server Reply with quote

Adel Ahmed wrote:
journalctl:
Aug 16 21:03:03 g50-80 systemd[1]: rpc-statd.service: Control process exited, code=exited status=1
Aug 16 21:03:03 g50-80 systemd[1]: Failed to start NFS status monitor for NFSv2/3 locking..
Aug 16 21:03:03 g50-80 systemd[1]: rpc-statd.service: Unit entered failed state.
Aug 16 21:03:03 g50-80 systemd[1]: rpc-statd.service: Failed with result 'exit-code'.
Aug 16 21:03:03 g50-80 rpc.idmapd[2547]: main: open(/var/lib/nfs/rpc_pipefs//nfs): No such file or directory
Aug 16 21:03:03 g50-80 systemd[1]: nfs-idmapd.service: Control process exited, code=exited status=1
Aug 16 21:03:03 g50-80 systemd[1]: Failed to start NFSv4 ID-name mapping service.
Aug 16 21:03:03 g50-80 systemd[1]: nfs-idmapd.service: Unit entered failed state.
Aug 16 21:03:03 g50-80 systemd[1]: nfs-idmapd.service: Failed with result 'exit-code'.
Aug 16 21:03:03 g50-80 systemd[1]: Starting NFS server and services...


and it just hangs

g50-80 ~ # grep -v "^#" /etc/conf.d/nfs


NFS_NEEDED_SERVICES="rpc.idmapd"

OPTS_RPC_NFSD=""

OPTS_RPC_MOUNTD=""

OPTS_RPC_STATD=""

OPTS_RPC_IDMAPD=""

OPTS_RPC_GSSD=""

OPTS_RPC_SVCGSSD=""

OPTS_RPC_RQUOTAD=""

EXPORTFS_TIMEOUT=30

g50-80 ~ # cat /etc/exports
# /etc/exports: NFS file systems being exported. See exports(5).
/media/nfs *(no_root_squash)
g50-80 ~ # ls -ld /media/nfs/
drwxr-xr-x 2 root root 6 Jun 29 11:05 /media/nfs/


thanks


Are you running the rpcbind service?
Code:
systemctl status rpcbind.service
nfs needs that

edit typo
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Wed Aug 17, 2016 1:17 pm    Post subject: Reply with quote

thank you both, rpcbind + mount points in fstab have fixed this problem
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum