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

Bug 45382

Summary: openafs init script error
Product: Gentoo Linux Reporter: M Grundman <grundman>
Component: Current packagesAssignee: Stefaan De Roeck (RETIRED) <stefaan>
Status: RESOLVED FIXED    
Severity: normal CC: net-fs, rutledad
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description M Grundman 2004-03-22 05:43:28 UTC
1/ openafs init script does not stop the afs client correctly. umount /afs does not work often
2/ there is an error in the message eend $STATUS "Error stopping AFS" at the end of the script

Proposal : add following lines in the init script before "umount /afs". These lines exist in some other afs scripts.

echo "Sending all processes using /afs the TERM signal ..."
/bin/fuser -sk -TERM /afs
echo "Sending all processes using /afs the KILL signal ..."
/bin/fuser -sk -KILL /afs

Reproducible: Sometimes
Steps to Reproduce:
1.
2.
3.




System uname: 2.4.22-openmosix-r3 i686 Intel(R) Pentium(R) 4 CPU 1.70GHz
Gentoo Base System version 1.4.3.13
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i686 -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.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /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/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.mirror.sdv.fr
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo
http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/
ftp://sunsite.cnlab-switch.ch/mirror/gentoo/
http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X X509 Xaw3d accounting afs amd apache2 apm arts artswrappersuid athena
autofs avi berkdb bonobo caps cdr chroot clamav crypt cups curl derectfb dvd
emacs encode esd evo fax fftw foomaticdb footmaticdb foreign-package
foreign-sysvinit gamma gatos gb gd gdbm gif gimpprint ginac gnome gpm gtk gtk2
hdf hdf5 i8x0 imagemagick imap imlib ipalias jabber java javascript jbig jikes
jpeg kde leim libg++ libgda libwww lids lufsusermount mad maildir matroska mbox
mcal md5sum memlimit mikmod milter mimod motif mozilla mpeg mpeg4 mpi msn
multilib mupad-noscilab mysql ncurses netcdf nls oav oggvorbis opengl oscar oss
pam passfile pcmcia pdflib perl plotutils png pnp ppds prelude python qhull qt
quicktime radeon radius rage128 readline samba sasl scanner sdk sdl sis skey
slang slp sox speex spell ssl svga tcltk tcpd tetex tiff transcode truetype
unicode usb v4l video_cards_3dfx video_cards_gamma video_cards_i810
video_cards_i830 video_cards_matrox video_cards_radeon video_cards_rage128
video_cards_sis virus-scan wmf x86 xemacs xml xml2 xmms xv xvid yahoo zeo zlib"
Comment 1 Maurice van der Pot (RETIRED) gentoo-dev 2005-06-30 14:30:05 UTC
OpenAFS needs a developer to take up maintenance.
Comment 2 Martin Mokrejš 2005-07-02 02:32:15 UTC
I'm not sure killing afsd is the correct way. Although afsd appears as a
process, it is a kernel process and the only correct way I believe available to
shut it down - and get /afs unmounted - is to use "afsd -shutdown".
Unfortunately, that never worked for me on linux.
Comment 3 Stefaan De Roeck (RETIRED) gentoo-dev 2005-07-28 09:15:32 UTC
New ebuilds for openafs 1.2.13 (stable) and 1.3.85 (experimental) are available
for testing.  According to openafs-ml, 1.3.85 is currently undergoing testing so
it can become 1.4rc.

The scripts haven't been modified to forcefully kill any process still using the
/afs mount, seems a bit harsh.  But I haven't had any problems with cleanly
unmounting /afs lately (I mostly use 1.3.85, but I've tested 1.2.13 for a short
while as well).

It'd be great if these new proposed ebuilds could be tested, to see if the
problem remains
Comment 4 Stefaan De Roeck (RETIRED) gentoo-dev 2005-08-16 06:37:36 UTC
The init script has been modified to shutdown the afs client parts in the
correct order.  The main reason was probably the openafs-package itself, as I
got the same errors a few versions ago when shutting down correctly.  It seems
to work correctly now though.  I'm therefore assuming this to be fixed.