Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
systemd nfs mount
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
mpcww
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2003
Posts: 115

PostPosted: Thu Aug 22, 2013 5:36 pm    Post subject: systemd nfs mount Reply with quote

A few day ago I switched to systemd and now I wonder which service to start to get mount working again

Code:

mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.


With the nolock option it works, but I think this might be not the preferred solution.

Any hint is greatly appreciated
Back to top
View user's profile Send private message
gcyoung
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2007
Posts: 79
Location: England

PostPosted: Thu Aug 22, 2013 9:24 pm    Post subject: nfs mounting. Reply with quote

This may not be the answer, but I had the same error report and problem after a kernel upgrade. It turned out that there were variations to the entries under "Networking Support" in the new kernel configuration, and the necessary boxes had not been ticked.

I suggest you have a look in your kernel .config to see you have the correct settings.
Back to top
View user's profile Send private message
mpcww
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2003
Posts: 115

PostPosted: Fri Aug 23, 2013 6:33 am    Post subject: Re: nfs mounting. Reply with quote

gcyoung wrote:
This may not be the answer, but I had the same error report and problem after a kernel upgrade. It turned out that there were variations to the entries under "Networking Support" in the new kernel configuration, and the necessary boxes had not been ticked.

I suggest you have a look in your kernel .config to see you have the correct settings.


hmmh, looks fine for me:

Code:

/usr/src/linux$ grep -i nfs .config
CONFIG_NFS_FS=m
CONFIG_NFS_V2=m
CONFIG_NFS_V3=m
# CONFIG_NFS_V3_ACL is not set
# CONFIG_NFS_V4 is not set
# CONFIG_NFS_SWAP is not set
CONFIG_NFSD=m
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V3_ACL is not set
# CONFIG_NFSD_V4 is not set
CONFIG_NFS_COMMON=y


/usr/src/linux$ grep -i rpc .config
CONFIG_AF_RXRPC=m
# CONFIG_AF_RXRPC_DEBUG is not set
CONFIG_SUNRPC=m
CONFIG_SUNRPC_XPRT_RDMA=m
# CONFIG_SUNRPC_DEBUG is not set


The nfs server I use provides only NFS3.
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 220
Location: Utrecht

PostPosted: Sat Aug 24, 2013 7:25 pm    Post subject: Reply with quote

Are you running nfsmount from init.d
Back to top
View user's profile Send private message
azp
Guru
Guru


Joined: 16 Nov 2003
Posts: 336
Location: Stockholm, Sweden

PostPosted: Mon Aug 26, 2013 5:55 pm    Post subject: Re: systemd nfs mount Reply with quote

mpcww wrote:
A few day ago I switched to systemd and now I wonder which service to start to get mount working again

Code:

mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.


With the nolock option it works, but I think this might be not the preferred solution.

Any hint is greatly appreciated


I'm seeing the same issue here... There are two services which seems to fit the name in some way, but I can't get them started:

Code:
# systemctl -a
...
...
remote-fs-pre.target                                   loaded inactive dead      Remote File Systems (Pre)
remote-fs.target                                       loaded inactive dead      Remote File Systems
...
...


When I try to run them I get:

Code:
# systemctl start remote-fs-pre remote-fs
Failed to issue method call: Unit remote-fs-pre.service failed to load: No such file or directory. See system logs and 'systemctl status remote-fs-pre.service' for details.
Failed to issue method call: Unit remote-fs.service failed to load: No such file or directory. See system logs and 'systemctl status remote-fs.service' for details.


So I guess there's something that I've missed to install, via use flag or something like it.
_________________
Weeks of coding can save you hours of planning.
Back to top
View user's profile Send private message
comprookie2000
Developer
Developer


Joined: 25 Jul 2004
Posts: 891
Location: Pompano Beach, Florida

PostPosted: Tue Aug 27, 2013 12:34 am    Post subject: Reply with quote

Maybe rpc-gssd.service
https://wiki.archlinux.org/index.php/NFS#Client
https://github.com/mgorny/gentoo-systemd-units/blob/master/net-fs:nfs-utils/rpc.gssd.service
_________________
http://dev.gentoo.org/~dabbott/
Back to top
View user's profile Send private message
azp
Guru
Guru


Joined: 16 Nov 2003
Posts: 336
Location: Stockholm, Sweden

PostPosted: Thu Sep 05, 2013 9:21 pm    Post subject: Reply with quote

comprookie2000 wrote:
Maybe rpc-gssd.service
https://wiki.archlinux.org/index.php/NFS#Client
https://github.com/mgorny/gentoo-systemd-units/blob/master/net-fs:nfs-utils/rpc.gssd.service


I'm not sure how I did it, but now systemd seems to start NFS mount, but the problem seems to be that it doesn't wait for the network card to have an IP address before it tries. So the mounts doesn't get loaded at boot, and the same issue applies to ntp-client. I thought the dependencies were defined in each service (like the one you linked to above).
_________________
Weeks of coding can save you hours of planning.
Back to top
View user's profile Send private message
gcyoung
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2007
Posts: 79
Location: England

PostPosted: Thu Sep 19, 2013 9:58 am    Post subject: Networking Reply with quote

I had problems with mounting exports too. I have now discovered rpc-statd.service, rpc-mountd.service and nfsd,service located in "/usr/portage/net-fs/nfs-utils/files/" . I copied them to /etc/systemd/system, and enabled them, and my nfs system seems to work as usual.

I have also found other service files located in the "files" directory of the various portage locations. I t seem odd that these are not installed when "emerging" against systemd, but the iinit.d files are still installed. See my post of Sept 14. "Systemd and NetworkManager with exports".
Back to top
View user's profile Send private message
azp
Guru
Guru


Joined: 16 Nov 2003
Posts: 336
Location: Stockholm, Sweden

PostPosted: Sun Sep 22, 2013 6:57 pm    Post subject: Re: Networking Reply with quote

gcyoung wrote:
I had problems with mounting exports too. I have now discovered rpc-statd.service, rpc-mountd.service and nfsd,service located in "/usr/portage/net-fs/nfs-utils/files/" . I copied them to /etc/systemd/system, and enabled them, and my nfs system seems to work as usual.

I have also found other service files located in the "files" directory of the various portage locations. I t seem odd that these are not installed when "emerging" against systemd, but the iinit.d files are still installed. See my post of Sept 14. "Systemd and NetworkManager with exports".


I agree, that sounds like a bug. I'll copy my files as well, and see if it fixes my problems.
_________________
Weeks of coding can save you hours of planning.
Back to top
View user's profile Send private message
azp
Guru
Guru


Joined: 16 Nov 2003
Posts: 336
Location: Stockholm, Sweden

PostPosted: Sun Sep 22, 2013 7:02 pm    Post subject: Reply with quote

I don't think this is the issue. When you enable a service, systemd creates a symbolic link in /etc/systemd/system/ to the corresponding service file in /usr/lib64/systemd/system/.

If I list my files in that directory, I can see the nfs-utils files than you were missing:

root@skare$ ll /usr/lib64/systemd/system/rpc*
-rw-r--r-- 1 root root 193 20 jul 23.32 /usr/lib64/systemd/system/rpcbind.service
-rw-r--r-- 1 root root 500 22 sep 19.57 /usr/lib64/systemd/system/rpcbind.target
-rw-r--r-- 1 root root 251 5 sep 23.59 /usr/lib64/systemd/system/rpc-mountd.service
-rw-r--r-- 1 root root 268 5 sep 23.59 /usr/lib64/systemd/system/rpc-statd.service
_________________
Weeks of coding can save you hours of planning.
Back to top
View user's profile Send private message
gcyoung
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2007
Posts: 79
Location: England

PostPosted: Tue Sep 24, 2013 10:55 am    Post subject: Mounting exported directories Reply with quote

I don't mount shared directories at boot-up, but use a script to see the other computer is on at login before mounting, so I haven't had your problem, azp. But isn't the "NetworkManager-wait-online.service" designed to prevent premature access to networking?
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