[Bug 680680] Re: mount picks the wrong version of NFS filesystem

Christian Mudra 680680 at bugs.launchpad.net
Sun Jan 8 09:54:30 UTC 2012


I'm running a Debian Server (6.0.3) and two Ubuntu 10.04 LTS clients with am-utils to mount the server shares. 
 On the 10.04 LTS, the output of 'mount' and '/proc/mounts' differ about the nfs-version and the used protocol type:

~$ mount | grep nfs | grep home
seth:(pid1718,port1022) on /home type nfs (intr,rw,port=1022,toplvl,nolock,map=amd.home,actimeo=0)
amun:/net/amun/fs1/home on /net/amun/fs1/home type nfs (rw,grpid,hard,intr,nodevs,nosuid,vers=3,proto=tcp)

~$ cat /proc/mounts | grep nfs | grep home
seth:(pid1718,port1022)/ /home nfs rw,relatime,vers=2,rsize=1024,wsize=1024,namlen=255,acregmin=0,acregmax=0,acdirmin=0,acdirmax=0,hard,proto=udp,port=65535,timeo=7,retrans=3,sec=sys,local_lock=none,addr=127.0.0.1 0 0
amun:/net/amun/fs1/home/ /net/amun/fs1/home nfs rw,nosuid,relatime,vers=2,rsize=8192,wsize=8192,namlen=255,acregmin=0,acregmax=0,acdirmin=0,acdirmax=0,hard,proto=udp,port=65535,timeo=7,retrans=3,sec=sys,local_lock=none,addr=172.20.91.20 0 0

On the 10.04 LTS client, in /etc/am-utils/amd.conf the following nfs
options are spezified:

~$ grep nfs /etc/am-utils/amd.conf  | grep -v "^\ *#"
  nfs_proto = tcp
  nfs_vers = 3

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nfs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/680680

Title:
  mount picks the wrong version of NFS filesystem

Status in “nfs-utils” package in Ubuntu:
  Confirmed

Bug description:
  I have a server running 10.04 and a desktop running 10.10. The server
  has a directory I am trying to mount using NFS. When letting it guess
  the NFS version it chooses incorrectly.

  Here is the command I use to mount my desired directory.
  > sudo /sbin/mount.nfs 192.168.1.20:/public /mnt/server -o rw

  /etc/mtab looks like this and the mount directory doesn't show any files.
  192.168.1.20:/public /mnt/server nfs rw,vers=4,addr=192.168.1.20,clientaddr=192.168.1.147 0 0

  By forcing version 3 on the command line it works.
  > sudo /sbin/mount.nfs 192.168.1.20:/public /mnt/server -o rw,vers=3

  /etc/mtab looks like this and the mount directory correctly shows the files.
  192.168.1.20:/public /mnt/server nfs rw,vers=3,addr=192.168.1.20 0 0

  ProblemType: Bug
  DistroRelease: Ubuntu 10.10
  Package: nfs-common 1:1.2.2-1ubuntu1
  ProcVersionSignature: Ubuntu 2.6.35-22.35-generic 2.6.35.4
  Uname: Linux 2.6.35-22-generic x86_64
  Architecture: amd64
  Date: Tue Nov 23 15:34:08 2010
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release Candidate amd64 (20100928)
  ProcEnviron:
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: nfs-utils

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/680680/+subscriptions




More information about the foundations-bugs mailing list