Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nfs-server with systemd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 250

PostPosted: Wed Nov 24, 2021 9:10 pm    Post subject: nfs-server with systemd Reply with quote

I'm looking for the way to disable version 2 of nfs, and enable version 4.1.

According to https://wiki.gentoo.org/wiki/Nfs-utils, it should be done with RPCNFSDARGS variable in /etc/conf.d/nfs.
but it doesn't make me sense, and also no matter what i put in this variable - it's not respected.

Did i miss something?
Back to top
View user's profile Send private message
grknight
Developer
Developer


Joined: 20 Feb 2015
Posts: 21

PostPosted: Wed Nov 24, 2021 9:26 pm    Post subject: Re: nfs-server with systemd Reply with quote

leonchik1976 wrote:
I'm looking for the way to disable version 2 of nfs, and enable version 4.1.

According to https://wiki.gentoo.org/wiki/Nfs-utils, it should be done with RPCNFSDARGS variable in /etc/conf.d/nfs.
but it doesn't make me sense, and also no matter what i put in this variable - it's not respected.

Did i miss something?


Check out the manual
Code:
man nfs.systemd


If you like, update the wiki with what works.
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 3352
Location: Frankfurt, Germany

PostPosted: Wed Nov 24, 2021 9:35 pm    Post subject: Reply with quote

Is your kernel configured for NFSv4?
Code:
CONFIG_NFS_FS=y
# CONFIG_NFS_V2 is not set
# CONFIG_NFS_V3 is not set
# CONFIG_NFS_V3_ACL is not set
CONFIG_NFS_V4=y
CONFIG_NFS_V4_1=y
# CONFIG_NFS_V4_2 is not set

CONFIG_NFSD=y
# CONFIG_NFSD_V3 is not set
# CONFIG_NFSD_V3_ACL is not set
CONFIG_NFSD_V4=y
Back to top
View user's profile Send private message
pingtoo
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2021
Posts: 104
Location: Richmond Hill, Canada

PostPosted: Wed Nov 24, 2021 9:55 pm    Post subject: Reply with quote

What does
Code:
rpcinfo -p
output said?
Back to top
View user's profile Send private message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 250

PostPosted: Wed Nov 24, 2021 10:02 pm    Post subject: Reply with quote

pingtoo wrote:
What does
Code:
rpcinfo -p
output said?


# rpcinfo -p
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 48048 status
100024 1 tcp 51935 status
100005 1 udp 49770 mountd
100005 1 tcp 52029 mountd
100005 2 udp 56578 mountd
100005 2 tcp 55021 mountd
100005 3 udp 49930 mountd
100005 3 tcp 38919 mountd
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 udp 59435 nlockmgr
100021 3 udp 59435 nlockmgr
100021 4 udp 59435 nlockmgr
100021 1 tcp 35041 nlockmgr
100021 3 tcp 35041 nlockmgr
100021 4 tcp 35041 nlockmgr
Back to top
View user's profile Send private message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 250

PostPosted: Wed Nov 24, 2021 10:04 pm    Post subject: Reply with quote

mike155 wrote:
Is your kernel configured for NFSv4?
Code:
CONFIG_NFS_FS=y
# CONFIG_NFS_V2 is not set
# CONFIG_NFS_V3 is not set
# CONFIG_NFS_V3_ACL is not set
CONFIG_NFS_V4=y
CONFIG_NFS_V4_1=y
# CONFIG_NFS_V4_2 is not set

CONFIG_NFSD=y
# CONFIG_NFSD_V3 is not set
# CONFIG_NFSD_V3_ACL is not set
CONFIG_NFSD_V4=y


yes
Back to top
View user's profile Send private message
pingtoo
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2021
Posts: 104
Location: Richmond Hill, Canada

PostPosted: Wed Nov 24, 2021 10:36 pm    Post subject: Reply with quote

Judge from your rpcinfo -p it looks like it does NOT offer NFSv2. Are you sure NFSv2 work?

Is your kernel actually configured like mike155's example? because NFS is part of kernel function so if your kernel configured not support NFSv2 than you are good to go.
Back to top
View user's profile Send private message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 250

PostPosted: Thu Nov 25, 2021 5:54 am    Post subject: Reply with quote

pingtoo wrote:
Judge from your rpcinfo -p it looks like it does NOT offer NFSv2. Are you sure NFSv2 work?

Is your kernel actually configured like mike155's example? because NFS is part of kernel function so if your kernel configured not support NFSv2 than you are good to go.


So, actually, i can control versions via kernel modules, and not nfs options itself?
Back to top
View user's profile Send private message
pingtoo
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2021
Posts: 104
Location: Richmond Hill, Canada

PostPosted: Thu Nov 25, 2021 12:19 pm    Post subject: Reply with quote

leonchik1976 wrote:
pingtoo wrote:
Judge from your rpcinfo -p it looks like it does NOT offer NFSv2. Are you sure NFSv2 work?

Is your kernel actually configured like mike155's example? because NFS is part of kernel function so if your kernel configured not support NFSv2 than you are good to go.


So, actually, i can control versions via kernel modules, and not nfs options itself?
Yes. NFS being kernel function, you can choose not compile in so it will never work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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