View previous topic :: View next topic |
Author |
Message |
guid0 Guru
Joined: 06 Jul 2003 Posts: 377 Location: The Netherlands / Nederland
|
Posted: Mon Sep 23, 2024 8:50 am Post subject: nfs-utils not providing /etc/conf.d/nfs |
|
|
I expected a file in /etc/conf.d/nfs after emerging nfs-utils. When looking at https://www.portagefilelist.de/?fs=%2Fetc%2Fconf.d%2Fnfs it should be there.
However, when emerging/remerging the file remains non-existant.
Code: | [ebuild R ] net-fs/nfs-utils-2.6.4-r11::gentoo USE="libmount nfsv3 nfsv4 uuid -caps -junction -kerberos -ldap -sasl (-selinux) -tcpd" |
should i create the /etc/conf.d/nfs file myself? I wanted to configure OPTS_RPC_STATD which is used by rpc.statd service and put the settings for this, amongst other things in this file.
anyone?
cheers,
guid0 |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1725 Location: Germany
|
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1958
|
Posted: Mon Sep 23, 2024 12:10 pm Post subject: |
|
|
From a quick glance, I think it's intentional that it's not installed and you can make your own to put settings in if needed. But I agree it's odd. Normally we install some example one with commented out lines as documentation. |
|
Back to top |
|
|
guid0 Guru
Joined: 06 Jul 2003 Posts: 377 Location: The Netherlands / Nederland
|
Posted: Mon Sep 23, 2024 8:34 pm Post subject: |
|
|
I checked an old cold spare server running an abandoned Gentoo-setup. It has an old version of nfs-utils ( nfs-utils-2.5.1) installed and seems to have below file included.
Code: | # /etc/conf.d/nfs
# If you wish to set the port numbers for lockd,
# please see /etc/sysctl.conf
# Optional services to include in default `/etc/init.d/nfs start`
# For NFSv4 users, you'll want to add "rpc.idmapd" here.
NFS_NEEDED_SERVICES="rpc.idmapd"
# Number of servers to be started up by default
OPTS_RPC_NFSD="16"
# Options to pass to rpc.mountd
# ex. OPTS_RPC_MOUNTD="-p 32767"
OPTS_RPC_MOUNTD="-p 4002"
# Options to pass to rpc.statd
# ex. OPTS_RPC_STATD="-p 32765 -o 32766"
OPTS_RPC_STATD="-p 4000"
# Options to pass to rpc.idmapd
OPTS_RPC_IDMAPD=""
# Options to pass to rpc.gssd
OPTS_RPC_GSSD=""
# Options to pass to rpc.svcgssd
OPTS_RPC_SVCGSSD=""
# Options to pass to rpc.rquotad (requires sys-fs/quota)
OPTS_RPC_RQUOTAD=""
# Timeout (in seconds) for exportfs
EXPORTFS_TIMEOUT=120
# Options to set in the nfsd filesystem (/proc/fs/nfsd/).
# Format is <option>=<value>. Multiple options are allowed.
#OPTS_NFSD="nfsv4leasetime=30 max_block_size=4096" |
not entirely sure if this was hand-made. would be nice to know why its not, or no longer part of the package.
cheers,
guid0 |
|
Back to top |
|
|
guid0 Guru
Joined: 06 Jul 2003 Posts: 377 Location: The Netherlands / Nederland
|
Posted: Mon Sep 23, 2024 8:46 pm Post subject: |
|
|
equery files nfs-utils on old and new machine:
old (has /etc/conf.d/nfs* )
Code: | ~ # equery files nfs-utils
* Searching for nfs-utils ...
* Contents of net-fs/nfs-utils-2.5.1:
/etc
/etc/conf.d
/etc/conf.d/nfs
/etc/conf.d/nfsclient
/etc/exports
/etc/exports.d
/etc/exports.d/.keep_net-fs_nfs-utils-0
/etc/idmapd.conf
/etc/init.d
/etc/init.d/nfs
/etc/init.d/nfsclient
/etc/init.d/nfsmount
/etc/init.d/rpc.idmapd
/etc/init.d/rpc.pipefs
/etc/init.d/rpc.statd
/etc/request-key.d
/etc/request-key.d/id_resolver.conf
/lib
/lib/systemd
/lib/systemd/system
/lib/systemd/system/nfs-client.target
/lib/systemd/system/nfs-idmapd.service
/lib/systemd/system/nfs-mountd.service
/lib/systemd/system/nfs-server.service
/lib/systemd/system/nfs-utils.service
/lib/systemd/system/nfsdcld.service
/lib/systemd/system/proc-fs-nfsd.mount
/lib/systemd/system/rpc-statd-notify.service
/lib/systemd/system/rpc-statd.service
/lib/systemd/system/rpc_pipefs.target
/lib/systemd/system/var-lib-nfs-rpc_pipefs.mount
/sbin
/sbin/mount.nfs
/sbin/mount.nfs4 -> mount.nfs
/sbin/rpc.statd
/sbin/umount.nfs -> mount.nfs
/sbin/umount.nfs4 -> mount.nfs
/usr
/usr/include
/usr/include/nfsidmap.h
/usr/include/nfsidmap_plugin.h
/usr/lib
/usr/lib/systemd
/usr/lib/systemd/system-generators
/usr/lib/systemd/system-generators/nfs-server-generator
/usr/lib/systemd/system-generators/rpc-pipefs-generator
/usr/lib64
/usr/lib64/libnfsidmap
/usr/lib64/libnfsidmap.a
/usr/lib64/libnfsidmap.la
/usr/lib64/libnfsidmap.so -> libnfsidmap.so.1.0.0
/usr/lib64/libnfsidmap.so.1 -> libnfsidmap.so.1.0.0
/usr/lib64/libnfsidmap.so.1.0.0
/usr/lib64/libnfsidmap/nsswitch.a
/usr/lib64/libnfsidmap/nsswitch.la
/usr/lib64/libnfsidmap/nsswitch.so
/usr/lib64/libnfsidmap/regex.a
/usr/lib64/libnfsidmap/regex.la
/usr/lib64/libnfsidmap/regex.so
/usr/lib64/libnfsidmap/static.a
/usr/lib64/libnfsidmap/static.la
/usr/lib64/libnfsidmap/static.so
/usr/lib64/nfs
/usr/lib64/nfs/.keep_net-fs_nfs-utils-0
/usr/lib64/nfs/etab
/usr/lib64/nfs/rmtab
/usr/lib64/nfs/sm
/usr/lib64/nfs/sm.bak
/usr/lib64/nfs/sm.bak/.keep_net-fs_nfs-utils-0
/usr/lib64/nfs/sm/.keep_net-fs_nfs-utils-0
/usr/lib64/nfs/state
/usr/lib64/pkgconfig
/usr/lib64/pkgconfig/libnfsidmap.pc
/usr/sbin
/usr/sbin/exportfs
/usr/sbin/mountstats
/usr/sbin/nfsconf
/usr/sbin/nfsdcld
/usr/sbin/nfsdclddb
/usr/sbin/nfsdclnts
/usr/sbin/nfsidmap
/usr/sbin/nfsiostat
/usr/sbin/nfsstat
/usr/sbin/rpc.idmapd
/usr/sbin/rpc.mountd
/usr/sbin/rpc.nfsd
/usr/sbin/rpcdebug
/usr/sbin/showmount
/usr/sbin/sm-notify
/usr/sbin/start-statd
/usr/share
/usr/share/doc
/usr/share/doc/nfs-utils-2.5.1
/usr/share/doc/nfs-utils-2.5.1/NEWS.bz2
/usr/share/doc/nfs-utils-2.5.1/README.bz2
/usr/share/doc/nfs-utils-2.5.1/linux-nfs
/usr/share/doc/nfs-utils-2.5.1/linux-nfs/ChangeLog.bz2
/usr/share/doc/nfs-utils-2.5.1/linux-nfs/INSTALL.bz2
/usr/share/doc/nfs-utils-2.5.1/linux-nfs/KNOWNBUGS.bz2
/usr/share/doc/nfs-utils-2.5.1/linux-nfs/NEW.bz2
/usr/share/doc/nfs-utils-2.5.1/linux-nfs/README.bz2
/usr/share/doc/nfs-utils-2.5.1/linux-nfs/THANKS.bz2
/usr/share/doc/nfs-utils-2.5.1/linux-nfs/TODO.bz2
/usr/share/man
/usr/share/man/man3
/usr/share/man/man3/nfs4_uid_to_name.3.bz2
/usr/share/man/man5
/usr/share/man/man5/exports.5.bz2
/usr/share/man/man5/idmapd.conf.5.bz2
/usr/share/man/man5/nfs.5.bz2
/usr/share/man/man5/nfs.conf.5.bz2
/usr/share/man/man5/nfsmount.conf.5.bz2
/usr/share/man/man7
/usr/share/man/man7/nfs.systemd.7.bz2
/usr/share/man/man7/nfsd.7.bz2
/usr/share/man/man8
/usr/share/man/man8/exportfs.8.bz2
/usr/share/man/man8/idmapd.8.bz2
/usr/share/man/man8/mount.nfs.8.bz2
/usr/share/man/man8/mountd.8.bz2
/usr/share/man/man8/mountstats.8.bz2
/usr/share/man/man8/nfsconf.8.bz2
/usr/share/man/man8/nfsd.8.bz2
/usr/share/man/man8/nfsdcld.8.bz2
/usr/share/man/man8/nfsdclddb.8.bz2
/usr/share/man/man8/nfsdclnts.8.bz2
/usr/share/man/man8/nfsidmap.8.bz2
/usr/share/man/man8/nfsiostat.8.bz2
/usr/share/man/man8/nfsstat.8.bz2
/usr/share/man/man8/rpc.idmapd.8.bz2 -> idmapd.8.bz2
/usr/share/man/man8/rpc.mountd.8.bz2 -> mountd.8.bz2
/usr/share/man/man8/rpc.nfsd.8.bz2 -> nfsd.8.bz2
/usr/share/man/man8/rpc.sm-notify.8.bz2 -> sm-notify.8.bz2
/usr/share/man/man8/rpc.statd.8.bz2 -> statd.8.bz2
/usr/share/man/man8/rpcdebug.8.bz2
/usr/share/man/man8/showmount.8.bz2
/usr/share/man/man8/sm-notify.8.bz2
/usr/share/man/man8/statd.8.bz2
/usr/share/man/man8/umount.nfs.8.bz2
/var
/var/lib
/var/lib/nfs
/var/lib/nfs/.keep_net-fs_nfs-utils-0
/var/lib/nfs/v4recovery
/var/lib/nfs/v4recovery/.keep_net-fs_nfs-utils-0 |
new install (missing /etc/conf.d/nfs*)
Code: | ~ # equery files nfs-utils
* Searching for nfs-utils ...
* Contents of net-fs/nfs-utils-2.6.4-r11:
/etc
/etc/exports
/etc/exports.d
/etc/exports.d/.keep_net-fs_nfs-utils-0
/etc/idmapd.conf
/etc/init.d
/etc/init.d/nfs
/etc/init.d/nfsclient
/etc/init.d/rpc.idmapd
/etc/init.d/rpc.pipefs
/etc/init.d/rpc.statd
/etc/request-key.d
/etc/request-key.d/id_resolver.conf
/lib
/lib/systemd
/lib/systemd/system
/lib/systemd/system-generators
/lib/systemd/system-generators/nfs-server-generator
/lib/systemd/system-generators/rpc-pipefs-generator
/lib/systemd/system/fsidd.service
/lib/systemd/system/nfs-blkmap.service
/lib/systemd/system/nfs-client.target
/lib/systemd/system/nfs-idmapd.service
/lib/systemd/system/nfs-mountd.service
/lib/systemd/system/nfs-server.service
/lib/systemd/system/nfs-utils.service
/lib/systemd/system/nfsdcld.service
/lib/systemd/system/nfsv4-exportd.service
/lib/systemd/system/nfsv4-server.service
/lib/systemd/system/proc-fs-nfsd.mount
/lib/systemd/system/rpc-statd-notify.service
/lib/systemd/system/rpc-statd.service
/lib/systemd/system/rpc_pipefs.target
/lib/systemd/system/var-lib-nfs-rpc_pipefs.mount
/sbin
/sbin/mount.nfs
/sbin/mount.nfs4 -> mount.nfs
/sbin/nfsdcltrack
/sbin/rpc.statd
/sbin/umount.nfs -> mount.nfs
/sbin/umount.nfs4 -> mount.nfs
/usr
/usr/include
/usr/include/nfsidmap.h
/usr/include/nfsidmap_plugin.h
/usr/lib
/usr/lib/udev
/usr/lib/udev/rules.d
/usr/lib/udev/rules.d/60-nfs.rules
/usr/lib/udev/rules.d/99-nfs.rules
/usr/lib64
/usr/lib64/libnfsidmap
/usr/lib64/libnfsidmap.so -> libnfsidmap.so.1.0.0
/usr/lib64/libnfsidmap.so.1 -> libnfsidmap.so.1.0.0
/usr/lib64/libnfsidmap.so.1.0.0
/usr/lib64/libnfsidmap/nsswitch.so
/usr/lib64/libnfsidmap/regex.so
/usr/lib64/libnfsidmap/static.so
/usr/lib64/nfs
/usr/lib64/nfs/.keep_net-fs_nfs-utils-0
/usr/lib64/nfs/etab
/usr/lib64/nfs/rmtab
/usr/lib64/nfs/sm
/usr/lib64/nfs/sm.bak
/usr/lib64/nfs/sm.bak/.keep_net-fs_nfs-utils-0
/usr/lib64/nfs/sm/.keep_net-fs_nfs-utils-0
/usr/lib64/nfs/state
/usr/lib64/pkgconfig
/usr/lib64/pkgconfig/libnfsidmap.pc
/usr/libexec
/usr/libexec/nfsrahead
/usr/sbin
/usr/sbin/blkmapd
/usr/sbin/exportfs
/usr/sbin/fsidd
/usr/sbin/mountstats
/usr/sbin/nfsconf
/usr/sbin/nfsdcld
/usr/sbin/nfsdclddb
/usr/sbin/nfsdclnts
/usr/sbin/nfsidmap
/usr/sbin/nfsiostat
/usr/sbin/nfsstat
/usr/sbin/nfsv4.exportd
/usr/sbin/rpc.idmapd
/usr/sbin/rpc.mountd
/usr/sbin/rpc.nfsd
/usr/sbin/rpcctl
/usr/sbin/rpcdebug
/usr/sbin/showmount
/usr/sbin/sm-notify
/usr/sbin/start-statd
/usr/share
/usr/share/doc
/usr/share/doc/nfs-utils-2.6.4-r11
/usr/share/doc/nfs-utils-2.6.4-r11/NEWS.bz2
/usr/share/doc/nfs-utils-2.6.4-r11/README.bz2
/usr/share/doc/nfs-utils-2.6.4-r11/linux-nfs
/usr/share/doc/nfs-utils-2.6.4-r11/linux-nfs/ChangeLog.bz2
/usr/share/doc/nfs-utils-2.6.4-r11/linux-nfs/INSTALL.bz2
/usr/share/doc/nfs-utils-2.6.4-r11/linux-nfs/KNOWNBUGS.bz2
/usr/share/doc/nfs-utils-2.6.4-r11/linux-nfs/NEW.bz2
/usr/share/doc/nfs-utils-2.6.4-r11/linux-nfs/README.bz2
/usr/share/doc/nfs-utils-2.6.4-r11/linux-nfs/THANKS.bz2
/usr/share/doc/nfs-utils-2.6.4-r11/linux-nfs/TODO.bz2
/usr/share/man
/usr/share/man/man3
/usr/share/man/man3/nfs4_uid_to_name.3.bz2
/usr/share/man/man5
/usr/share/man/man5/exports.5.bz2
/usr/share/man/man5/idmapd.conf.5.bz2
/usr/share/man/man5/nfs.5.bz2
/usr/share/man/man5/nfs.conf.5.bz2
/usr/share/man/man5/nfsmount.conf.5.bz2
/usr/share/man/man5/nfsrahead.5.bz2
/usr/share/man/man7
/usr/share/man/man7/nfs.systemd.7.bz2
/usr/share/man/man7/nfsd.7.bz2
/usr/share/man/man8
/usr/share/man/man8/blkmapd.8.bz2
/usr/share/man/man8/exportd.8.bz2
/usr/share/man/man8/exportfs.8.bz2
/usr/share/man/man8/idmapd.8.bz2
/usr/share/man/man8/mount.nfs.8.bz2
/usr/share/man/man8/mountd.8.bz2
/usr/share/man/man8/mountstats.8.bz2
/usr/share/man/man8/nfsconf.8.bz2
/usr/share/man/man8/nfsd.8.bz2
/usr/share/man/man8/nfsdcld.8.bz2
/usr/share/man/man8/nfsdclddb.8.bz2
/usr/share/man/man8/nfsdclnts.8.bz2
/usr/share/man/man8/nfsdcltrack.8.bz2
/usr/share/man/man8/nfsidmap.8.bz2
/usr/share/man/man8/nfsiostat.8.bz2
/usr/share/man/man8/nfsstat.8.bz2
/usr/share/man/man8/nfsv4.exportd.8.bz2 -> exportd.8.bz2
/usr/share/man/man8/rpc.idmapd.8.bz2 -> idmapd.8.bz2
/usr/share/man/man8/rpc.mountd.8.bz2 -> mountd.8.bz2
/usr/share/man/man8/rpc.nfsd.8.bz2 -> nfsd.8.bz2
/usr/share/man/man8/rpc.sm-notify.8.bz2 -> sm-notify.8.bz2
/usr/share/man/man8/rpc.statd.8.bz2 -> statd.8.bz2
/usr/share/man/man8/rpcctl.8.bz2
/usr/share/man/man8/rpcdebug.8.bz2
/usr/share/man/man8/showmount.8.bz2
/usr/share/man/man8/sm-notify.8.bz2
/usr/share/man/man8/statd.8.bz2
/usr/share/man/man8/umount.nfs.8.bz2
/var
/var/lib
/var/lib/nfs
/var/lib/nfs/.keep_net-fs_nfs-utils-0
/var/lib/nfs/v4recovery
/var/lib/nfs/v4recovery/.keep_net-fs_nfs-utils-0 |
|
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1725 Location: Germany
|
|
Back to top |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2179
|
Posted: Tue Sep 24, 2024 8:22 am Post subject: |
|
|
I've been running nfs since 2018, and have no /etc/conf.d/nfs.
Looking at the wiki entry, I suspect you only need it if you have Kerberos.
<edit>Thinking some more, this is on a machine that's only ever been an nfs client. I'll check my server box later to see if it has a conf.d file. _________________ Greybeard |
|
Back to top |
|
|
guid0 Guru
Joined: 06 Jul 2003 Posts: 377 Location: The Netherlands / Nederland
|
Posted: Tue Sep 24, 2024 9:40 am Post subject: |
|
|
perhaps i should recompile using kerberos useflag, see if it appears.. will try ltr today. |
|
Back to top |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2179
|
Posted: Tue Sep 24, 2024 12:39 pm Post subject: |
|
|
My server has a copy of /etc/conf.d/nfs (see below), and I doubt I've touched it much. It was last modified in August 2018, which is just after nfs-utils version moved from 1.3.4 to 2.3.1, so my guess is it came with nfs-utils-1.x.
Code: | # /etc/conf.d/nfs
# If you wish to set the port numbers for lockd,
# please see /etc/sysctl.conf
# Optional services to include in default `/etc/init.d/nfs start`
# For NFSv4 users, you'll want to add "rpc.idmapd" here.
NFS_NEEDED_SERVICES="rpc.idmapd"
# Options to pass to rpc.nfsd
OPTS_RPC_NFSD="8 -V4"
# Options to pass to rpc.mountd
# ex. OPTS_RPC_MOUNTD="-p 32767"
OPTS_RPC_MOUNTD=""
# Options to pass to rpc.statd
# ex. OPTS_RPC_STATD="-p 32765 -o 32766"
OPTS_RPC_STATD=""
# Options to pass to rpc.idmapd
OPTS_RPC_IDMAPD=""
# Options to pass to rpc.gssd
OPTS_RPC_GSSD=""
# Options to pass to rpc.svcgssd
OPTS_RPC_SVCGSSD=""
# Options to pass to rpc.rquotad (requires sys-fs/quota)
OPTS_RPC_RQUOTAD=""
# Timeout (in seconds) for exportfs
EXPORTFS_TIMEOUT=30
# Options to set in the nfsd filesystem (/proc/fs/nfsd/).
# Format is <option>=<value>. Multiple options are allowed.
#OPTS_NFSD="nfsv4leasetime=30 max_block_size=4096" |
_________________ Greybeard |
|
Back to top |
|
|
nicop Tux's lil' helper
Joined: 10 Apr 2014 Posts: 90
|
|
Back to top |
|
|
guid0 Guru
Joined: 06 Jul 2003 Posts: 377 Location: The Netherlands / Nederland
|
Posted: Tue Sep 24, 2024 1:45 pm Post subject: |
|
|
Interesting! Thanks for the info.
Will have to look into this a little later. Other activities are taking my time at the moment.
-guid0 |
|
Back to top |
|
|
nicop Tux's lil' helper
Joined: 10 Apr 2014 Posts: 90
|
Posted: Tue Sep 24, 2024 2:37 pm Post subject: |
|
|
Debian cleaned up the init and conf files for the 2.6 to 2.7 upgrade. This may be a source of inspiration.
sam_ wrote: | From a quick glance, I think it's intentional that it's not installed and you can make your own to put settings in if needed. But I agree it's odd. Normally we install some example one with commented out lines as documentation. |
Yes. Variables from init script (${NFS_NEEDED_SERVICES} ${OPTS_NFSD} ${OPTS_RPC_MOUNTD} ${OPTS_RPC_NFSD} ${OPTS_SMNOTIFY}) need to be explicit in conf.d IMHO. |
|
Back to top |
|
|
guid0 Guru
Joined: 06 Jul 2003 Posts: 377 Location: The Netherlands / Nederland
|
Posted: Wed Sep 25, 2024 10:05 am Post subject: |
|
|
the settings i want seem to work with the file, not without.
no time to play any further unfortunately for a while. The no-longer-included /etc/conf.d does seem somewhat weird to me.
tnx
-guid0 |
|
Back to top |
|
|
|