Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity | Format For Printing | XML | Clone This Bug
net-fs/nfs-utils has always had a bug where trying to stop the nfsmount service fails the first time it's tried (even though all the remote filesystems are successfully unmounted). This has never been a problem, since the shutdown scripts always proceeded anyway, but ever since I upgraded to baselayout-2.0.0 and openrc-0.2.2, system shutdown hangs forever after nfsmount 'fails' to stop, forcing me to reset the system with the button on the PC case. Reproducible: Always Steps to Reproduce: 1. mount 2. /etc/init.d/nfsmount stop 3. mount 4. /etc/init.d/nfsmount stop Actual Results: biocomm # mount rootfs on / type rootfs (rw) /dev/mapper/sil_afbiajcbchcg3 on / type ext3 (rw,data=journal) proc on /proc type proc (rw,nosuid,noexec) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec) udev on /dev type tmpfs (rw) devpts on /dev/pts type devpts (rw,nosuid,noexec) shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,noatime) none on /tmp type tmpfs (rw,nodev,noatime,mode=1777) usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85) securityfs on /sys/kernel/security type securityfs (rw,noexec,nosuid,nodev) 10.20.31.1:/home/paolo/Iso on /home/paolo/Iso type nfs (rw,noexec,nosuid,nodev,noatime,rsize=8192,wsize=8192,hard,intr,addr=10.20.31.1) 10.20.31.1:/home/paolo/DvdRip on /home/paolo/DvdRip type nfs (rw,noexec,nosuid,nodev,noatime,rsize=8192,wsize=8192,hard,intr,addr=10.20.31.1) 10.20.31.1:/home/paolo/.maildir on /home/paolo/.maildir_pedroni03 type nfs (rw,noexec,nosuid,nodev,noatime,rsize=8192,wsize=8192,hard,intr,addr=10.20.31.1) 10.20.31.1:/usr/portage/packages on /usr/portage/packages type nfs (rw,noexec,nosuid,nodev,noatime,rsize=8192,wsize=8192,hard,intr,addr=10.20.31.1) 10.20.31.1:/var/nfs/maildir_cluster01 on /home/paolo/.maildir_cluster01 type nfs (rw,noexec,nosuid,nodev,noatime,rsize=8192,wsize=8192.hard.intr,addr=10.20.31.1) biocomm # /etc/init.d/nfsmount stop * Unmounting NFS filesystems ... [ !! ] * ERROR: nfsmount failed to stop biocomm # mount rootfs on / type rootfs (rw) /dev/mapper/sil_afbiajcbchcg3 on / type ext3 (rw,data=journal) proc on /proc type proc (rw,nosuid,noexec) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec) udev on /dev type tmpfs (rw) devpts on /dev/pts type devpts (rw,nosuid,noexec) shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,noatime) none on /tmp type tmpfs (rw,nodev,noatime,mode=1777) usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85) securityfs on /sys/kernel/security type securityfs (rw,noexec,nosuid,nodev) biocomm # /etc/init.d/nfsmount stop * Unmounting NFS filesystems ... [ ok ] biocomm # Expected Results: biocomm # mount rootfs on / type rootfs (rw) /dev/mapper/sil_afbiajcbchcg3 on / type ext3 (rw,data=journal) proc on /proc type proc (rw,nosuid,noexec) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec) udev on /dev type tmpfs (rw) devpts on /dev/pts type devpts (rw,nosuid,noexec) shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,noatime) none on /tmp type tmpfs (rw,nodev,noatime,mode=1777) usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85) securityfs on /sys/kernel/security type securityfs (rw,noexec,nosuid,nodev) 10.20.31.1:/home/paolo/Iso on /home/paolo/Iso type nfs (rw,noexec,nosuid,nodev,noatime,rsize=8192,wsize=8192,hard,intr,addr=10.20.31.1) 10.20.31.1:/home/paolo/DvdRip on /home/paolo/DvdRip type nfs (rw,noexec,nosuid,nodev,noatime,rsize=8192,wsize=8192,hard,intr,addr=10.20.31.1) 10.20.31.1:/home/paolo/.maildir on /home/paolo/.maildir_pedroni03 type nfs (rw,noexec,nosuid,nodev,noatime,rsize=8192,wsize=8192,hard,intr,addr=10.20.31.1) 10.20.31.1:/usr/portage/packages on /usr/portage/packages type nfs (rw,noexec,nosuid,nodev,noatime,rsize=8192,wsize=8192,hard,intr,addr=10.20.31.1) 10.20.31.1:/var/nfs/maildir_cluster01 on /home/paolo/.maildir_cluster01 type nfs (rw,noexec,nosuid,nodev,noatime,rsize=8192,wsize=8192.hard.intr,addr=10.20.31.1) biocomm # /etc/init.d/nfsmount stop * Unmounting NFS filesystems ... [ ok ] biocomm # mount rootfs on / type rootfs (rw) /dev/mapper/sil_afbiajcbchcg3 on / type ext3 (rw,data=journal) proc on /proc type proc (rw,nosuid,noexec) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec) udev on /dev type tmpfs (rw) devpts on /dev/pts type devpts (rw,nosuid,noexec) shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,noatime) none on /tmp type tmpfs (rw,nodev,noatime,mode=1777) usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85) securityfs on /sys/kernel/security type securityfs (rw,noexec,nosuid,nodev) biocomm # biocomm # emerge --info Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r4 x86_64) ================================================================= System uname: 2.6.24-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ Timestamp of tree: Wed, 16 Apr 2008 06:00:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" 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/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache collision-protect distcc distlocks fixpackages metadata-transfer sandbox sfperms strict test unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.vein.hu/pub/linux/distributions/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo" LANG="it_IT.UTF-8" LC_ALL="it_IT.UTF-8" LINGUAS="it" MAKEOPTS="-j14" PKGDIR="/usr/portage/packages" 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/local/portage" SYNC="rsync://pedroni03/gentoo-portage" USE="X Xaw3d a52 aac aalib acpi alsa amd64 ao arts audiofile avahi bash-completion berkdb bluetooth bzip2 cairo caps cddb cdparanoia cdr cli cracklib crypt cups curl dbus dga dio dri dvd dvdr dvdread emboss encode exif expat fam fbcon ffmpeg fftw firefox flac fontconfig foomaticdb fortran ftp gd gdbm ggi gif glut gmp gnutls gphoto2 gpm gtk guile hal htmlhandbook iconv idn ieee1394 imagemagick imlib isdnlog jack java javascript jbig jikes jpeg jpeg2k kde kdeenablefinal lcms libcaca libsamplerate lm_sensors lua lzo mad maildir matroska memlimit midi mikmod mime mmap mmx mng mozilla mp3 mpeg mpi mplayer mudflap ncurses nls nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp oss pam pcre pdf perl png portaudio posix ppds pppd python qt3 qt3support qt4 quicktime rdesktop readline recode reflection ruby samba sdl session sharedmem shorten sndfile sockets sox speex spell spl sse sse2 ssl startup-notification svg symlink syslog sysvipc tcl tcpd theora threads tidy tiff tk truetype unicode usb vcd vim-syntax vorbis wmf wxwindows x264 xcb xcomposite xine xinerama xml xorg xosd xpm xscreensaver xv xvid yahoo zlib" ALSA_CARDS="intel8x0 virmidi" 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 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="kodak ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
of course it's going to work the 2nd+ time seeing as how there arent any filesystems mounted anymore post the output from running `/etc/init.d/nfsmount --debug stop` as an attachment
Created an attachment (id=150027) [details] Output of /etc/init.d/nfsmount --debug stop As you asked.
so the umount is returning non-zero for whatever reason what version of nfs-utils and util-linux do you have ? what nfs mounts do you have mounted ? what would be useful is `strace -f -o log umount -a -t nfs,nfs4` and post the log as an attachment
(In reply to comment #3) > so the umount is returning non-zero for whatever reason > > what version of nfs-utils and util-linux do you have ? # equery l nfs-utils [ Searching for package 'nfs-utils' in all categories among: ] * installed packages [I--] [ ] net-fs/nfs-utils-1.1.0-r1 (0) # equery l util-linux [ Searching for package 'util-linux' in all categories among: ] * installed packages [I--] [ ] sys-apps/util-linux-2.13.1 (0) > what nfs mounts do you > have mounted ? # mount | grep nfs 10.20.31.1:/home/paolo/Iso on /home/paolo/Iso type nfs (rw,noexec,nosuid,nodev,noatime,rsize=8192,wsize=8192,hard,intr,addr=10.20.31.1) 10.20.31.1:/home/paolo/DvdRip on /home/paolo/DvdRip type nfs (rw,noexec,nosuid,nodev,noatime,rsize=8192,wsize=8192,hard,intr,addr=10.20.31.1) 10.20.31.1:/home/paolo/.maildir on /home/paolo/.maildir_pedroni03 type nfs (rw,noexec,nosuid,nodev,noatime,rsize=8192,wsize=8192,hard,intr,addr=10.20.31.1) 10.20.31.1:/usr/portage/packages on /usr/portage/packages type nfs (rw,noexec,nosuid,nodev,noatime,rsize=8192,wsize=8192,hard,intr,addr=10.20.31.1) 10.20.31.1:/var/nfs/maildir_cluster01 on /home/paolo/.maildir_cluster01 type nfs (rw,noexec,nosuid,nodev,noatime,rsize=8192,wsize=8192,hard,intr,addr=10.20.31.1) > > what would be useful is `strace -f -o log umount -a -t nfs,nfs4` and post the > log as an attachment > Will do!
Created an attachment (id=150350) [details] 'strace -f-o log umount -a -t nfs,nfs4' output As you asked...
so it looks like even if you just do: umount.nfs /home/paolo/Iso that'll exit with 1 ... can you confirm ? i would try upgrading to nfs-utils-1.1.1 and see if that fixes things
actually i just added 1.1.2, so you should test that version
(In reply to comment #6) > so it looks like even if you just do: > umount.nfs /home/paolo/Iso > > that'll exit with 1 ... can you confirm ? Confirmed: # umount.nfs /home/paolo/Iso # echo $? 1 > > i would try upgrading to nfs-utils-1.1.1 and see if that fixes things > I'll try emerging nfs-utils-1.1.2 (as per your following comment) and come back to you.
nfs-utils-1.1.1, 1.1.1-r1 and 1.1.2 do not compile on my system (see bug #218595), so I'm kind of stuck here, until that bug is resolved.
Thanks to flameeyes, who fixed #218595 in a heartbeat, I was able to test net-fs/nfs-utils-1.1.2 and that actually fixed my problem. Now I think I'll just wait for a month and then file a stabilization bug for it. Thanks a lot to everyone.
thanks for testing