View previous topic :: View next topic |
Author |
Message |
mpcww Tux's lil' helper
Joined: 08 Apr 2003 Posts: 115
|
Posted: Thu Aug 22, 2013 5:36 pm Post subject: systemd nfs mount |
|
|
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 |
|
|
gcyoung Apprentice
Joined: 04 Jul 2007 Posts: 170 Location: England
|
Posted: Thu Aug 22, 2013 9:24 pm Post subject: nfs mounting. |
|
|
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 |
|
|
mpcww Tux's lil' helper
Joined: 08 Apr 2003 Posts: 115
|
Posted: Fri Aug 23, 2013 6:33 am Post subject: Re: nfs mounting. |
|
|
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 |
|
|
hika Apprentice
Joined: 13 Mar 2009 Posts: 234 Location: Utrecht
|
Posted: Sat Aug 24, 2013 7:25 pm Post subject: |
|
|
Are you running nfsmount from init.d |
|
Back to top |
|
|
azp Guru
Joined: 16 Nov 2003 Posts: 456 Location: Sweden
|
Posted: Mon Aug 26, 2013 5:55 pm Post subject: Re: systemd nfs mount |
|
|
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 |
|
|
comprookie2000 Retired Dev
Joined: 25 Jul 2004 Posts: 925 Location: Sun City Center, Florida
|
|
Back to top |
|
|
azp Guru
Joined: 16 Nov 2003 Posts: 456 Location: Sweden
|
Posted: Thu Sep 05, 2013 9:21 pm Post subject: |
|
|
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 |
|
|
gcyoung Apprentice
Joined: 04 Jul 2007 Posts: 170 Location: England
|
Posted: Thu Sep 19, 2013 9:58 am Post subject: Networking |
|
|
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 |
|
|
azp Guru
Joined: 16 Nov 2003 Posts: 456 Location: Sweden
|
Posted: Sun Sep 22, 2013 6:57 pm Post subject: Re: Networking |
|
|
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 |
|
|
azp Guru
Joined: 16 Nov 2003 Posts: 456 Location: Sweden
|
Posted: Sun Sep 22, 2013 7:02 pm Post subject: |
|
|
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 |
|
|
gcyoung Apprentice
Joined: 04 Jul 2007 Posts: 170 Location: England
|
Posted: Tue Sep 24, 2013 10:55 am Post subject: Mounting exported directories |
|
|
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 |
|
|
|