Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261939 - net-fs/nfs-utils-1.1.5 breaks nfs
Summary: net-fs/nfs-utils-1.1.5 breaks nfs
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
: 270341 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-10 03:20 UTC by Harris Landgarten
Modified: 2014-06-20 06:11 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2009-03-10 03:20:15 UTC
After installing nfs-utils-1.1.5 nfsmount fails to start. Mounting any of my nfs shares results in:mount.nfs: an incorrect mount option was specified

This is the nfs mount line from fstab:

storage:/nas/NASDisk-00005/music /home/harrisl/nas nfs	defaults 0 0

manually issuing a mount -t nfs command with no option gives the same error.

Downgrading to 1.1.4-r1 fixes the problem



Reproducible: Always
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-10 20:38:40 UTC
Please post your "emerge --info" as well as the the output of
  emerge -qpv nfs-utils

Re-open this bug when you provide the requested information.
Comment 2 Harris Landgarten 2009-03-10 20:45:33 UTC
[ebuild     U ] net-fs/nfs-utils-1.1.5 [1.1.4-r1] USE="tcpd -kerberos -nonfsv4"


Portage 2.1.6.7 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r3-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-glibc2.2.5
Timestamp of tree: Mon, 09 Mar 2009 22:00:14 +0000
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.4.4-r15, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.4
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -msse4.1 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -msse4.1 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/xeffects /usr/portage/local/layman/gentoo-china /usr/portage/local/layman/vmware /usr/local/overlays"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="vesa nv fbdev nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Harris Landgarten 2009-03-10 20:55:32 UTC
Requested info posted
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-10 20:59:22 UTC
(In reply to comment #3)
> Requested info posted

Thanks :)

Reassigning to net-fs herd.
Comment 5 Grégoire Favre 2009-03-14 15:15:40 UTC
Same issue here.
Portage 2.2_rc23 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r3-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Sat, 14 Mar 2009 14:25:01 +0000
app-shells/bash:     4.0_p10
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.6
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://www.gigaload.org/gentoo.org/ ftp://mirror.switch.ch/mirror/gentoo/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/gechi /usr/portage/local/layman/vmware /usr/portage/local/layman/berkano /usr/portage/local/layman/kde-testing /usr/local/portage"
SYNC="rsync://rsync.ch.gentoo.org/gentoo-portage"
USE="3dnowext 64bit 7zip X Xaw3d a52 aac aalib accessibility acl acpi additions aften aim aio alsa amd amd64 amr amrnb amrwb ansi aotuv apm ass async atm auctex audacious audiofile avahi bash-completion berkdb bidi binary-drivers bl blas buffysize buttons bzip2 bzlib cairo caps cdda cddb cdio cdparanoia cdr chm chroot cli clisp console consolekit context cracklib crypt cryptoworks cscope css csv ctype cups curl curlwrappers cxx daap dar64 dga dirac divx djbfft djvu dri dts dv dvb dvd dvdr dvdread dvi ecc encode exif expat extra fam fame fasttrack fat fbcon ffmpeg fftw firefox firefox3 flac fltk fontconfig foomaticdb fortran fping fpx freetext g15 gadu games gd gdal gdbm general ggi gif gimp gimpprint ginac glibc-omitfp glitz glsa glut glx gmedia gmp gmtfull gmthigh gmtsuppl gmttria gnutella gnutls gopher gpgme gpm grammar graphics graphviz grass gs gstreamer gtalk gtk gtk2 guile h323 hardcoded-tables hdf5 howl-compat httpd humanities iconv icq id3 id3tag idn ieee1394 imagemagick imlib inquisitio ipv6 irc isdnlog ithreads jabber jack jack-tmpfs java javascript jbig jikes jpeg jpeg2k kdeprefix kerberos kig-scripting kpathsea kqemu lame laptop latex lcd lcms libcaca libedit libnotify libsamplerate libtommath libvisual libwww live lj lm_sensors lnbsharing logitech-mouse logrotate lzo lzw mad matroska mbox midi mikmod mime mimencode mjpeg mmx mmxext mng mod mono motif moznocompose moznoirc moznomail moznoroaming mozsvg mozxmlterm mp2 mp3 mp4 mp4live mpeg mpeg2 mplayer msn msnextras mudflap multilib musepack music mysql mythtv nautilus ncurses nethack netpbm network networking nfs nls nntp normalizemime nptl nptlonly nsplugin nvidia nvtv offensive ogg oggvorbis ole omega on-the-fly-crypt openexr opengl openmp openssl oscar otr pam pcre pda pdf perl player plotutils png posix pppd preview-latex pstricks psyrdo psytrellis publishers python pyzor qa qhull qt3 qt4 quicktime rar readline realmedia recode reflection regex reiser4 reiserfs rss rtc rtsp sasl schroedinger science screen sdl session shl shout sid silc slang slp smime sms sndfile soundtouch sox speex spell spl sqlite srt sse sse-filters sse2 ssl ssse3 stream subtitles svg svgz sysfs szip tcl tcltk tcpd tetex theora thesaurus threads threadsafe tiff tk tomsfastmath tools transcode truetype tv_check tv_combiner twolame type1 uk_bleb uk_rt unicode usb userlocales utf8 uudeview v4l v4l2 vamp vcd vcdimager vdpau vdr vim vim-pager vim-syntax vim-with-x visibility vlm vorbis wavpack webdav wma wma123 wmf wmp wordperfect wv wxgtk1 wxwindows x264 xanim xattr xcb xetex xext xfs xine xinerama xinetd xml xml2 xmlrpc xorg xpm xv xvid xvmc yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias apache2_modules_proxy apache2_modules_proxy_ajp apache2_modules_proxy_balancer apache2_modules_proxy_connect apache2_modules_proxy_ftp apache2_modules_proxy_http auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="g15" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="nv nvidia v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 SpanKY gentoo-dev 2009-05-09 18:29:02 UTC
i think 1.1.6 should fix it
Comment 7 Harris Landgarten 2009-05-10 03:59:58 UTC
1.1.6 does not fix the problem. I have some info that could help find the cause.

on Client

# mount -v -t nfs custom2:/mnt/xen_storage xen_storage/
mount.nfs: timeout set for Sat May  9 23:56:34 2009
mount.nfs: text-based options: 'addr=192.168.1.217'
mount.nfs: mount(2): Protocol not supported
mount.nfs: an incorrect mount option was specified

on Server

May  9 23:54:34 custom2 mountd[22158]: authenticated mount request from 192.168.1.87:729 for /mnt/xen_storage (/mnt/xen_storage)
May  9 23:54:34 custom2 svc: 192.168.1.87, port=768: unknown version (3 for prog 100003, nfsd)

from packet trace:

Remote Procedure Call, Type:Reply XID:0xf53edcb4
    Fragment header: Last fragment, 32 bytes
        1... .... .... .... .... .... .... .... = Last Fragment: Yes
        .000 0000 0000 0000 0000 0000 0010 0000 = Fragment Length: 32
    XID: 0xf53edcb4 (4114537652)
    Message Type: Reply (1)
    [Program: NFS (100003)]
    [Program Version: 3]
    [Procedure: NULL (0)]
    Reply State: accepted (0)
    [This is a reply to a request in frame 419]
    [Time from request: 0.000170000 seconds]
    Verifier
        Flavor: AUTH_NULL (0)
        Length: 0
    Accept State: remote can't support version # (2)
    Program Version (Minimum): 2
    Program Version (Maximum): 2

Both server and client are running 2.6.29
IPv6 is running on the network
Comment 8 Harris Landgarten 2009-05-10 04:16:38 UTC
some more info:

with nfs-utils-1.1.4-r1:

 # mount -v -t nfs custom2:/mnt/xen_storage xen_storage/
mount.nfs: timeout set for Sun May 10 00:06:59 2009
mount.nfs: text-based options: 'addr=192.168.1.217'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying 192.168.1.217 prog 100003 vers 3 prot TCP port 2049
mount.nfs: trying 192.168.1.217 prog 100003 vers 3 prot UDP port 2049
mount.nfs: trying 192.168.1.217 prog 100003 vers 2 prot TCP port 2049
mount.nfs: trying 192.168.1.217 prog 100005 vers 1 prot UDP port 57912
mount.nfs: text-based options (retry): 'addr=192.168.1.217,nfsvers=2,proto=tcp,mountproto=udp,mountport=57912'
custom2:/mnt/xen_storage on /root/xen_storage type nfs (rw)

Has support for nfs version 2 been disabled in the new releases?
Comment 9 Harris Landgarten 2009-05-10 04:48:22 UTC
After some more testing it seems that specifying nfsvers=2 mounts the nfs2 server and nfsvers=3,proto=udp is needed to mount another server running nfs3. It seems that auto negotiation of nfs version and protocol is broken in 1.1.5 and 1.1.6 at least on my network. It works with 1.1.4-r1 with no specifying vers or proto
Comment 10 Grégoire Favre 2009-05-11 20:08:24 UTC
Oh nice, with the udp specification it works for me :-) "nfsvers=3,proto=udp"
Comment 11 Marian Kyral 2009-05-26 20:41:00 UTC
I have the same problem. 

I'm trying to connect to Asus wl-500gP with the latest Oleg firmware. Statd is in version 1.0.7 and connection fails. 

[root@gool root]# mount -v -t nfs  192.168.1.1:/opt /mnt/test2 -o "nfsvers=3,proto=udp"
mount.nfs: timeout set for Tue May 26 21:55:33 2009
mount.nfs: text-based options: 'nfsvers=3,proto=udp,addr=192.168.1.1'
mount.nfs: mount(2): Operation not supported
mount.nfs: an incorrect mount option was specified

[maros@wl-500gp root]$ tail -f /opt/var/log/messages
May 26 21:47:50 wl-500gp syslog: authenticated mount request from gool:935 for /opt (/opt)
May 26 21:48:03 wl-500gp syslog: authenticated mount request from gool:974 for /opt (/opt)

[maros@wl-500gp root]$ statd -v
statd version 1.0.7

But I'm able to mount Maxtor network storage drive (MSII). The statd has version 1.1.1

MSSII500:~ # statd -v
statd version 1.1.1

Looks like the nfsver2 support is missing :-(
Comment 12 Marian Kyral 2009-05-26 20:43:51 UTC
(In reply to comment #11)
> I have the same problem. 
> 
> [root@gool root]# mount -v -t nfs  192.168.1.1:/opt /mnt/test2 -o
> "nfsvers=3,proto=udp"
> mount.nfs: timeout set for Tue May 26 21:55:33 2009
> mount.nfs: text-based options: 'nfsvers=3,proto=udp,addr=192.168.1.1'
> mount.nfs: mount(2): Operation not supported
> mount.nfs: an incorrect mount option was specified

Of course, the same result is for nfsvers=2.
Comment 13 SpanKY gentoo-dev 2009-05-30 21:19:04 UTC
*** Bug 270341 has been marked as a duplicate of this bug. ***
Comment 14 Peter Gantner (a.k.a. nephros) 2011-01-11 15:52:25 UTC
This problem went away for me by upgrading the NFS server from OpenVZ(!) kernel 2.6.27.x to current OpenVZ kernel 2.6.32.10.1-r1.

All nfs shares (v2 and v3, didn't test v4) are now working again.

Can someone confirm this?
Comment 15 Vicente Olivert Riera (RETIRED) gentoo-dev 2011-03-16 12:41:38 UTC
I think is broken again in net-fs/nfs-utils-1.2.3-r1

----------------------------------- Box 1 --------------------------------
fujitsu peratu # qlist -Iev nfs-utils
net-fs/nfs-utils-1.2.3-r1
fujitsu peratu # mount atom:/usr/portage/distfiles/ /usr/portage/distfiles/
mount.nfs: an incorrect mount option was specified
fujitsu peratu #
--------------------------------------------------------------------------


----------------------------------- Box 2 --------------------------------
hp peratu # qlist -Iev nfs-utils
net-fs/nfs-utils-1.1.4-r1
hp peratu # mount atom:/usr/portage/distfiles/ /usr/portage/distfiles/
hp peratu #
--------------------------------------------------------------------------
Comment 16 Vicente Olivert Riera (RETIRED) gentoo-dev 2011-03-16 12:57:12 UTC
It works again after downgrading to net-fs/nfs-utils-1.1.4-r1 on "Box 1".
Adding =net-fs/nfs-utils-1.2.3-r1 to /etc/portage/package.mask should be a good workaround for now.