Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] NFS service failed to start
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
maxrebo
n00b
n00b


Joined: 28 Jul 2021
Posts: 6

PostPosted: Tue Jun 28, 2022 8:10 pm    Post subject: [SOLVED] NFS service failed to start Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Tue Jun 28, 2022 9:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
maxrebo
n00b
n00b


Joined: 28 Jul 2021
Posts: 6

PostPosted: Tue Jun 28, 2022 9:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Wed Jun 29, 2022 9:38 am    Post subject: Reply with quote

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
View user's profile Send private message
maxrebo
n00b
n00b


Joined: 28 Jul 2021
Posts: 6

PostPosted: Fri Jul 01, 2022 3:32 pm    Post subject: Reply with quote

That makes sense. I thought V2 support was removed awhile ago.
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