[Bug 680680] Re: mount picks the wrong version of NFS filesystem
Christian Mudra
680680 at bugs.launchpad.net
Sun Jan 8 14:27:34 UTC 2012
Following the above hint from Peter Bell, I've now added the proto and
vers options to the amd.home-map (beside that, I set the rsize and wsize
to 16k). Demanded are the following options:
~$ ypcat -k amd.home | grep 'default '
/defaults type:=nfs;sublink=${key};opts:=rw,grpid,hard,intr,nodevs,nosuid,vers=3,proto=tcp,rsize=16384,wsize=16384;rfs:=${autodir}/${rhost}/fs1/home;fs:=${autodir}/${rhost}/fs1/home
The result is:
~$ cat /proc/mounts | grep nfs | grep home
seth:(pid1512,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
The amd registers in the mount tab with vers=2,proto=udp,rsize=1024,wsize=1024, while the mount itself is mounted with vers=2,proto=udp, rsize=8192,wsize=8192.
The given workaround does not work for me, and I also don't have a clue why the 16k read/write size is also not used.
--
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