LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 12-26-2015, 03:58 AM   #1
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Rep: Reputation: 119Reputation: 119
Cannot mount NFS shares anymore after latest updates (Dec 25)


Hello,

after applying the updates from the Dec 25 update, I can no longer mount any NFS shares using my Raspberry Pi; it was working before with the updates from the 21st December. They are served by another Raspberry Pi running current (Dec 25); I can mount them just fine on my x86_64 desktop, which is also running -current (Dec 23).

This is what I get:

Code:
# mount -v 192.168.1.6:/share/nfs /mnt/tmp
mount.nfs: timeout set for Sat Dec 26 10:52:39 2015
mount.nfs: trying text-based options 'addr=192.168.1.6'
mount.nfs: prog 100003, trying vers=4956184, prot=6
mount.nfs: trying 192.168.1.6 prog 100003 vers 4956184 prot TCP port 2049
mount.nfs: portmap query retrying: RPC: Program/version mismatch
mount.nfs: prog 100003, trying vers=4956184, prot=17
mount.nfs: trying 192.168.1.6 prog 100003 vers 4956184 prot UDP port 2049
mount.nfs: portmap query failed: RPC: Program/version mismatch
mount.nfs: Protocol not supported
Any other information needed?

edit: It seems I can mount them once I use '-o rw,vers=3'. This was not needed before, though.

Last edited by lems; 12-26-2015 at 04:07 AM.
 
Old 12-27-2015, 03:02 AM   #2
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,540

Rep: Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309
Quote:
Originally Posted by lems View Post
Hello,

Any other information needed?

edit: It seems I can mount them once I use '-o rw,vers=3'. This was not needed before, though.
I've spent a few hours now debugging this and can't work out what's wrong with it, apart from that it seems to be mount.nfs that's broken (because using just mount.nfs from the previous nfs-utils v1.3.1 works immediately).
I'm going to test some kernel changes first though out of curiosity before reverting to 1.3.1

Which kernel are you using?
 
Old 12-27-2015, 04:15 AM   #3
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
you may need to make it executable /etc/rc.d/rc.rpc I believe this was a install-new so this would chould cause your issue.

Code:
#!/bin/sh
# rc.rpc:  start/stop/restart RPC daemons needed to use NFS.
#
# You must run these daemons in order to mount NFS partitions
# (unless you use the mount option '-o nolock', which can
# corrupt files and is not generally recommended unless you
# are mounting the partition(s) as read-only).
#
# To run an NFS server, starting these is mandatory.
#

rpc_start() {
  if [ -x /sbin/rpcbind -a -x /sbin/rpc.statd ]; then
    if ! ps axc | grep -q rpcbind ; then
      echo "Starting RPC portmapper:  /sbin/rpcbind -l $1"
      /sbin/rpcbind -l $1
    fi
    if ! ps axc | grep -q rpc.statd ; then
      echo "Starting RPC NSM (Network Status Monitor):  /sbin/rpc.statd"
      /sbin/rpc.statd
    fi
  else
    echo "WARNING:  Cannot start RPC daemons needed for NFS.  One or more of"
    echo "          these required daemons is not executable or is not present"
    echo "          on your system:"
    echo
    echo "          /sbin/rpcbind or /sbin/rpc.statd"
    echo
  fi
}

rpc_stop() {
  killall rpc.statd 2> /dev/null
  sleep 1
  killall rpcbind 2> /dev/null
  sleep 1
  killall -9 rpc.statd 2> /dev/null # make sure :)
  sleep 1
  killall -9 rpcbind 2> /dev/null # make sure :)
  sleep 1
}

rpc_restart() {
  rpc_stop
  rpc_start
}

case "$1" in
'start')
  # Warm restart by default (see "man rpcbind" for details about the -w option)
  rpc_start -w
  ;;
'cold_start') # Start without -w option
  rpc_start
  ;;
'stop')
  rpc_stop
  ;;
'restart')
  rpc_restart
  ;;
*)
  echo "usage $0 start|stop|restart"
esac
 
Old 12-27-2015, 10:03 AM   #4
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Original Poster
Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by drmozes View Post
Which kernel are you using?
I'm using kernel 4.1.15+* (client+server) installed via rpi-update. Thank you for looking into this.

* uname -a output:
Code:
Linux edmond 4.1.15+ #830 Tue Dec 15 16:58:28 GMT 2015 armv6l BCM2708 GNU/Linux
@Drakeo: rc.rpc is executable on my system:
Code:
$ ls -l /etc/rc.d/rc.rpc
-rwxr-xr-x 1 root root 1526 Dec 15 08:55 /etc/rc.d/rc.rpc*

Last edited by lems; 12-27-2015 at 10:08 AM.
 
Old 12-27-2015, 05:45 PM   #5
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,540

Rep: Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309
Quote:
Originally Posted by lems View Post
I'm using kernel 4.1.15+* (client+server) installed via rpi-update. Thank you for looking into this.
As I was about to push out the updates with a reversion to 1.3.1, it suddenly occurred to me to do this:

Code:
sed -i '/Defaultvers=3/avers=3' /etc/nfsmount.conf
This just adds vers=3 to the config file in the proper location.

I'll do some more tests on a few machines here but it seems to work so far.
 
1 members found this post helpful.
Old 12-29-2015, 12:20 AM   #6
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Original Poster
Rep: Reputation: 119Reputation: 119
Your fix seems to work. Thank you, Stuart.
 
Old 05-30-2016, 12:51 PM   #7
slugman
Member
 
Registered: Jun 2010
Location: AZ
Distribution: Slackware
Posts: 106

Rep: Reputation: 1
still an issue

Hey guys, I just rsync'd slackwarearm-current yesterday, and I still encountered this issue. Thankfully I found this post and ran the command above (which simply adds the line 'vers=3' after 'Defaultvers=3'), which resolved it right away. However, you may want to go ahead and patch it.
 
Old 05-31-2016, 01:29 AM   #8
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,540

Rep: Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309
Quote:
Originally Posted by slugman View Post
Hey guys, I just rsync'd slackwarearm-current yesterday, and I still encountered this issue. Thankfully I found this post and ran the command above (which simply adds the line 'vers=3' after 'Defaultvers=3'), which resolved it right away. However, you may want to go ahead and patch it.
This was fixed last year and the config now ships with that setting, so I suspect you upgraded it but the .new file is left over.

Interesting though because I thought the problem was fixed without the need for that config file change.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extremely slow browsing NFS shares since latest slackpkg update enine Slackware 1 05-10-2015 03:57 AM
LXer: How to configure an NFS server and mount NFS shares on Ubuntu 14.10 LXer Syndicated Linux News 0 11-26-2014 07:31 PM
LXer: How to configure a NFS server and mount NFS shares on Ubuntu 14.04 LXer Syndicated Linux News 0 07-09-2014 09:00 AM
Unable to browse Samba servers and shares. Slack 13.1, 64 bit, latest updates. mpyusko Linux - Networking 2 03-28-2011 09:51 AM
NFS mount not working anymore. Spuddy Debian 1 01-24-2011 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 06:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration