View previous topic :: View next topic |
Author |
Message |
Flurp n00b
Joined: 15 Apr 2004 Posts: 20 Location: Crewe, UK
|
Posted: Mon May 16, 2022 10:57 pm Post subject: [SOLVED] nfs-utils: Am I doing something stupid? |
|
|
On Friday I carried out its weekly update on my home server server PC. I then restarted it to ensure all services were running the latest version. Some time later I noticed that the NFS exports weren't available and attempting to restart the service I got several errors along the lines of
Code: |
rpc.mountd: svc_tli_create: could not open connection for udp6
|
I don't have the IPV6 stack included in the kernel and, on looking at the nfs-utils ebuild, I saw that in 2.6.1 (the version just installed) the IPV6 use flag has been dropped so IPV6 is now unconditionally included.
I am now running a modified version of nfs-utils-2.6.1 with the IPV6 useflag re-instated which seems to be working fine.
A couple of questions:
1) Am I missing out in some way by not enabling IPV6 in my kernel?
2) What is the reason that the IPV6 useflag was dropped from nfs-utils and am I likely to regret enabling it locally?
Last edited by Flurp on Tue May 17, 2022 9:57 pm; edited 1 time in total |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Tue May 17, 2022 9:25 am Post subject: |
|
|
Hi
I also have ipv6 disabled via kernel cmdline(ipv6.disable=1)
This is openrc output
Code: |
start nfs
rpc.pipefs | * Setting up RPC pipefs ...
rpcbind | * Starting rpcbind ... [ ok ]
rpc.statd | * Starting NFS statd ... [ ok ]
rpc.idmapd | * Starting idmapd ...
rpc.svcgssd | * Starting svcgssd ... [ ok ]
nfs | * Mounting nfsd filesystem in /proc ... [ ok ]
nfs | * Exporting NFS directories ... [ ok ]
nfs | * Starting NFS mountd ...
nfs |rpc.mountd: svc_tli_create: could not open connection for udp6
nfs |rpc.mountd: svc_tli_create: could not open connection for tcp6
nfs |rpc.mountd: svc_tli_create: could not open connection for udp6
nfs |rpc.mountd: svc_tli_create: could not open connection for tcp6
nfs |rpc.mountd: svc_tli_create: could not open connection for udp6
nfs |rpc.mountd: svc_tli_create: could not open connection for tcp6 [ ok ]
nfs | * Starting NFS daemon ... [ ok ]
nfs | * Starting NFS smnotify ... [ ok ]
|
However I have no problem whatsoever with exporting or mounting the shares with
Code: |
net-fs/nfs-utils-2.6.1
|
Code: |
exportfs -avr
exporting *:/srv/nfs
|
BUT ipv6 is enabled in kernel .config.
Code: |
CONFIG_IPV6=y
CONFIG_IPV6_ROUTER_PREF=y
CONFIG_IPV6_ROUTE_INFO=y
CONFIG_IPV6_OPTIMISTIC_DAD=y
CONFIG_IPV6_MIP6=m
CONFIG_IPV6_ILA=m
CONFIG_IPV6_VTI=m
CONFIG_IPV6_SIT=m
CONFIG_IPV6_SIT_6RD=y
CONFIG_IPV6_NDISC_NODETYPE=y
CONFIG_IPV6_TUNNEL=m
CONFIG_IPV6_GRE=m
CONFIG_IPV6_FOU=m
CONFIG_IPV6_FOU_TUNNEL=m
CONFIG_IPV6_MULTIPLE_TABLES=y
CONFIG_IPV6_SUBTREES=y
CONFIG_IPV6_MROUTE=y
CONFIG_IPV6_MROUTE_MULTIPLE_TABLES=y
CONFIG_IPV6_PIMSM_V2=y
CONFIG_IPV6_SEG6_LWTUNNEL=y
CONFIG_IPV6_SEG6_HMAC=y
CONFIG_IPV6_SEG6_BPF=y
CONFIG_IPV6_RPL_LWTUNNEL=y
CONFIG_IPV6_IOAM6_LWTUNNEL=y
CONFIG_MPTCP_IPV6=y
CONFIG_IP_VS_IPV6=y
# IPv6: Netfilter Configuration
CONFIG_NF_SOCKET_IPV6=m
CONFIG_NF_TPROXY_IPV6=m
CONFIG_NF_TABLES_IPV6=y
CONFIG_NFT_REJECT_IPV6=m
CONFIG_NFT_DUP_IPV6=m
CONFIG_NFT_FIB_IPV6=m
CONFIG_NF_DUP_IPV6=m
CONFIG_NF_REJECT_IPV6=m
CONFIG_NF_LOG_IPV6=m
CONFIG_IP6_NF_MATCH_IPV6HEADER=m
# end of IPv6: Netfilter Configuration
CONFIG_NF_DEFRAG_IPV6=m
CONFIG_6LOWPAN_NHC_IPV6=m
CONFIG_AF_RXRPC_IPV6=y
|
_________________
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54216 Location: 56N 3W
|
Posted: Tue May 17, 2022 10:02 am Post subject: |
|
|
Flurp,
USE=-ipv6 is no longer widely tested. Its being dropped in several places, so IPV6 will be non optional.
Please report a bug as nothing should break with IPV6 enabled but not in use. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
psycho Guru
Joined: 22 Jun 2007 Posts: 534 Location: New Zealand
|
Posted: Tue May 17, 2022 11:18 am Post subject: |
|
|
OK. I still have -ipv6 in make.conf (though obviously nfs-utils overrides this). Anyway no IPV6 in my kernel either and nfs works with no issues. I've never used IPV6...no particular reason, I've just never had a use for it and don't see the point in enabling something that's useless to me. I get that it has technical advantages, but none of them matter to me, so I'm happy with v4. |
|
Back to top |
|
|
Flurp n00b
Joined: 15 Apr 2004 Posts: 20 Location: Crewe, UK
|
Posted: Tue May 17, 2022 9:55 pm Post subject: |
|
|
Alamahant & Psycho
Now that is surprising. after reading your comments I rebuilt nfs-utils from the stock portage version and now it starts!
Code: |
Restarting init script
* Caching service dependencies ... [ ok ]
* Stopping NFS mountd ... [ ok ]
* Stopping NFS daemon ... [ ok ]
* Exporting NFS directories ... [ ok ]
* Starting NFS mountd ...
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6 [ ok ]
* Starting NFS daemon ... [ ok ]
* Starting NFS smnotify ... [ ok ]
|
That works through a reboot too. I have no idea what's changed since Saturday (I've done no 'maintenance' since then) but it seems to be working for me now, albeit with the IPV6 warnings above.
Neddy
Thanks for the words of wisdom as always. I'll consider enabling IPV6 as it's likely to be the way ahead for stability also more generally.
I'll mark this as solved. |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2961 Location: Edge of marsh USA
|
Posted: Wed May 18, 2022 2:53 am Post subject: |
|
|
Thanks for posting. I have IPV6 disabled in the kernel and portage globally, and on the kernel commandline on server and client. NFS(v3) continued to work through this update. I do get the upd6 error when nfs service restarted, but I didn't give it a second thought. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
Leonardo.b Apprentice
Joined: 10 Oct 2020 Posts: 294
|
Posted: Wed May 18, 2022 1:26 pm Post subject: |
|
|
Some programs offers a choice between IPv6/IPv4 (new code), and IPv4-only (old code, likely not well tested).
I build everything with IPv6 support; despite I disable it at runtime. |
|
Back to top |
|
|
|