Talk:Nfs-utils

systemd
Hi all, I found very useful this wiki, but it is not covering the case of a systemd based gentoo system:


 * nfsd prerequisite services: openrc manages all the nfsd prerequisites correctly, under systemd instead the services have to be enabled explicitly;
 * nfsd options: under openrc the config file /etc/conf.d/nfs is correctly managed by openrc, under systemd it is not, I had to alter the corresponding systemd service to have similar behaviour.

I realize that maybe this topic should be addressed also to the systemd experts, but it could be convenient at least to mention the differences.

The problem imho it is that the behaviour of a gentoo system is become somewhat different depending to the init system used (openrc or systemd).

Best regards

Giampiero

— The preceding comment was added by Zio-lupo (talk • contribs) 11 January 2015

Hi, I just added some instructions how to get NFS running with systemd, according to https://www.gentoo.org/support/news-items/2015-02-02-nfs-service-changes.html

Regards, Markus

— The preceding comment was added by kaindl (talk • contribs) 30 January 2017

exports.d
24/01/2017: net-fs/nfs-utils-1.3.4: I have /etc/exports.d/ instead of /etc/exports I am not sure if they are related.. so I used the /etc/exports file cheers, BW

— The preceding comment was added by Bw (talk • contribs) 24 January 2017


 * See and http://www.portagefilelist.de/site/query/listPackageFiles/?category=net-fs&package=nfs-utils&version=1.3.4&do#result  --Charles17 (talk) 14:13, 24 January 2017 (UTC)

mount.nfs4: Network is unreachable
At the time of writing this section, the software versions involved were as following
 * 1) net-fs/nfs-utils-2.6.1
 * 2) sys-kernel/gentoo-sources-5.15.75
 * 3) sys-apps/openrc-0.45.s-r1

About the solutions provided,
 * 1) Change in /etc/rc.conf should have worked since the logs showed dhcp starting before nfs but it didn't. I may have been able to set more specific dependencies on this file based on the examples to configure specific requirements for services but didn't feelconfident enought and my attempts didn't work so I assumed that I was not doing it right.
 * 2) Add netwotk to the depend section on the init script should have worked, eithwe using net or net.enp1s0 but again, that didn't work for me.
 * 3) Setting a fix IP did the trick for me.

I assume, based on my attempts that dhcp service was too slow to start and was not a requirement for nfs. I may do some more digging about it. But one potential problem that I see with this solution is that after updates to the related packages, the modifications on the init scripts may be lost.

--Patomas (talk) 03:37, 7 November 2022 (UTC)