Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 53468

Summary: nfs-utils 1.0.6-r2 and 1.0.6-r2 problem with 2.6 kernel and mount -t nfsd nfsd /proc/fs/nfs
Product: Gentoo Linux Reporter: Guillaume Castagnino <casta>
Component: Current packagesAssignee: Network Filesystems <net-fs>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Guillaume Castagnino 2004-06-09 16:29:51 UTC
I have problem with those 2 version, due to this part of he init script /etc/init.d/nfs :
--------------------------------
if grep -q nfsd /proc/filesystems &>/dev/null; then
   if ! grep -q "nfsd /proc/fs/nfs" /proc/mounts &>/dev/null; then
       ebegin "Mounting nfsd filesystem in /proc"
       mount -t nfsd nfsd /proc/fs/nfs
       eend $? "Error mounting nfsd filesystem in /proc"
   fi
fi
------------------------------
When /proc/fs/nfs is mounted, nfs server doesn't work properly, all the clients (linux/macOSX) I have tried output an error like "can't read superblock"

When unmounting /proc/fs/nfs, it works again..

So I suggest removing this part of the init script (I have commented it and it workd well without it)

Here is my configuration :
# emerge info
Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.6-mm5)
=================================================================
System uname: 2.6.6-mm5 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.16
distcc 2.14 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -Os -mcpu=pentium4 -msse -msse2 -mmmx -mfpmath=sse,387 -fomit-frame-pointer -ffast-math -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -Os -mcpu=pentium4 -msse -msse2 -mmmx -mfpmath=sse,387 -fomit-frame-pointer -ffast-math -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox userpriv usersandbox"
GENTOO_MIRRORS="ftp://192.168.6.149/linux http://gentoo.mirror.sdv.fr http://ftp.gentoo.skynet.be/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi acpi4linux alsa apache2 artswrappersuid avi berkdb cdr crypt cups dga directfb distribution dnd dvd encode faad fbcon ffmpeg foomaticdb freetype fs gd gdbm gif gimp gimpprint gphoto2 gpm gtk gtk2 imagemagick imlib imlib2 java jpeg kde libg++ libwww linguas_fr mad matroska md5sum mikmod mmx motif mpeg mysql nas ncurses nls nptl nvidia oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline sasl scanner sdl slang speex spell sse ssl tcltk tcpd tetex tiff truetype type1 unicode usb video_cards_nvidia wxwindows x86 xml2 xmms xv xvid zlib"

Reproducible: Always
Steps to Reproduce:
1.Use kernel 2.6
2.emerge nfs-utils 1.0.6-r2 or r1
Comment 1 SpanKY gentoo-dev 2004-06-11 16:30:07 UTC
you trying to mount nfs2 or nfs3 ?
Comment 2 Guillaume Castagnino 2004-06-11 17:37:43 UTC
it is NFSv3 :

Server nfs v3:
null       getattr    setattr    lookup     access     readlink   
14      0% 717     3% 26      0% 3686   17% 365     1% 0       0% 
read       write      create     mkdir      symlink    mknod      
16339  76% 77      0% 9       0% 0       0% 0       0% 0       0% 
remove     rmdir      rename     link       readdir    readdirplus
0       0% 0       0% 0       0% 0       0% 41      0% 43      0% 
fsstat     fsinfo     pathconf   commit     
4       0% 16      0% 0       0% 9       0% 
Comment 3 SpanKY gentoo-dev 2004-10-07 20:25:18 UTC
i take it 2.6.8.1 kernels dont fix this
Comment 4 SpanKY gentoo-dev 2004-12-30 22:13:58 UTC
re-open if 2.6.10 doesnt solve this