View previous topic :: View next topic |
Author |
Message |
tld Veteran
Joined: 09 Dec 2003 Posts: 1845
|
Posted: Tue Mar 26, 2024 6:05 pm Post subject: Odd NFS client error on startup? |
|
|
On my MythTV frontend, I'm getting this strange error during the startup (this is from my rc.log): Code: | * Starting NFS statd ...
[ ok ]
* ERROR: nfsclient needs service(s) rpc.idmapd
* Mounting network filesystems ...
[ ok ] |
I do have an NFS share that gets mounted on boot on that system and that's working just fine. I actually don't even know what enabled service is causing this.
I'm totally confused as to what the "nfsclient" service even is, but that is NOT enabled. I also have no idea what that "NFS statd" even is. This might be coming from the netmount service which is enabled.
So yea...there's a lot I don't understand here at all, though again, it's not causing any problems it seems. Odd one.
Tom |
|
Back to top |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2078 Location: San Jose, CA
|
Posted: Sat Mar 30, 2024 11:29 pm Post subject: |
|
|
Install net-fs/nfs-utils _________________ Some day there will only be free software. |
|
Back to top |
|
|
tld Veteran
Joined: 09 Dec 2003 Posts: 1845
|
Posted: Sun Mar 31, 2024 1:24 pm Post subject: |
|
|
RayDude wrote: | Install net-fs/nfs-utils | That's the thing: That very much is installed, and I'm able to mount nfs no problem.
That nfsclient service script does in fact belong to that, though that service is NOT enabled: Code: | equery b /etc/init.d/nfsclient
* Searching for /etc/init.d/nfsclient ...
net-fs/nfs-utils-2.6.4-r11 (/etc/init.d/nfsclient) |
Also as the message indicates, it does depend on a rpc.idmapd service which doesn't exist:
Code: | cat /etc/init.d/nfsclient
#!/sbin/openrc-run
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs
depend() {
local opts myneed=""
if [ -e /etc/fstab ] ; then
for opts in $(fstabinfo -o -t nfs,nfs4) ; do
case $opts in
*sec=krb*|*sec=spkm*) myneed="$myneed rpc.gssd" ;;
esac
done
fi
config /etc/fstab
need portmap
need rpc.statd rpc.idmapd ${myneed}
use ypbind dns
}
start() {
if [ -x /usr/sbin/sm-notify ] ; then
ebegin "Starting NFS sm-notify"
/usr/sbin/sm-notify ${OPTS_SMNOTIFY}
eend $?
fi
# Make sure nfs support is loaded in the kernel #64709
if [ -e /proc/modules ] && ! grep -qs 'nfs$' /proc/filesystems ; then
modprobe -q nfs
fi
return 0
} |
Pretty odd. Honestly I don't even understand what that nfsclient service even does, but I'm not using it.
Tom |
|
Back to top |
|
|
tld Veteran
Joined: 09 Dec 2003 Posts: 1845
|
Posted: Sun Mar 31, 2024 1:31 pm Post subject: |
|
|
OK. I think I see what's going on there:
Looking at the ebuild, that nfsclient script will always get installed and does depend on that rpc.idmapd script. However the rpc.idmapd ONLY gets installed if the nfs4 USE flag is enabled, and I have that disabled.
I think I may have recently removed that nfs4 USE as well which explains why it started recently. That seems like a bug.
I'm still confused as to what that nfsclient service is even for though.
Tom |
|
Back to top |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2078 Location: San Jose, CA
|
Posted: Sun Mar 31, 2024 3:50 pm Post subject: |
|
|
tld wrote: | OK. I think I see what's going on there:
Looking at the ebuild, that nfsclient script will always get installed and does depend on that rpc.idmapd script. However the rpc.idmapd ONLY gets installed if the nfs4 USE flag is enabled, and I have that disabled.
I think I may have recently removed that nfs4 USE as well which explains why it started recently. That seems like a bug.
I'm still confused as to what that nfsclient service is even for though.
Tom |
That's interesting, I disabled nfsv4 on my server because nfs was being a dick, basically the PC would hang on reboot waiting for the nfs clients to disconnect. This is really bad for a server. I have recently found out there's a way to mount where disconnects don't matter, but I haven't had the time or inclination to fix it because I'm using SMB protocol as a work around. (ugh)
Sorry, I went off topic.
I disabled nfsv4 but the script still exists. That means it installed before disabled the use flag and is likely out of date.
Anyway, I'm glad you figured it out. _________________ Some day there will only be free software. |
|
Back to top |
|
|
|