Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60362 - rpc.statd is not handled well in the rc scripts still
Summary: rpc.statd is not handled well in the rc scripts still
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
: 127311 175287 178901 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-14 13:14 UTC by Mark Wagner
Modified: 2007-12-29 02:45 UTC (History)
6 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 Mark Wagner 2004-08-14 13:14:03 UTC
From bug #5078

"Also, netmount does not start/stop rpc.statd, even though it might need 
rpc.statd for the nfs mounts."

"Seems fixed in nfs-utils 1.0.6"

It doesn't seem fixed to me. Isn't /etc/init.d/netmount is part of sys-apps/baselayout?

/etc/init.d/netmount still does not start rpc.statd.


Reproducible: Always
Steps to Reproduce:
1. start ggv on a file on a nfs mount

Actual Results:  
** (ggv:17122): WARNING **: Failed to lock:  No locks available

And in syslog:

nsm_mon_unmon: rpc failed, status=-13
lockd: cannot monitor 10.0.0.1
lockd: failed to monitor 10.0.0.1


Expected Results:  
Lock the file successfully, which is what happened after I started rpc.statd.
Comment 1 SpanKY gentoo-dev 2004-08-20 23:13:23 UTC
nfsmount:       # Don't start rpc.statd if already started by init.d/nfs
nfsmount:       killall -0 rpc.statd &>/dev/null && return 0
nfsmount:       start-stop-daemon --start --quiet --exec /sbin/rpc.statd 1>&2
nfsmount:       # Don't stop rpc.statd if it's in use by init.d/nfs
nfsmount:       killall -0 rpc.statd &>/dev/null || return 0
nfsmount:       # Okay, all tests passed, stop rpc.statd
nfsmount:       start-stop-daemon --stop --quiet --exec /sbin/rpc.statd 1>&2

looks fine to me

i really have no idea what version of nfs-utils or baselayout you're running since you neglected to provide `emerge info`
Comment 2 Mark Wagner 2004-08-21 10:36:34 UTC
I'm not talking about _nfsmount_; rather, I'm talking about _netmount_, which will mount NFS shares too. Nfsmount starts rpc.statd. Netmount doesn't. 

net-fs/nfs-utils-1.0.6-r4
sys-apps/baselayout-1.10.2

Portage 2.0.50-r9 (default-amd64-2004.0, gcc-3.3.4, glibc-2.3.4.20040619-r1, 2.6.7-gentoo-r12)
=================================================================
System uname: 2.6.7-gentoo-r12 x86_64 12
Gentoo Base System version 1.5.2
distcc 2.16 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -frename-registers -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -frename-registers -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib accessibility acl adns alsa amd64 avi berkdb bonobo caps cdparanoia cdr crypt cscope cups dga directfb divx4linux dv dvb dvd dvdr dvdread edl emacs encode esd faac faad fbcon fbdev flac foomaticdb gdbm geoip gif gimpprint gnome gnutls gpm gstreamer gtk gtk2 gtkhtml guile idea imap imlib innodb ipv6 jack jack-tmpfs java javamail javascript jbig jikes jpeg junit kde lcms libcaca libg++ libwww lm_sensors lzw-tiff mad mailwrapper mbox md5sum mikmod milter mmap mng motif mozilla mozsvg mpeg multilib mysql nas ncurses nethack network nls nntp nogcj nptl ofx oggvorbis opengl oss pam parse-clocks pcre pdflib perl pic png postgres ppds python qt quicktime quotes readline rtc ruby sasl scanner sdl skey slang slp sndfile snmp speex spell ssl svg tcltk tcpd tetex theora threads tiff truetype usb video_cards_nvidia wmf xml xml2 xmms xrandr xv xvid zlib"
Comment 3 SpanKY gentoo-dev 2004-08-21 23:26:12 UTC
permaps the netmount script should be updated like this:
     if [ -n "${nfsmounts}" ]
     then
-        local myneed="${myneed} portmap"
-        local myneed="${myneed} nfsmount"
Comment 4 Mark Wagner 2004-08-22 12:24:27 UTC
Hmm, I don't think starting portmap starts rpc.statd.

A solution would be to make a separate init script for rpc.statd and then have nfs, nfsmount, and netmount depend on it.
Comment 5 Lance Albertson (RETIRED) gentoo-dev 2004-11-17 05:33:51 UTC
I'm having the same problem with this. I don't recall getting these errors before. Did portmap used to start statd or have a dep on nfsmount etc? It just seems as though something has changed recently that keeps statd from getting started.
Comment 6 SpanKY gentoo-dev 2006-03-23 08:30:13 UTC
*** Bug 127311 has been marked as a duplicate of this bug. ***
Comment 7 Martin Wegner 2007-01-22 10:06:57 UTC
I have the following situation here:

/usr/portage/distfiles is exported by a nfs daemon on our network server here. The clients mount it and use it for their emerges.
A few days ago, the access (md5 checksums, ...) to the distfiles by portage was very slow. In /var/log/messages I fount this several times:

Jan 22 10:22:28 wechner statd: server localhost not responding, timed out
Jan 22 10:22:28 wechner lockd: cannot monitor ares
Jan 22 10:22:28 wechner lockd: failed to monitor ares

After firing up /etc/init.d/nfs on the clients which starts rpc.statd everything worked fine again.
This issue occured on all clients nearly at the same time.

Systems are amd64 here, so Hardware should be changed to All.

$ emerge --info
Portage 2.1.2-r2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r4-mw x86_64)
=================================================================
System uname: 2.6.19-gentoo-r4-mw x86_64 Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz
Gentoo Base System version 1.12.9
Timestamp of tree: Mon, 22 Jan 2007 08:50:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19.2-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.club-internet.fr/pub/mirrors/gentoo http://pandemonium.tiscali.de/pub/gentoo/"
LANG="C"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X Xaw3d aac aalib acpi alsa amd64 aoss bash-completion berkdb bitmap-fonts blender-game branding bzip2 cdparanoia cdr cli cracklib crypt css cups curl dba dbus dedicated devmap dga directfb divx dlloader dri dvd dvdr dvi editor encode escreen expat fam fbcon ffmpeg firefox flac ftp gd gdbm gif gimpprint glut gnome gnutls gtk gtkhtml hal hddtemp i8x0 iconv icq idn imagemagick imap ipv6 jabber john jpeg jpeg2k lame libcaca libg++ libnotify logrotate mbox mng mozbranding mozdevelop mozilla mozsvg mysql nautilus ncurses nfs nls no-htdocs nptl nptlonly nsplugin nvidia offensive openal opengl openssl oscar pam pcre pdf perl php png pop postfix postgres ppds python readline realmedia rtc ruby samba sdl server session silverxp skins spl sqlite ssl startup-notification svg tcpd tetex theora thunderbird tiff tools truetype truetype-fonts type1-fonts udev unicode usb userlocales vim vim-with-x visualization vorbis wmf wmp wxwindows x264 xanim xchattext xine xml xorg xpm xprint xsl xv xvid zlib" ALSA_CARDS="hda-intel" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 8 SpanKY gentoo-dev 2007-03-25 11:06:18 UTC
netmount has "use nfsmount" ... if you have nfs mounts, then you should do `rc-update add nfsmount default`
Comment 9 SpanKY gentoo-dev 2007-04-20 10:40:04 UTC
*** Bug 175287 has been marked as a duplicate of this bug. ***
Comment 10 SpanKY gentoo-dev 2007-04-21 01:36:56 UTC
*** Bug 175287 has been marked as a duplicate of this bug. ***
Comment 11 SpanKY gentoo-dev 2007-05-19 04:31:45 UTC
*** Bug 178901 has been marked as a duplicate of this bug. ***
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2007-12-29 02:42:28 UTC
*** Bug 203646 has been marked as a duplicate of this bug. ***
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2007-12-29 02:45:54 UTC
*** Bug 203646 has been marked as a duplicate of this bug. ***