Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Odd NFS client error on startup?
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
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1845

PostPosted: Tue Mar 26, 2024 6:05 pm    Post subject: Odd NFS client error on startup? Reply with quote

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
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2078
Location: San Jose, CA

PostPosted: Sat Mar 30, 2024 11:29 pm    Post subject: Reply with quote

Install net-fs/nfs-utils
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1845

PostPosted: Sun Mar 31, 2024 1:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1845

PostPosted: Sun Mar 31, 2024 1:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2078
Location: San Jose, CA

PostPosted: Sun Mar 31, 2024 3:50 pm    Post subject: Reply with quote

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
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