View previous topic :: View next topic |
Author |
Message |
maxrebo n00b
Joined: 28 Jul 2021 Posts: 6
|
Posted: Tue Jun 28, 2022 8:10 pm Post subject: [SOLVED] NFS service failed to start |
|
|
I have been running a local server and a main computer on Gentoo for about two years now, both on the same network with no firewalls. I use the server mostly for data storage and mount the drives on my main machine using NFS. This has been working fine for two years but a month ago, after a update, I tried to mount the drives and got:
Code: | $ doas mount -a
mount.nfs: Connection refused |
After spending way to long trying to solve the problem I realized it's because the NFS service fails to start with the message:
Code: | # rc-service nfs start
* Exporting NFS directories ... [ ok ]
* Starting NFS mountd ... [ ok ]
* Starting NFS daemon ...
2: Unsupported version [ !! ]
* Starting NFS smnotify ... [ ok ]
* ERROR: nfs failed to start |
I am unfortunately stuck here, I don't know where to look in the logs and searching this site and other places has yielded nothing.
My main machine uses 5.17.9 kernel and my server is on 5.15.41
My nfs-utils has these Use flags:
Code: | [ebuild R ] net-fs/nfs-utils-2.6.1 USE="libmount nfsidmap nfsv4 nfsv41 uuid -caps -junction -kerberos -ldap -nfsdcld -sasl (-selinux) -tcpd" |
Any help is appreciated, this has been driving me crazy.
Last edited by maxrebo on Fri Jul 01, 2022 3:33 pm; edited 1 time in total |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3949
|
Posted: Tue Jun 28, 2022 9:13 pm Post subject: |
|
|
Hi
Quote: |
2: Unsupported version [ !! ]
|
Code: |
/etc/conf.d/nfs=>
OPTS_RPC_NFSD="8"
|
Make sure your above line does NOT contain ANY referece to nfs version 2. _________________
|
|
Back to top |
|
|
maxrebo n00b
Joined: 28 Jul 2021 Posts: 6
|
Posted: Tue Jun 28, 2022 9:41 pm Post subject: |
|
|
Thanks alamahant! That fixed it.
I had:
Code: | # Options to pass to rpc.nfsd
OPTS_RPC_NFSD="8 -N 2 -V 3 -V 4" |
So I changed it to:
Code: | # Options to pass to rpc.nfsd
OPTS_RPC_NFSD="8 -V 3 -V 4" |
and that worked, now I can finally access my files again. Do you know why that would have changed? |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3949
|
Posted: Wed Jun 29, 2022 9:38 am Post subject: |
|
|
Quote: |
and that worked, now I can finally access my files again. Do you know why that would have changed?
|
Apparently nfs-utils is no longer built with nfs version2 functionality.
It is obsolete. _________________
|
|
Back to top |
|
|
maxrebo n00b
Joined: 28 Jul 2021 Posts: 6
|
Posted: Fri Jul 01, 2022 3:32 pm Post subject: |
|
|
That makes sense. I thought V2 support was removed awhile ago. |
|
Back to top |
|
|
|