Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68361 - nfs-utils: The init script doesn't have "use ypbind" which makes it fail to export to netgroups.
Summary: nfs-utils: The init script doesn't have "use ypbind" which makes it fail to e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 All
: High major
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-21 01:33 UTC by Alun Jones
Modified: 2004-10-25 07:10 UTC (History)
1 user (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 Alun Jones 2004-10-21 01:33:32 UTC
When exporting to a netgroup, we need ypbind to be running before NFS
is started. There's no dependency in the init script to ensure that this
happens. So, when the server is rebooted, exportfs doesn't export anything
sensible and all the clients get stale nfs file handles.

Reproducible: Always
Steps to Reproduce:
1.Export a directory on the server to a netgroup.
2.Mount it on a client in the netgroup.
3.Reboot the server
4.Try to access the mount on the client.

Actual Results:  
stale NFS file handle errors, solved by remounting on the client or running
exportfs -r on the server.

Expected Results:  
worked!

The fix is simple - add the following line into /etc/init.d/nfs in the depend() 
function, after the "need" line:

use ypbind

emerge info output (some details obscured):
Portage 2.0.50-r11 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.4.26-
gentoo-r9)
=================================================================
System uname: 2.4.26-gentoo-r9 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="apm arts avi berkdb bitmap-fonts crypt cups encode f77 foomaticdb gdbm gif 
gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis 
opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl 
svga tcpd truetype x86 xml2 xmms xprint xv zlib"
Comment 1 SpanKY gentoo-dev 2004-10-25 07:10:08 UTC
added to latest ebuild, thanks