Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nfsdcld & missing nfs4recoverydir
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
s|mon
Apprentice
Apprentice


Joined: 04 Jul 2004
Posts: 214
Location: Bayern [de]

PostPosted: Sun Oct 27, 2024 9:11 am    Post subject: nfsdcld & missing nfs4recoverydir Reply with quote

Using nfs4 i found that i got some errors indicating that client tracking is not configured consistently as i removed the legacy client tracking from kernel configuration.
I understood that the current way would be to run nfsdcld (https://bugs.gentoo.org/935724)

but when i try to start the daemon i get this (indicating proc entry missing - not sure on the inotify impact yet)
I did not find which part of kernel config or tool would be responsible for creating this.

Quote:
nfsdcld -F -d
nfsdcld: sqlite_startup_query_grace: current_epoch=1 recovery_epoch=0
nfsdcld: sqlite_check_db_health: returning 0
nfsdcld: attaching /var/lib/nfs/nfsdcltrack/main.sqlite
nfsdcld: detaching database
nfsdcld: sqlite_copy_cltrack_records: returning 0
nfsdcld: sqlite_prepare_dbh: num_cltrack_records = 0

nfsdcld: Unable to open /proc/fs/nfsd/nfsv4recoverydir: No such file or directory
nfsdcld: sqlite_prepare_dbh: num_legacy_records = 0

nfsdcld: cld_pipe_init: init pipe handlers
nfsdcld: cld_inotify_setup: inotify_add_watch failed: No such file or directory




Quote:
zcat /proc/config.gz | grep NFSD
CONFIG_NFSD=y
# CONFIG_NFSD_V2 is not set
# CONFIG_NFSD_V3_ACL is not set
CONFIG_NFSD_V4=y
# CONFIG_NFSD_BLOCKLAYOUT is not set
# CONFIG_NFSD_SCSILAYOUT is not set
# CONFIG_NFSD_FLEXFILELAYOUT is not set
CONFIG_NFSD_V4_2_INTER_SSC=y
# CONFIG_NFSD_V4_SECURITY_LABEL is not set
# CONFIG_NFSD_LEGACY_CLIENT_TRACKING is not set


Kernel is gentoo-sources-6.11.4 with
Quote:

[I] net-fs/nfs-utils
Installed versions: 2.7.1^t(15:11:20 10/19/24)(kerberos libmount nfsv3 nfsv4 uuid -caps -junction -ldap -sasl -selinux -tcpd)


Anyone has a hint on what i am missing?

Edit: Small progress, after mounting this fstab entry, i could start the nfsdcld. Not sure if this is the proper way to go and i just missed this from instructions or not
Code:
rpc_pipefs   /var/lib/nfs/rpc_pipefs   rpc_pipefs   defaults   0   0
Back to top
View user's profile Send private message
nicop
Tux's lil' helper
Tux's lil' helper


Joined: 10 Apr 2014
Posts: 80

PostPosted: Mon Oct 28, 2024 2:04 pm    Post subject: Re: nfsdcld & missing nfs4recoverydir Reply with quote

s|mon wrote:
Edit: Small progress, after mounting this fstab entry, i could start the nfsdcld. Not sure if this is the proper way to go and i just missed this from instructions or not
rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs defaults 0 0

This is the job of rpc.idmapd service.

I have this :

/etc/conf.d/nfs :
Code:
# 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 nfsdcld"


/etc/init.d/nfsdcld :
Code:
#!/sbin/openrc-run
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

name="nfsdcld daemon"
description="NFSv4 Client Tracking Daemon"
command=/usr/bin/nfsdcld
command_args="${nfsdcld_args}"


My paths are :
/var/lib/nfs/v4recovery/
/var/lib/nfs/nfsdcld/main.sqlite

as expected here : https://gitweb.gentoo.org/repo/gentoo.git/tree/net-fs/nfs-utils/nfs-utils-2.7.1.ebuild#n198
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